Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ant Problem(XSD2Java creates wrong package names)
Ant Problem [message #675052] Mon, 30 May 2011 07:33 Go to next message
Kai B. Heinz is currently offline Kai B. HeinzFriend
Messages: 17
Registered: March 2011
Location: Germany
Junior Member
Hi there,
I encountered a problem using the XSD2Java ANT-Task. The namespace URI of the XSD is something like: "http://example.org/StandardInterface". The generated package is: "org.example.standard.interface". As you can see, the key-word 'interface' is used without changes. Doing it manually (New > EMF Generator Model > ..) the package is "org.example.standard.interface_".
For me this looks like a bug in the ANT-Task. Is this a known problem? Is there a patch or work-around available?

Thanks Kai
Re: Ant Problem [message #687103 is a reply to message #675052] Mon, 30 May 2011 15:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30457
Registered: July 2009
Senior Member
Kai,

You could use an ecore:package annotation in the schema.

When I try to use a EPackage name with a keyword the generator
automatically adds "_"; I'm not sure why that wouldn't be the case for
the Ant task...


Kai B. Heinz wrote:
> Hi there,
> I encountered a problem using the XSD2Java ANT-Task. The namespace URI
> of the XSD is something like: "http://example.org/StandardInterface".
> The generated package is: "org.example.standard.interface". As you can
> see, the key-word 'interface' is used without changes. Doing it
> manually (New > EMF Generator Model > ..) the package is
> "org.example.standard.interface_".
> For me this looks like a bug in the ANT-Task. Is this a known problem?
> Is there a patch or work-around available?
>
> Thanks Kai
Previous Topic:Delegates for creating instances of data types
Next Topic:(no subject)
Goto Forum:
  


Current Time: Sat Sep 21 00:35:53 GMT 2019

Powered by FUDForum. Page generated in 0.02337 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top