|
|
|
|
Re: Dynamic web project content directory [message #150538 is a reply to message #149904] |
Fri, 02 December 2005 17:27  |
Eclipse User |
|
|
|
This worked for me as well,
thanks
"Daniel Rohe" <daniel.rohe@stud.tu-ilmenau.de> wrote in message
news:dmjr9f$o8u$1@news.eclipse.org...
> Brian Jakubik schrieb:
>> Thanks Eric, but this only gives me a path to the root of the project,
>> not the content directory that can be defined when creating a new project
>> (other than WebContent.)
>>
>> Brian
>>
>>
>> "Eric Norman" <enorman@webmethods.com> wrote in message
>> news:dmidqt$2dk$1@news.eclipse.org...
>>
>>>I've been getting a handle to the content folder like this (using 1.0M9):
>>>
>>>IVirtualComponent component = ComponentCore.createComponent(project);
>>>IVirtualFolder contentFolder = component.getRootFolder();
>>>
>>>If there is a better way, please let me know.
>>>
>>>Regards,
>>>Eric
>>>
>>>
>>
>>
>>
>
> I use this method, too. I think the virtual root folder is the content
> folder of the project because when I make
> contentFolder.getFolder(WebArtifactEdit.WEBLIB) I get the WEB-INF/lib
> folder. To get the Resource folder of the content folder you can make
> contentFolder.getUnderlyingFolder().
>
> Kind regards,
> Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03998 seconds