|
List Info
Thread: How to specify package name from Ant task?
|
|
| How to specify package name from Ant
task? |

|
2007-06-15 11:31:58 |
|
Hi, All,
In Ant XMLBean task, I specified package name through "typesystemname=com.mypackage", but generated classes did not take it.
If I use .xsdconfig in CLI mode, "scomp -out my.jar my.xsd my.xsdconfig" and it does work. Package name is specified in my.xsdconfig file.
What is the right way to specify package name in Ant task? Can Ant task to use .xsdconfig?
Thanks in advance!
Bo
|
| RE: How to specify package name from Ant
task? |

|
2007-06-15 13:12:15 |
Bo,
the typesystemname attribute is not for the purpose of
specifying the
package name for your generated classes; it is for
specifying the
package
name of the TypeSystemHolder class, which is a class that is
not
generated
in the src, but only as a compiled class file in the jar.
For the purpose of specifying the package name for the
generated bean
classes, you should use an xsdconfig file. I haven't tried
it, but I
think
you do it the same way as you would using scomp from the
command line,
i.e.,
the xsdconfig file should be among the files you pass in.
You can do so
using a fileset element inside the xmlbean task.
- Wing Yew
________________________________
From: Bo Wen [mailto:bowenbo gmail.com]
Sent: Friday, June 15, 2007 9:32 AM
To: user xmlbeans.apache.org
Subject: How to specify package name from Ant task?
Hi, All,
In Ant XMLBean task, I specified package name through
"typesystemname=com.mypackage", but generated
classes did not take it.
If I use .xsdconfig in CLI mode, "scomp -out my.jar
my.xsd my.xsdconfig"
and it does work. Package name is specified in my.xsdconfig
file.
What is the right way to specify package name in Ant task?
Can Ant task
to use .xsdconfig?
Thanks in advance!
Bo
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: user-unsubscribe xmlbeans.apache.org
For additional commands, e-mail: user-help xmlbeans.apache.org
|
|
| Re: How to specify package name from Ant
task? |

|
2007-06-15 13:50:00 |
|
Thanks Wing Yew for the help! It is working now after I added "*.xsdconfig" to <fileset/>. Previously, it has only "*.xsd".
Bo
On 6/15/07, Wing Yew Poon < wpoon bea.com">wpoon bea.com> wrote:
Bo, the typesystemname attribute is not for the purpose of specifying the package name for your generated classes; it is for specifying the
package name of the TypeSystemHolder class, which is a class that is not generated in the src, but only as a compiled class file in the jar. For the purpose of specifying the package name for the generated bean
classes, you should use an xsdconfig file. I haven't tried it, but I think you do it the same way as you would using scomp from the command line, i.e., the xsdconfig file should be among the files you pass in. You can do so
using a fileset element inside the xmlbean task. - Wing Yew
________________________________
From: Bo Wen [mailto: bowenbo gmail.com">bowenbo gmail.com] Sent: Friday, June 15, 2007 9:32 AM
To: user xmlbeans.apache.org">user xmlbeans.apache.org Subject: How to specify package name from Ant task?
Hi, All,
In Ant XMLBean task, I specified package name through "typesystemname=
com.mypackage", but generated classes did not take it.
If I use .xsdconfig in CLI mode, "scomp -out my.jar my.xsd my.xsdconfig" and it does work. Package name is specified in my.xsdconfig file.
What is the right way to specify package name in Ant task? Can Ant task to use .xsdconfig?
Thanks in advance! Bo
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: user-unsubscribe xmlbeans.apache.org">user-unsubscribe xmlbeans.apache.org For additional commands, e-mail:
user-help xmlbeans.apache.org">user-help xmlbeans.apache.org
|
[1-3]
|
|