You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by sri <sr...@gmail.com> on 2006/07/18 16:08:49 UTC
schema jars
I have a base schema base.xsd. there are two schemas schema1.xsd and
schema2.xsd that import this base schema.
Is there a way to create the base jar first using the schema compiler and
then include this in the class path so that the schema1.jar produced when
compiling schema1.xsd or schema2.jar produced when compiling schema2.xsd do
not contain the base classes
thank you
Re: schema jars
Posted by Alex Soto <al...@grifols.com>.
i just don't know exactly, but you can create the classes using ANT, and
generating .class intoa folder, and then using jar ant task create the
jars as your requirements.
sri wrote:
> I have a base schema base.xsd. there are two schemas schema1.xsd and
> schema2.xsd that import this base schema.
>
> Is there a way to create the base jar first using the schema compiler
> and then include this in the class path so that the schema1.jar
> produced when compiling schema1.xsd or schema2.jar produced when
> compiling schema2.xsd do not contain the base classes
>
> thank you
>
La información contenida en el presente e-mail es confidencial y está reservada para el uso exclusivo de su destinatario. Se prohíbe estrictamente la distribución, copia o utilización de esta información sin el previo permiso de su destinatario. Si usted no fuera el destinatario, por favor notifíquelo inmediatamente al remitente y elimine el presente mensaje de su sistema informático.
Information contained in this e-mail is confidential and is intended for the use of the addressee only. Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited. If you are not the intended addressee, please notify the sender immediately by reply and then delete this message from your computer system.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
RE: schema jars
Posted by Wing Yew Poon <wp...@bea.com>.
Yes, that is correct. When the java compiler compiles the code generated
by xmlbeans from the schema(s), it uses what you pass in under the -cp
option for the classpath, if the -cp option is used; and so you need
xbean.jar there.
Wing Yew
________________________________
From: sri [mailto:srivalla@gmail.com]
Sent: Friday, July 21, 2006 4:14 PM
To: user@xmlbeans.apache.org
Subject: Re: schema jars
thank you, we should also include the xbean.jar in the classpath
On 7/20/06, Cezar Andrei <ce...@bea.com> wrote:
You have to compile base.xsd alone first, than compile
schema1.xsd having the first generated jar on classpath.
scomp -out base.jar base.xsd
scomp -cp base.jar -out schema1.jar schema1.xsd
scomp -cp base.jar;schema1.jar -out schema2.jar schema2.xsd
Cezar
________________________________
From: sri [mailto: srivalla@gmail.com]
Sent: Tuesday, July 18, 2006 9:09 AM
To: user@xmlbeans.apache.org
Subject: schema jars
I have a base schema base.xsd. there are two schemas schema1.xsd
and schema2.xsd that import this base schema.
Is there a way to create the base jar first using the schema
compiler and then include this in the class path so that the schema1.jar
produced when compiling schema1.xsd or schema2.jar produced when
compiling schema2.xsd do not contain the base classes
thank you
_______________________________________________________________________
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.
Re: schema jars
Posted by sri <sr...@gmail.com>.
thank you, we should also include the xbean.jar in the classpath
On 7/20/06, Cezar Andrei <ce...@bea.com> wrote:
>
> You have to compile base.xsd alone first, than compile schema1.xsdhaving the first generated jar on classpath.
>
>
>
> scomp –out base.jar base.xsd
>
> scomp –cp base.jar –out schema1.jar schema1.xsd
>
> scomp –cp base.jar;schema1.jar –out schema2.jar schema2.xsd
>
>
>
> Cezar
>
>
> ------------------------------
>
> *From:* sri [mailto:srivalla@gmail.com]
> *Sent:* Tuesday, July 18, 2006 9:09 AM
> *To:* user@xmlbeans.apache.org
> *Subject:* schema jars
>
>
>
> I have a base schema base.xsd. there are two schemas schema1.xsd and
> schema2.xsd that import this base schema.
>
>
>
> Is there a way to create the base jar first using the schema compiler and
> then include this in the class path so that the schema1.jar produced when
> compiling schema1.xsd or schema2.jar produced when compiling schema2.xsddo not contain the base classes
>
>
>
> thank you
>
>
>
> _______________________________________________________________________
> 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.
>
>
RE: schema jars
Posted by Cezar Andrei <ce...@bea.com>.
You have to compile base.xsd alone first, than compile schema1.xsd
having the first generated jar on classpath.
scomp -out base.jar base.xsd
scomp -cp base.jar -out schema1.jar schema1.xsd
scomp -cp base.jar;schema1.jar -out schema2.jar schema2.xsd
Cezar
________________________________
From: sri [mailto:srivalla@gmail.com]
Sent: Tuesday, July 18, 2006 9:09 AM
To: user@xmlbeans.apache.org
Subject: schema jars
I have a base schema base.xsd. there are two schemas schema1.xsd and
schema2.xsd that import this base schema.
Is there a way to create the base jar first using the schema compiler
and then include this in the class path so that the schema1.jar produced
when compiling schema1.xsd or schema2.jar produced when compiling
schema2.xsd do not contain the base classes
thank you
_______________________________________________________________________
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.