ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41579] - Launch.run() fails when ant-launcher.jar is in the root of a drive
Date Mon, 12 Feb 2007 18:01:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41579>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41579





------- Additional Comments From jkf@apache.org  2007-02-12 10:01 -------
Cruisecontrol also ignores the CLASSPATH. The standard Cruisecontrol also
expects a complete ant to be installed, installed in anthome (so that
${anthome}/lib contains ant-launcher.jar)
something like
<ant anthome="x:\apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml"/>
or even
<ant anthome="x:\" buildfile="projects/${project.name}/build.xml"/>


So I still have no clue why ant (or cruisecontrol for that matter) would have to
be on the CLASSPATH.

In order to shorten the CLASSPATH you could repack all ant-*.jar, except for
ant-launcher.jar of ant into a single jar file ant-optional.jar.

Placing ant-launcher in the root directory might work if the system property
ant.home is set correctly, and all jar files of ant are available under
${ant.home}/lib, some other files of ant should be available in ${ant.home}/etc
and ${ant.home}/bin. Please note that this is not and most probably will not be
supported.

As said before a complete ant installation should live in the root just fine,
but a complete ant installation has ant-launcher.jar in the lib directory, and
therefore never in the root.

B.t.w. you report this as a bug to 1.7.0, yet the launcher you use seems to be
from another ant version (as can be deduced from the line numbers displayed in
the stack trace.) Mixing ant versions is known to cause troubles and is not
supported either.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message