This is a behaviour of Suns java compiler which Ant uses under the hood.
I dont know if there is any (external) task to use the Eclipse compiler, which 
could that job.

Another approach is compiling each java source for its own (I did a very small 
example four years
ago [1]).


Jan


[1] http://marc.theaimsgroup.com/?l=ant-user&m=104505284122888&w=2

>-----Ursprüngliche Nachricht-----
>Von: Lokesh Jayaraman [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 23. Februar 2007 07:17
>An: user@ant.apache.org
>Betreff: Problem : javac ANT Task
>
>Hi every body,
>
>I compiled java source files using javac ant task , my java code files
>have  an errror. so , ant script failled to build class files for java
>source files.
>But i need to compile other java source files in srcdir . Even 
>class files
>are not created for compiled java source files.I need to 
>compile all other
>source java files and warning or error information needed for 
>errored code
>java files.
>
>
>My Code Below:
>target name="Compile" >
><javac srcdir="D:\Test\WebContent\WEB-INF\src"
>destdir="Test\WebContent\WEB-INF\classes" failonerror="false"
>listfiles="yes" deprecation="on">
></javac>
>
>
>But i got Error as
> [javac]     int iQuestionId = Integer.parseInt(request.getParameter
>("quesid");
> [javac]
>^
> [javac] 1 error
> [javac] Compile failed; see the compiler error output for details.
>
>
>Kindly help to solve my Error
>
>
>by
>Lokesh
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to