Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Dynamic web project content directory
Dynamic web project content directory [message #149787] Tue, 29 November 2005 19:25 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
It there a way to programatically (method call) get the content directory of
a dynamic web project? other than reading the .component file?

Thanks
Brian Jakubik
Re: Dynamic web project content directory [message #149818 is a reply to message #149787] Tue, 29 November 2005 20:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: enorman.webmethods.com

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
Re: Dynamic web project content directory [message #149849 is a reply to message #149818] Tue, 29 November 2005 22:33 Go to previous messageGo to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
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
>
>
Re: Dynamic web project content directory [message #149904 is a reply to message #149849] Wed, 30 November 2005 09:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

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
Re: Dynamic web project content directory [message #150538 is a reply to message #149904] Fri, 02 December 2005 22:27 Go to previous message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
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
Previous Topic:Server startup over network?
Next Topic:Generic server launch configuration
Goto Forum:
  


Current Time: Fri Apr 26 03:20:47 GMT 2024

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

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

Back to the top