You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by first last <se...@rediffmail.com> on 2007/03/24 08:27:13 UTC
Issue with javac task
Hi,
I am new to ANT.
Currently, iam using ANT 1.7 and java 1.5.0
Earlier, I was compiling java files using command line javac.exe.
Now, I am compiling java files using ANT javac task. Though the build is successful, I observed that the class files generated using ANT javac task is smaller in size compared to the ones compiled with command line java compiler. But the number of class files and classfile names generated are same with both tools.
Classpath is set properly.
The syntax with javac task -
<javac srcdir="${component.source}" destdir="${component.classfiles}" source="1.4" target="1.4.2" includes=**/*.java>
Syntax with command line java compiler -
javac -source 1.4 -target 1.4.2 -d $(classfiles) $(java_source)\*.java
Can anyone please help me out????
Re: Issue with javac task
Posted by Peter Reilly <pe...@gmail.com>.
You need to set the debug attribute to "true" on the javac task.
By default the debug attribute is "false", this corresponds (since
I think ant 1.4) to -g:none.
<javac debug="true" debuglevel="lines"> should give the
same debug info as the default commandline javac.
Peter
On 24 Mar 2007 07:27:13 -0000, first last <se...@rediffmail.com> wrote:
>
> Hi,
>
> I am new to ANT.
> Currently, iam using ANT 1.7 and java 1.5.0
>
> Earlier, I was compiling java files using command line javac.exe.
> Now, I am compiling java files using ANT javac task. Though the build is successful, I observed that the class files generated using ANT javac task is smaller in size compared to the ones compiled with command line java compiler. But the number of class files and classfile names generated are same with both tools.
>
> Classpath is set properly.
>
> The syntax with javac task -
> <javac srcdir="${component.source}" destdir="${component.classfiles}" source="1.4" target="1.4.2" includes=**/*.java>
>
> Syntax with command line java compiler -
> javac -source 1.4 -target 1.4.2 -d $(classfiles) $(java_source)\*.java
>
> Can anyone please help me out????
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org