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 15515] New: - ANT jar task seems to cache the jar file when originally created, added classes not seen after jar update
Date Thu, 19 Dec 2002 04:41:33 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=15515>.
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=15515

ANT jar task seems to cache the jar file when originally created, added classes not seen after
jar update

           Summary: ANT jar task seems to cache the jar file when originally
                    created, added classes not seen after jar update
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: jwoodie@paradyne.com


I have a task that executes javac on a set of java source files (task1), then
executes the jar command.  I then execute another task (task2) that again
compiles some additional java source and updates the above jar file.  I then
execute another task (task3) that uses the javac task using the above jar file
in the classpath.  This task fails because one of the .java files is unable to
locate a package that should be in above jar file.  If I look at the jar file,
the package is indeed there.  The package was added to the jar in task2.  It
seems as though ANT is only referencing the packages that were added in task1
and not task2 that used the "update" option of the jar task.  This only seems to
happen if I try and run all three task together ant task1 task2 task3.  If I run
ant execute task 1 and 2 (ant task1 task2.  Then run ant again to execute task 3
(ant task3), it finds the package and works fine.

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