adding a layer.xml to module without one

View: New views
7 Messages — Rating Filter:   Alert me  

adding a layer.xml to module without one

by timotheus2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I fail to generate a layer.xml file when I first create a module, the Module's manifest then does not contain:



OpenIDE-Module-Layer: org/demo/layer.xml



Using the IDE, how do I later add a layer.xml to a module that does not contain one? Do I have to edit the manifest file manually and create a layer.xml with <filesystem> tags? Or is there a way to do this via the IDE user interface?





Re: adding a layer.xml to module without one

by Fabrizio Giudici :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

timotheus2 wrote:

> If I fail to generate a layer.xml file when I first create a module, the Module's manifest then does not contain:
>
>
>
> OpenIDE-Module-Layer: org/demo/layer.xml
>
>
>
> Using the IDE, how do I later add a layer.xml to a module that does not contain one? Do I have to edit the manifest file manually and create a layer.xml with <filesystem> tags? Or is there a way to do this via the IDE user interface?
>  
AFAIK, you have to do that manually, as you described.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@... - mobile: +39 348.150.6941


Re: adding a layer.xml to module without one

by Richard Michalsky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

timotheus2 wrote:
> If I fail to generate a layer.xml file when I first create a module, the Module's manifest then does not contain:
>
> OpenIDE-Module-Layer: org/demo/layer.xml
>
> Using the IDE, how do I later add a layer.xml to a module that does not contain one? Do I have to edit the manifest file manually and create a layer.xml with <filesystem> tags? Or is there a way to do this via the IDE user interface?
>  
Any wizard that produces XML layer entry (e.g. Action wizard, Top
Component wizard, etc.) creates layer.xml as well as manifest entry when
necessary.
R.


Re: adding a layer.xml to module without one

by Fabrizio Giudici :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Richard Michalsky wrote:

> timotheus2 wrote:
>> If I fail to generate a layer.xml file when I first create a module,
>> the Module's manifest then does not contain:
>>
>> OpenIDE-Module-Layer: org/demo/layer.xml
>>
>> Using the IDE, how do I later add a layer.xml to a module that does
>> not contain one? Do I have to edit the manifest file manually and
>> create a layer.xml with <filesystem> tags? Or is there a way to do
>> this via the IDE user interface?
>>  
> Any wizard that produces XML layer entry (e.g. Action wizard, Top
> Component wizard, etc.) creates layer.xml as well as manifest entry
> when necessary.
Yes, but unless you need that stuff, you have to manually remove it
later. I don't think whether this is simpler than manually creating an
empty layer.xml and adding a line to the manifest - but of course this
is subjective.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@... - mobile: +39 348.150.6941


Re: adding a layer.xml to module without one

by Geertjan Wielenga :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fabrizio Giudici wrote:

> Richard Michalsky wrote:
>> timotheus2 wrote:
>>> If I fail to generate a layer.xml file when I first create a module,
>>> the Module's manifest then does not contain:
>>>
>>> OpenIDE-Module-Layer: org/demo/layer.xml
>>>
>>> Using the IDE, how do I later add a layer.xml to a module that does
>>> not contain one? Do I have to edit the manifest file manually and
>>> create a layer.xml with <filesystem> tags? Or is there a way to do
>>> this via the IDE user interface?
>>>  
>> Any wizard that produces XML layer entry (e.g. Action wizard, Top
>> Component wizard, etc.) creates layer.xml as well as manifest entry
>> when necessary.
> Yes, but unless you need that stuff, you have to manually remove it
> later. I don't think whether this is simpler than manually creating an
> empty layer.xml and adding a line to the manifest - but of course this
> is subjective.
>
It would be great to have a file-level template for creating layer.xml
files.

Gj

Re: adding a layer.xml to module without one

by Richard Michalsky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Geertjan Wielenga wrote:

> Fabrizio Giudici wrote:
>> Richard Michalsky wrote:
>>> timotheus2 wrote:
>>>> If I fail to generate a layer.xml file when I first create a
>>>> module, the Module's manifest then does not contain:
>>>>
>>>> OpenIDE-Module-Layer: org/demo/layer.xml
>>>>
>>>> Using the IDE, how do I later add a layer.xml to a module that does
>>>> not contain one? Do I have to edit the manifest file manually and
>>>> create a layer.xml with <filesystem> tags? Or is there a way to do
>>>> this via the IDE user interface?
>>>>  
>>> Any wizard that produces XML layer entry (e.g. Action wizard, Top
>>> Component wizard, etc.) creates layer.xml as well as manifest entry
>>> when necessary.
>> Yes, but unless you need that stuff, you have to manually remove it
>> later. I don't think whether this is simpler than manually creating
>> an empty layer.xml and adding a line to the manifest - but of course
>> this is subjective.
Yep, the idea was that most people will create layer entries with
wizards and whoever is skilled enough to edit layer.xml manually, can
also add manifest entry .
>>
> It would be great to have a file-level template for creating layer.xml
> files.
What kind of template do you mean?
>
> Gj


Re: adding a layer.xml to module without one

by Andreas Stefik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I agree with Gj here. I'm skilled enough to edit my own later.xml file manually --- but if NetBeans can do it for me if I forget, that's still preferable.

Stefik

On Tue, Oct 20, 2009 at 7:57 AM, Richard Michalsky <Richard.Michalsky@...> wrote:
Geertjan Wielenga wrote:
Fabrizio Giudici wrote:
Richard Michalsky wrote:
timotheus2 wrote:
If I fail to generate a layer.xml file when I first create a module, the Module's manifest then does not contain:

OpenIDE-Module-Layer: org/demo/layer.xml

Using the IDE, how do I later add a layer.xml to a module that does not contain one? Do I have to edit the manifest file manually and create a layer.xml with <filesystem> tags? Or is there a way to do this via the IDE user interface?
 
Any wizard that produces XML layer entry (e.g. Action wizard, Top Component wizard, etc.) creates layer.xml as well as manifest entry when necessary.
Yes, but unless you need that stuff, you have to manually remove it later. I don't think whether this is simpler than manually creating an empty layer.xml and adding a line to the manifest - but of course this is subjective.
Yep, the idea was that most people will create layer entries with wizards and whoever is skilled enough to edit layer.xml manually, can also add manifest entry .


It would be great to have a file-level template for creating layer.xml files.
What kind of template do you mean?

Gj