Menu

#1 Missing source definition in ant build.xml

open
nobody
None
5
2006-12-28
2006-12-28
No

Since whex uses classes from the enum package of Apache's axis, which is deprecated in java 1.5, the build flag should be set by Ant, or else the build will fail on systems running java versions higher than 1.4. For example:

[javac] /home/betterbe/mjansen/workspace/whex-cvs/src/rex/org/tempuri/wsdl/ClsXMLAProxSoapBindingStub.java:67: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] oper.setUse(org.apache.axis.enum.Use.ENCODED);

Of course the real workaround would be rewriting the classes using deprecated interfaces, but until this is done, the build.xml should set the java source compatibility to the 1.4 release. This can be done by adding the property source="1.4" to the javac directive inside the compile target.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB