Hi Naaliel, Great! I've not personally used that plugin.
However I do know what the underlying class running the Source Generator does task an output directory. Without it the default will be the current directory. Does the plugin allow for the output directory to specified? If not or you still can't get it to work, probably best if you look at running the Source Generator from the prompt. http://castor.codehaus.org/sourcegen.html#Command-Line-Options BTW, if you have an Ant script you may want consider integrating Source Generator with that so that the files get built a fresh each time. That way they stay in sync with your .xsd each time you build. Cheers, Andy. -----Original Message----- From: naaliel mendes [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 15:09 To: [email protected] Subject: RE: [castor-user] XSD Files - new problem Hey Andy.. I read your mail and, after, I saw http://xdoclipse.sourceforge.net/presence/projects/castor/usage.html. Thanks. Now, I have another problem. When I use Castor Source Generator inside Eclipse 3.0.1, the following lines are generated in the console, but, in the destine directory I don't see new classes. Console: -- Suppressing non fatal warnings. Creating classes for: publicConstructor Creating classes for: constructors Creating classes for: methods Creating classes for: OzoneClassDescriptor Creating classes for: publicMethod XML Schema File: /ozone-1.1-src-simple/server/src/org/ozoneDB/tools/OPP/OzoneClassDescrip tor.xsd Destination: /ozone-1.1-src-simple/classes Package: org.ozoneDB.tools.OPP Collection type factory: Java 1.1 Binding file: (I executed Castor Plugin with verbose option) Regards, Naaliel --- Andrew Fawcett <[EMAIL PROTECTED]> wrote: > Hi Naaliel, > > I think there is some confusion, you carn't directly import .xsd files > in Java. > > You must use the Castor Source Generator against your .xsd files to > create Java classes. > > If you have an <xsd:element> / <xsd:complexType> named "OzoneClass", > you will see the OzoneClass.java and OzoneClassDescriptor.java files. > > Trying running the Castor Source Generator, if you have any problems > please post back. > > Cheers, > > Andy. > > -----Original Message----- > From: naaliel mendes [mailto:[EMAIL PROTECTED] > Sent: 28 April 2005 05:36 > To: [email protected] > Subject: [castor-user] XSD Files > > Hi, > I have a java routine with the following > specification: > MyClass.java > > OzoneClassDescriptor descriptor = > CDHelper.xml2Descriptor( args[argCount] ); > > But, the "OzoneClassDescriptor" is a xsd file and not a class. So, I > dont know how to consider this structure in the import section. For > while, i always see error when the xsd file is considered. > > Well, the OzoneClassDescriptor.xds and MyClass.java are in the same > package. > > Thanks, > > Naaliel > > > __________________________________________________ > Converse com seus amigos em tempo real com o Yahoo! > Messenger > http://br.download.yahoo.com/messenger/ > > > The information in this message is confidential and may be legally > privileged. It may not be disclosed to, or used by, anyone other than > the addressee. If you receive this message in error, please advise us > immediately. Internet emails are not necessarily secure. CODA does > not accept responsibility for changes to any email which occur after > the email has been sent. Attachments to this email may contain > software viruses, which could damage your systems. > CODA has checked the attachments for viruses before sending, but you > should virus-check them before > opening. > > __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ The information in this message is confidential and may be legally privileged. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately. Internet emails are not necessarily secure. CODA does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email may contain software viruses, which could damage your systems. CODA has checked the attachments for viruses before sending, but you should virus-check them before opening.

