maarten wrote:
Hi,
Using xmlbeans-1.0.4 I can compile and use my schema with jdk1.5.0_03
but when I try compiling with j2sdk1.4.2_08
I get the following error:
java.lang.UnsupportedClassVersionError:
org/apache/xmlbeans/xml/stream/XMLInputStream (Unsupported major.minor
version 49.0)
Using xmlbeans-2.0.0 I can compile with both jdk1.5.0_03 and
j2sdk1.4.2_08
BUT i had to add jsr173_api.jar to the classpath of both the taskdef
and the xmlbean task:
I guess the examples on
http://xmlbeans.apache.org/docs/2.0.0/guide/antXmlbean.html are
incomplete ?
This is my build.xml :
<project name="vapschema" basedir="." default="vapschema">
<target name="init">
<mkdir dir="gen/xbeans"/>
<mkdir dir="build/xbeans/classes"/>
<tstamp/>
</target>
<target name="vapschema" depends="init" description="Compiles
vap.xsd with xmlbeans">
<taskdef name="xmlbean"
classname="org.apache.xmlbeans.impl.tool.XMLBean"
classpath="./jars/xbean-2.0.0.jar:./jars/jsr173_api.jar"/>
<xmlbean
schema="./src/be/sunrise/vap/vap.xsd"
classgendir="build/xbeans/classes"
srcgendir="gen/xbeans"
destfile="build/vap-schema.jar"
classpath="./jars/xbean-2.0.0.jar:./jars/jsr173_api.jar"/>
</target>
</project>
Maarten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is nobody else using the ant task ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]