I have created classpath in a build file and using it in the same build file
for compiling java source files. 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 in eg.class.pathAs a result, it 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?
Log file:
[javac] Using modern compiler [javac] Compilation
arguments: [javac] \'-d\' [javac]
\'E:\\samplebuild\\eg\\eg2\\classfiles\' [javac]
\'-classpath\' [javac]
\'E:\\samplebuild\\eg\\eg2\\classfiles;C:\\PROGRA~1\\jdk1.5;E:\\samplebuild\\eg\\eg1\\eg.jar\'
[javac] \'-sourcepath\' [javac]
\'E:\\samplebuild\\eg\\eg2\\sourcefiles\' [javac]
\'-g:none\' [javac] [javac] The \'
characters around the executable and arguments are [javac]
not part of the command. [javac] Files to be compiled:
Build file:
<javac srcdir=\"${src.dest}\" destdir=\"${class.dest}\"
includeAntRuntime=\"no\"> <include
name=\"*.java\"/> <classpath
refid=\"eg.class.path\"/></javac>