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

Jean-Noel Rouvignac
17.58.2013 508d3949e86d0fd27885d1b825889a80d7a46ee7
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
commit508d3949e86d0fd27885d1b825889a80d7a46ee7
tree 4ed46821207b14dd77e66cb97d4080a988744a28 tree | zip | gz
parent d2bf0a304c9da2a4cb3d58673eb38c3c2619bab7 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
opends/build.xml 18 ●●●●● diff | view | raw | blame | history
opends/resource/bin/_script-util.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/_script-util.sh 5 ●●●● diff | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java 59 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Installation.java 19 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 48 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/upgrade/Installation.java 9 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/upgrade/UpgradeUtils.java 92 ●●●●● diff | view | raw | blame | history