You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by na...@apache.org on 2010/05/16 22:35:33 UTC
svn commit: r944905 -
/tuscany/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml
Author: nash
Date: Sun May 16 20:35:33 2010
New Revision: 944905
URL: http://svn.apache.org/viewvc?rev=944905&view=rev
Log:
Ensure code generated by wsimport is compiled with JDK 5 compatibility
Modified:
tuscany/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml
Modified: tuscany/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml?rev=944905&r1=944904&r2=944905&view=diff
==============================================================================
--- tuscany/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml (original)
+++ tuscany/sca-java-1.x/branches/sca-java-travelsample-1.0/antdefs.xml Sun May 16 20:35:33 2010
@@ -151,14 +151,17 @@
</condition>
</target>
- <!-- run the JDK wsimport command if available -->
+ <!-- run the JDK wsimport command if available, then compile the generated Java source -->
<target name="#wsimport-jdk" if="#jdk-wsimport">
<property name="#jaxws-tools-dir" value=""/>
<mkdir dir="target/jaxws-source"/>
<exec executable="${java.home}/../bin/wsimport" dir="." failonerror="true">
<arg line="-keep -s ./target/jaxws-source -p ${package}
- -d ./target/classes src/main/resources/${wsdlfile}"/>
+ -Xnocompile src/main/resources/${wsdlfile}"/>
</exec>
+ <javac destdir="target/classes" debug="true" source="1.5" target="1.5">
+ <src path="target/jaxws-source"/>
+ </javac>
</target>
<!-- If building a downloaded distribution, the JAX-WS jars are in lib/jaxws -->