ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "query" <search2...@rediffmail.com>
Subject Classpath issue in <javac> task
Date Fri, 01 Jun 2007 10:01:09 GMT
I have created classpath in a build file and using it in the same build file for compiling
java source files.&nbsp;When I checked the log file I found that classfile destination
folder(absolute path of class.dest) was also included in the classpath though I had not specified
it in eg.class.pathAs a result, it is creating more class files.I suspect that this is due
to that extra path in classpath.
Is there any way to exclude that classpath while compiling java source files?
The extra class files that are generated are required by eg2.xml. But they are already created
while building eg1.jar and eg1.jar is spcified in classpath. But still while compiling eg2
source files these class files are getting generated again. Why is it so?
Log file:
[javac] Using modern compiler&nbsp;&nbsp;&nbsp; [javac] Compilation arguments:&nbsp;&nbsp;&nbsp;
[javac] \'-d\'&nbsp;&nbsp;&nbsp; [javac] \'E:\\samplebuild\\eg\\eg2\\classfiles\'&nbsp;&nbsp;&nbsp;
[javac] \'-classpath\'&nbsp;&nbsp;&nbsp; [javac] \'E:\\samplebuild\\eg\\eg2\\classfiles;C:\\PROGRA~1\\jdk1.5;E:\\samplebuild\\eg\\eg1\\eg.jar\'&nbsp;&nbsp;&nbsp;
[javac] \'-sourcepath\'&nbsp;&nbsp;&nbsp; [javac] \'E:\\samplebuild\\eg\\eg2\\sourcefiles\'&nbsp;&nbsp;&nbsp;
[javac] \'-g:none\'&nbsp;&nbsp;&nbsp; [javac] &nbsp;&nbsp;&nbsp; [javac]
The \' characters around the executable and arguments are&nbsp;&nbsp;&nbsp; [javac]
not part of the command.&nbsp;&nbsp;&nbsp; [javac] Files to be compiled:&nbsp;.&nbsp;.&nbsp;.
Build file:
&lt;javac srcdir=\"${src.dest}\" destdir=\"${class.dest}\" includeAntRuntime=\"no\"&gt;&nbsp;&lt;include
name=\"*.java\"/&gt;&nbsp;&lt;classpath refid=\"eg.class.path\"/&gt;&lt;/javac&gt;
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message