Web module sample project posted to the wiki
The sample IDEA project using Web modules is posted to the wiki
http://www.intellij.org/twiki/bin/view/Main/WebModules
The sample project intended for people feeling themselves newbies in IDEA Web modules (i.e. anyone except Robert Sfeir) to
demonstrate web module features.
Web modules description is updated also.
Please use it freely for any purposes except nuclear facilities control.
--
regards,
Alexey Kudravtsev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
请先登录再写评论。
Alexey Kudravtsev (JetBrains) wrote:
Hum... Since I'm the exception, does this mean I can use this for
nuclear facilities control?
R
I have a question. When I set-up an expanded web-module, it does not appear
that it automatically picks up libraries in WEB-INF/lib. It should do this
automatically. Should I file this as a bug or a feature request?
"Alexey Kudravtsev (JetBrains)" <cdr@intellij.com> wrote in message
news:btjcp1$4f2$1@is.intellij.net...
>
Web modules (i.e. anyone except Robert Sfeir) to
>
>
>
>
Norris Shelton wrote:
Careful with that. Sometimes we use multiple global libraries and you
only want ONE of them copied over. For example if you have a J2EE
global lib which only contains j2ee.jar, and another that has the rest
of the libs you DO want to copy over. I wouldn't want it to check off
both for me, it might cause issues.
If you have only ONE library dependency then yes, I can see this being
useful... but again there is a caveat, if the web module is setup as a
webroot itself, you don't want IDEA to copy anything at all, since the
libs are already in the location you expect them.
R
>>The sample IDEA project using Web modules is posted to the wiki
>>http://www.intellij.org/twiki/bin/view/Main/WebModules
>>
>>The sample project intended for people feeling themselves newbies in IDEA
>>demonstrate web module features.
>>Web modules description is updated also.
>>Please use it freely for any purposes except nuclear facilities control.
>>
>>--
>>regards,
>>Alexey Kudravtsev
>>Software Developer
>>JetBrains, Inc
>>http://www.jetbrains.com
>>"Develop with pleasure!"
>>
>>
>>
You're absolutely right. And even more: also with a single library I don't want it to be copied by default. I have some projects where I use a single library, but one which is installed as a global library in the server. I only need it to make syntax parser and compiler happy. So I definitively don't want it to be included in WEB-INF/lib.
Martin Fuhrer wrote:
heh yeah I forgot about that one... +1
Not a good idea.
R
I'm not talking about a global library. I want IntelliJ to automatically
include in the current project any library that is physically in my
WEB-INF/lib directory, just like the server will. This assumes that I am
developing within an expanded webapp.
So, if I specify the webroot and it has a /WEB-INF/lib, any .jar files there
should automatically be picked up as module libraries. Else I have to go
back and edit the settings to include them.
This is for legacy webapps that are edited in-place as expanded webapps.
OR should I give up on expanded webapps and always have another project
directory where I develop and have IntelliJ deploy there. This could be OK,
but seems weird if I'm at the end of a development cycle and I'm tweaking
HTML in a JSP file.
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:btk5pl$g50$1@is.intellij.net...
>
appear
this
>
>
>
>
IDEA
Norris Shelton wrote:
Hum, that's completely different. You want these jars automatically
added to your classpath so that you can build without having to create a
project or global library.
That's a feature request.
As long as it's a choice, not automated it might be cool. However, to
play devil's advocate, since you're already setting up the web module,
how hard is it to just click on library tab and adding all the jar files
under the WEB-INF/lib in your module libs, and you're done. You only
have to do this once, so there is no real time gained by having this
done auto. then those libs only work for that specific web module and
don't affect the rest of the project, and don't exist in global libs,
and get carried WITH the module, so others can share the same libs
without having to do anything.
R
I've always thought it would be nice to be able to add a directory to the libraries and have it automatically pick up any jars in it. It's rather annoying when someone else checks in a new jar or two to the project I'm working on and I have to go through and figure out which one I don't have in my intellij classpath.
The WEB-INF/lib request is just a specific case of this. Please make it a generic directory include if you guys decide to implement it.
Jon Erdman wrote:
+1. Pointing to a directory and loading any libs in that directory
would be priceless.
R