Solved

How to generate individual source files with XMLBeans?

Posted on 2007-11-26
7
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 64
JavaFX TableView not displaying correctly 3 109
Java: The Public Class Main 4 46
ejb message driven bean mdb creation steps 2 36
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

726 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