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 Tue, 13 Feb 2007 19:36:50 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


jkf@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From jkf@apache.org  2007-02-13 11:36 -------
As far as I can see, things even work when ant-launcher.jar is in the root of a
drive, again note that this is not a supported set-up.
In this case ant will just need to know where the ant.home drive is (can be the
root of the drive) and where to find the ant libraries (ant.library.dir), (can
also be the root of the drive).

The problem is, when no ant.home is defined ant-launcher expects a standard
installation where ant.home is one level above the library directory where
ant-launcher.jar is supposed to be present. As ant.home is not set and the root
directory has no parent the ant.home (where ant searches for certain other
files) becomes null, which leads to problems.

I have verified this against ant 1.7.1Alpha

D:\data\eclipseworkspace\ant-trunk>subst x: d:\data\eclipseworkspace\ant-trunk\d
ist\lib

D:\data\eclipseworkspace\ant-trunk>dir x:
 Het volume in station X heeft geen naam.
 Het volumenummer is 

 Map van X:\

13-02-2007  20:29    <DIR>          .
13-02-2007  20:29    <DIR>          ..
09-02-2007  23:14             5.754 ant-antlr.jar
09-02-2007  23:14             8.601 ant-apache-bcel.jar
09-02-2007  23:14             3.962 ant-apache-bsf.jar
09-02-2007  23:14             3.064 ant-apache-log4j.jar
09-02-2007  23:14            39.581 ant-apache-oro.jar
09-02-2007  23:14             3.735 ant-apache-regexp.jar
09-02-2007  23:14             4.079 ant-apache-resolver.jar
09-02-2007  23:14             3.918 ant-commons-logging.jar
09-02-2007  23:14            47.034 ant-commons-net.jar
09-02-2007  23:14            21.356 ant-jai.jar
09-02-2007  23:14             7.006 ant-javamail.jar
09-02-2007  23:14             8.130 ant-jdepend.jar
09-02-2007  23:14             6.601 ant-jmf.jar
09-02-2007  23:14            29.992 ant-jsch.jar
09-02-2007  23:14            93.386 ant-junit.jar
09-02-2007  23:14            11.722 ant-launcher.jar
09-02-2007  23:14             9.881 ant-netrexx.jar
09-02-2007  23:14           429.084 ant-nodeps.jar
09-02-2007  23:14             6.703 ant-swing.jar
09-02-2007  23:14            14.914 ant-testutil.jar
09-02-2007  23:14             6.889 ant-trax.jar
13-02-2007  20:07         1.290.102 ant.jar
13-02-2007  20:29    <DIR>          etc
09-02-2007  21:52         1.223.877 xercesImpl.jar
09-02-2007  21:52           194.354 xml-apis.jar
              24 bestand(en)        3.473.725 bytes
               3 map(pen)   6.636.945.920 bytes beschikbaar

D:\data\eclipseworkspace\ant-trunk>set CLASSPATH=x:\ant-launcher.jar

D:\data\eclipseworkspace\ant-trunk>java -Dant.home=x:\ -Dant.library.dir=x:\ org
.apache.tools.ant.launch.Launcher -file tst\build.xml
Buildfile: tst\build.xml

test:
     [copy] Copying 1 file to D:\data\eclipseworkspace\ant-trunk\tst
  [replace] Replaced 1 occurrences in 1 files.
  [replace] Replaced 2 occurrences in 1 files.
  [replace] Replaced 0 occurrences in 0 files.

BUILD SUCCESSFUL
Total time: 0 seconds

D:\data\eclipseworkspace\ant-trunk>

-- 
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