Ant fails without message at javac
        Posted  
        
            by digitala
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by digitala
        
        
        
        Published on 2010-05-07T15:04:25Z
        Indexed on 
            2010/05/07
            15:08 UTC
        
        
        Read the original article
        Hit count: 351
        
I've written an Ant build.xml file which obtains a number of source files via WSDL and compiles them. These have been working on an old, now destroyed (and therefore unavailable for comparison), system but the build process isn't completing on this newer, faster system.
The relevant section of the build file looks like this:
<target name="compile" depends="init">
  <java classname="org.apache.axis.wsdl.WSDL2Java">
    <arg line="--all --server-side --skeletonDeploy --factory --wrapArrays --output src ${srcurl}" />
  </java>
  <javac srcdir="${src}" destdir="${build}" verbose="yes" />
</target>
The files are downloaded via the WSDL service successfully, however after that point Ant simply stops & returns to the commandline.
Versions of the relevant apps:
# java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
# javac -version
javac 1.6.0_14
# ant -version
Apache Ant version 1.6.5 compiled on January 6 2007
I'm assuming that there's a problem with javac that Ant isn't passing back. Is there any way I can get some debugging information from javac? I've tried adding a <record /> tag to the target but that doesn't give any more information than running ant -v does.
Any other suggestions would be great, also!
© Stack Overflow or respective owner