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 12820] - inheritRefs is broken
Date Mon, 23 Sep 2002 15:02:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12820

inheritRefs is broken





------- Additional Comments From daniel.armbrust@mayo.edu  2002-09-23 15:02 -------
The zip file I just attached should demonstrate the bug.  

The build file is very strange, but this is how I had to set things up to
demonstrate the bug.  

Class a.Test simply has a static method that prints what you send it.

Class b.Test2 simply calls that method in class a.Test.  

a.Test is jarred, and then used in the classpath of b.Test2.

When ant executes b.Test2 without using inheritRefs to pass the classpath, it works.
When ant executes b.Test2 using inheritRefs to pass the classpath, it fails.

ant -testInheritRefs 
runs compile, and then init (which makes a fileset of the jar file)
and then calls testInheritRefs1 (which has no stated dependencies) which
executes b.Test2.

ant -testWithoutInheritRefs
runs compile, init, and then executes b.Test2 itself.


Here is my output when I execute the bug:

H:\Projects\scratch\development\antBug>ant -projecthelp
Buildfile: build.xml
Main targets:

 compile                 compile the files
 testInheritRefs         Test Ant Call with inheritRefs
 testWithoutInheritRefs  Test the java without inheritRefs

Default target: test
H:\Projects\scratch\development\antBug>ant testWithoutInheritRefs
Buildfile: build.xml

compile:
    [javac] Compiling 1 source file
      [jar] Building jar: H:\Projects\scratch\development\antBug\a.jar
    [javac] Compiling 1 source file

init:

testWithoutInheritRefs:
     [echo] foobar
     [java] calling the helper

BUILD SUCCESSFUL
Total time: 6 seconds
H:\Projects\scratch\development\antBug>ant testInheritRefs
Buildfile: build.xml

compile:

init:

testInheritRefs:

testInheritRefs1:
     [echo] foobar modified

BUILD FAILED
file:H:/Projects/scratch/development/antBug/build.xml:24: No directory specified
for fileset.

Total time: 2 seconds
H:\Projects\scratch\development\antBug>

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


Mime
View raw message