ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Saunders <mich...@amtec.com>
Subject The verbose flag
Date Thu, 04 May 2000 20:20:32 GMT
To all:

For some reason my javac task does not seem to compile my classes. I am using
JDK1.2.2 on an SGI and I have the build.compiler property set to "classic". Ant
says that it is compiling (I think) but no classes are generated and no errors
are reported.

I looked at the source code for the javac taskdef and noticed that the code
outputs the command line arguments that are passed to the compiler to a log if
the verbose level is set (I this done with the -verbose flag?). However, if I
use the -verbose flag Ant doesn't output the arguments given to the compiler.
What am I doing wrong?

Following is an excerpt from my build.xml file and following that an excerpt
from Ant output using the -verbose flag.

Thanks,
Michael


  <!-- Compiles the source code -->
  <target name="compile" depends="prepare">
    <mkdir dir="${build.classes}"/>
    <javac srcdir="${src.dir}"
           destdir="${build.classes}"
           classpath="${classpath}"
           debug="on"
           deprecation="on"
           optimize="on" >
      <include name="amtec/io/*.java"/>
    </javac>


% ant -verbose
Buildfile: build.xml
Detected Java Version: 1.2
Detected OS: Irix
...
[snip]
...
Setting project property: classpath -> .
Setting project property: build.compiler -> classic
 +Target: prepare
   +Task: mkdir
 +Target: compile
   +Task: mkdir
   +Task: javac
 +Target: clean
   +Task: deltree
Build sequence for target `compile' is [prepare, compile]
Complete build sequence is [prepare, compile, clean]
Executing Target: prepare
Executing Target: compile
Completed in 6 seconds

Mime
View raw message