Mind showing us the NPE (stacktrace) ? ANd what Castor version are you
using ?
Werner
Ezequiel Puig wrote:
> Hi,
>
>
>
> I am trying to use the ant task over a valid xsd and i am getting a
> _java.lang.NullPointerException_
>
> I know it looks stupid, but i connot find the error. The xsd is
> enourmous, so it’s in the attachement.
>
>
>
> My ant task looks like:
>
>
>
> <?xml version="1.0"?>
>
> <project default="castor:gen:ComplexTypes" basedir=".">
>
>
>
> <property name="lib.dir" value="${basedir}/lib" />
>
> <property name="src.dir" value="${basedir}/../../src" />
>
> <property name="xsd.dir" value="${basedir}/xsd" />
>
>
>
> <path id="classpath">
>
> <fileset dir="${lib.dir}" includes="**/*.jar"/>
>
> </path>
>
> <target name="castor:gen:ComplexTypes" description="Generate Java
> source files from ComplexTypes XSD.">
>
> <taskdef name="castor-srcgen"
>
> classname="org.castor.anttask.CastorCodeGenTask"
>
> classpathref="classpath" />
>
> <mkdir dir="generated" />
>
> <castor-srcgen file="${xsd.dir}/xft_ComplexTypes.xsd"
>
> todir="${src.dir}"
>
> package="domaine.response"
>
> types="j2"
>
> verbose="true"
>
> nameConflictStrategy="informViaLog"
>
> />
>
> </target>
>
> </project>
>
>
>
>
>
> I have to say that i have used the same ant task with others xsd without
> any problem, so i think whe issue is more xsd related than ant related.
>
>
>
> Thanks for your time and have a nice weekend.
>
>
>
> Ezequiel
>
>
>
>
>
> _ _
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email