The way you use the Ant task looks ok, except perhaps that the use of
'classpath="../lib/xbean.jar"' when you invoke the task is probably
superfluous. XmlBeans ant task is using the <javac> task to perform the
Java compilation, maybe there's a problem with that, have you tried
using a separate task for Java compilation? (put 'srconly="true"' in the
XMLBeans task so that it skip javac)

Radu 

> -----Original Message-----
> From: Stefan Offermann [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 13, 2007 3:19 AM
> To: user@xmlbeans.apache.org
> Subject: javac error while running ant task
> 
> Hi.
> 
> I try to use an old ant-task to build my xmlbeans, but it 
> failed while compiling. The error message in eclipse is too 
> generic to solve the problem:
> 
> ----- 8< ----- Error Message ---------------------------------
> 
> [xmlbean] Compiling 18 source files to
> C:\DOKUME~1\OFFERM~1\LOKALE~1\Temp\xbean63722.d\classes
> 
> BUILD FAILED
> D:\Eclipse\OpportunizerModule\ant\make-feed-bean.xml:25: 
> Error running javac.exe compiler
> 
> ----- >8 ----- Error Message ---------------------------------
> 
> Here is a part of the ant-task:
> 
> <taskdef name="xmlbean" 
> classname="org.apache.xmlbeans.impl.tool.XMLBean" 
> classpath="../lib/xbean.jar" />
> 
> <xmlbean destfile="${jar-fullpath}" download="true" 
> failonerror="true" 
> classpath="../lib/xbean.jar" verbose="true">
> 
> Should this be different?
> 
> Or is it a matter of the JDK ant uses to compile the generated files? 
> How can I change it? Is there an option in eclipse or do I 
> have to change an enviroment variable?
> 
> Best regards,
> Stefan Offermann
> 
> --
> Stefan Offermann
> Institute for Geoinformatics (IfGI), University of Muenster, 
> Germany Weseler Strasse 253, D - 48151 Muenster
> Fon:  +49 (0)251 83-31961   Fax: +49 (0)251 83-39763
> Mail: [EMAIL PROTECTED] http://ifgi.uni-muenster.de/~offermann
> Skype: stefanoffermann
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to