ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "query" <>
Subject javac task with classpath issue
Date Fri, 08 Jun 2007 07:23:05 GMT
I have already compiled some java source files using ANT &lt;javac&gt; task and created
a jar file(eg1.jar). I am using eg1.jar in the classpath to compile files in E:\\ANTBUILD\\eg\\eg2\\sources.The
log shows that in the classpath, it is also including the destination folder as a classpath.
Is it an expected issue in &lt;javac&gt; task?
&nbsp;&nbsp;&nbsp; [javac] \'-d\'&nbsp;&nbsp;&nbsp; [javac] \'E:\\ANTBUILD\\eg\\eg2\\ClassFiles\'&nbsp;&nbsp;&nbsp;
[javac] \'-classpath\'&nbsp;&nbsp;&nbsp; [javac] \'E:\\ANTBUILD\\eg\\eg2\\ClassFiles;C:\\PROGRA~1\\jdk1.5.0;E:\\ANTBUILD\\eg\\eg1\\eg1.jar

There a few common java source files which are used in both eg1 and eg2 folder. As eg1.jar
is already having these class files, while compiling eg2 source files, it shouldn\'t create
these classfiles again. But the class files are generated and hence populating eg2.jar file
with more class files than expected. What may be the reason for this behaviour?
This issue was not observed when I was using some other build tool. Observed only in ANT tool.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message