Solved

How to generate individual source files with XMLBeans?

Posted on 2007-11-26
7
261 Views
Last Modified: 2010-03-30
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
0
Comment
Question by:BrianMc1958
  • 3
  • 2
  • 2
7 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 20352804
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
 

Author Comment

by:BrianMc1958
ID: 20353377
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
 
LVL 92

Expert Comment

by:objects
ID: 20353435
i don't believe you can do that
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 20353458
If you mean you want to generate source, see the srcgendir and javasource attributes
0
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
ID: 20353464
you would need to generate the classes and source to a directory, then create a jar from them.
0
 

Author Comment

by:BrianMc1958
ID: 20353537
Thanks a lot, folks.  XMLBeans are rocking my little world...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20353953
:-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 74
Running Jira on Raspberry PI 2? 3 247
Unable to start eclipse ? 17 128
Java DateChooser? 3 29
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now