Hi,

I'm facing a project organisation issue that have impact on app design.
I have a web app with its javascript in the web pages folder.
This app also need another project, a javascript lib I'm coding too.

I don't want to package the js lib each time I deploy / run the webapp.
I'd like to setup the javascript project to contribute to the "web root",
but the web pages folder settings is only for one folder.

For Java source code, there are several ways, for example, having multiple
source folders.
I can't see something for multiple folders that would contribute to the
global web root of a web app.

The workaround I found is to distribute this javascript lib directly from a
Tomcat <context> define in the server.xml file. It point to my Netbeans
project.
It works but it sound like hardcoded in Tomcat plus it has many drawbacks
that would be too long to detailed here. Very quickly, it is used elsewhere
too with different version of it.

For those who know IntelliJ it is possible to define artifact tree
including several folders contributing to the web root.
I'm not working with IntelliJ anymore, I switched to Netbeans.
I was not able to have such a setup with Eclipse.

Any ideas or advises on how to configure Netbeans project to do so?
I'm new to Netbeans, so consider obvious solution I may not though about.

Regards,
Z.

Reply via email to