Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Take existing JS project and make it deployable with WTP
Take existing JS project and make it deployable with WTP [message #1696486] Tue, 26 May 2015 16:27 Go to next message
Alex Dowgailenko is currently offline Alex DowgailenkoFriend
Messages: 1
Registered: May 2012
Junior Member
I have a JS project that looks like this:

/index.html
/js/stuff.js
/css/stuff.css


I want to now deploy this in Tomcat using WTP but I do not want to move these files into separate folders. Currently, it seems I can not include specific files in the Deployment Assembly settings page, nor can I include the root folder of the project.

Is there ways to get past this restriction? I am not against introducing maven into the project. Thank you.
Re: Take existing JS project and make it deployable with WTP [message #1696677 is a reply to message #1696486] Wed, 27 May 2015 20:10 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 5/27/2015 9:19 AM, Alex Dowgailenko wrote:
> I have a JS project that looks like this:
>
>
> /index.html
> /js/stuff.js
> /css/stuff.css
>
>
> I want to now deploy this in Tomcat using WTP but I do not want to move
> these files into separate folders. Currently, it seems I can not include
> specific files in the Deployment Assembly settings page, nor can I
> include the root folder of the project.
>
> Is there ways to get past this restriction? I am not against introducing
> maven into the project. Thank you.
>

When working in the domain of a project, as opposed to the workspace, I
don't think "root" is a folder. I think it may be the project, which
isn't the quite same thing as a folder. This may be why the Deployment
Assembly page doesn't offer to include the "root folder".

A long time ago, before the Deployment Assembly page existed, there was
some attempt to allow the root of the project to be used. I also recall
there being a number issues with supporting this. I think the issues
dealt mostly with distinguishing what was meant to be webapp content and
what wasn't. For example, you probably don't want to include any Java
source in that webapp content. Though your current project would not be
affected, such a "feature" would still need to work correctly in more
complex use cases, which proved to be a problem. Thus, it may not be
supported anymore or at least very risky to use even if there was a way
to make it happen.

Is there a problem with using:

/WebContent/index.html
/WebContent/js/stuff.js
/WebContent/css/stuff.css

which would be the default way that Dynamic Web Projects set up the
"content" folder and should just work?

I'm not sure if maven will help as it typically expects web content in a
sub folder of the project too, i.e. I believe "src/main/webapp" instead
of "WebContent".

Cheers,
Larry
Previous Topic:eclipse problem for define remote websphere application server v7
Next Topic:Eclipse deploy jar instead of war
Goto Forum:
  


Current Time: Wed Sep 25 07:24:47 GMT 2024

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

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

Back to the top