Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #687316] 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 #687328 is a reply to message #687316] Mon, 30 May 2011 15:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Ant Problem
Next Topic:(no subject)
Goto Forum:
  


Current Time: Thu Apr 25 01:48:42 GMT 2024

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

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

Back to the top