ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praseed balakrishanan <prasee...@yahoo.com>
Subject javac task not generating classes of successful compilation
Date Wed, 30 Apr 2003 06:17:53 GMT
javac exits the task with "BUILD FAIL" error without
generatng classes for successful compilations.

No special message is printed on the console. just the
error stating "failed to compile the respective java
file" and the build exits. but it makes it appera as
its compiling all the classes. but at te end not
writing the classes to the classes (destination)
folder. 

For instance i have a java file in my tree which has
some syntax error and i know of its implication, but i
want javac to continue with compiling other classes
and generate the classes. This is not happening. Its
faling to write classes to the destination folder. 

This prob i noticed with default or modern compilers,
but with classic compiler option the classes are
getting generated, but another problem of dependency
is arises. 


im using ANT 1.5.3 latest. snippet: 

<target name="compile.java" depends="init">
 <echo message="compiling java files... "/> 
<owclasspath
property="appmake.classpath.for.compile"/>
 <mkdir dir="${appmake.basedir}/build/classes" /> 
<!-- compiles common files --> 
<javac
classpath="${appmake.basedir}/build/lib/meta.jar${path.separator{appmake.classpath.for.compile}"
debug="on" 
nowarn="on" 
listfiles="yes" 
failonerror="false" 
deprecation="on" 
optimize="on" 
srcdir="${appmake.basedir}/build/src/com" 
destdir="${appmake.basedir}/build/classes" />
 </target> 

please ignore <owclasspath> and path.sepreator
property . 
owclasspath is my task to get the classpath of my
development environment. 

the above snippet reports an error in a file, but the
whole tree fails to generate class files in "classes"
directory. 


Urgent help required. 







 

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Mime
View raw message