List Info

Thread: How to specify package name from Ant task?




How to specify package name from Ant task?
user name
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?
user name
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:bowenbogmail.com] 
Sent: Friday, June 15, 2007 9:32 AM
To: userxmlbeans.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-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: How to specify package name from Ant task?
user name
2007-06-15 13:50:00
Thanks Wing Yew for the help! ; It is working now after I added "*.xsdconfig&quot; to <fileset/>.&nbsp;  Previously, it has only "*.xsd".
 
Bo

 
On 6/15/07, Wing Yew Poon < wpoonbea.com">wpoonbea.com&gt; 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: bowenbogmail.com">bowenbogmail.com]
Sent: Friday, June 15, 2007 9:32 AM
To: userxmlbeans.apache.org">userxmlbeans.apache.org
Subject: How to specify package name from Ant task?


Hi, All,

In Ant XMLBean task, I specified package name through
&quot;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:&nbsp; This email message, together with any attachments, may contain information &nbsp;of &nbsp;BEA Systems,&nbsp; Inc., &nbsp;its subsidiaries &nbsp;and ; affiliated entities,&nbsp; that may be confidential, &nbsp;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-unsubscribexmlbeans.apache.org">user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org">user-helpxmlbeans.apache.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )