Solved

How to generate individual source files with XMLBeans?

Posted on 2007-11-26
7
259 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
Comment Utility
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
Comment Utility
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
Comment Utility
i don't believe you can do that
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
Comment Utility
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
Comment Utility
you would need to generate the classes and source to a directory, then create a jar from them.
0
 

Author Comment

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

Expert Comment

by:CEHJ
Comment Utility
:-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange and Third Party application. 8 59
strDist challenge 35 84
groovy example issue 10 65
maven project error 5 17
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

771 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