mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
17.58.2013 c8a995f6aefd8d25ce70eef7671f5e51b6e531c4
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, May 17, 2013 15:58 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, May 17, 2013 15:58 +0200
commitc8a995f6aefd8d25ce70eef7671f5e51b6e531c4
tree 1755542ea51c8c2a44bfc435a0f218a22416c054 tree | zip | gz
parent fe64ffeb5c2b4703399da8827182495e912f80ac view | diff
OPENDJ-842 (CR-1699) On Windows, the setup command hangs when the length of the install path is too long


In order to avoid getting errors like "The input line is too long" on windows, a common way to fix this is to provide a "bootstrap" empty jar which contains only a MANIFEST.MF file listing all the application's jars in the "Class-Path" attribute.
This URL describes well enough the problem: http://ant.apache.org/manual/Tasks/manifestclasspath.html


build.xml:
In "prepackage" target, build bootstrap.jar.

_script-util.bat, _script-util.sh:
Replaced appending all the jars under libs with just the bootstrap jar.

Utilities.java, Utils.java, UpgradeUtils.java:
In getInstallPathFromClasspath(), extracted getInstallPath() and simplified its code a lot.

Installation.java, Installation.java:
Changed OPEN_DS_JAR_RELATIVE_PATHS into OPEN_DJ_BOOTSTRAP_JAR_RELATIVE_PATH.
8 files modified
252 ■■■■ changed files
opendj-sdk/opends/build.xml 18 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/_script-util.bat 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/_script-util.sh 5 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java 59 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Installation.java 19 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 48 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/Installation.java 9 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/UpgradeUtils.java 92 ●●●●● diff | view | raw | blame | history