How to generate individual source files with XMLBeans?

Dear Experts,

I'm using this Ant to generate an XMLBeans jar.  However, it doesn't actually include the source.  Is there a way to do that?:

...
<taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean"
  classpathref="project.class.path"/>
<xmlbean schema="C:\FTG\Projects\Total\schemas"     destfile="C:\FTG\Projects_Libraries\Total_Libraries\ParmSet_1.jar" classpathref="project.class.path"/>
...

Thanks!
BrianMc1958
BrianMc1958Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CEHJConnect With a Mentor Commented:
If you mean you want to generate source, see the srcgendir and javasource attributes
0
 
CEHJCommented:
Try

<xmlbean schema="C:\FTG\Projects\Total\schemas"     destfile="C:\FTG\Projects_Libraries\Total_Libraries\ParmSet_1.jar" classpathref="project.class.path" includes="**/*.java"/>
0
 
BrianMc1958Author Commented:
Oh.  I think my question was ambiguous.  I would like the source OUTPUT of the XMLBeans to be included with the jar file it probuces.  I think you thought I meant that the XMLBeans compiler couldn't find the source...
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
objectsCommented:
i don't believe you can do that
0
 
objectsConnect With a Mentor Commented:
you would need to generate the classes and source to a directory, then create a jar from them.
0
 
BrianMc1958Author Commented:
Thanks a lot, folks.  XMLBeans are rocking my little world...
0
 
CEHJCommented:
:-)
0
All Courses

From novice to tech pro — start learning today.