9 comments

We've never seen that doc at our company, but we pretty much follow the webproject blueprint, with the exception of having a java and conf subdir underneath src.

Those layouts seem very common to projects that use Ant to build, and also work very well with Idea.

0

Ditto, and works great with idea modules, is how I have always set things
up.


On 12/8/04 12:06 PM, in article
4390608.1102525615896.JavaMail.itn@is.intellij.net, "Ian Zabel"
<ian@ezabel.com> wrote:

We've never seen that doc at our company, but we pretty much follow the
webproject blueprint, with the exception of having a java and conf subdir
underneath src.

Those layouts seem very common to projects that use Ant to build, and also
work very well with Idea.


0

OK, then the question is why they use the "resources" directory under
web for the JPSs. It looks like they should be directly under web.

Norris Shelton
Sun Certified Java Programmer




Robert S. Sfeir wrote:

>Ditto, and works great with idea modules, is how I have always set things
>up.
>
>
>On 12/8/04 12:06 PM, in article
>4390608.1102525615896.JavaMail.itn@is.intellij.net, "Ian Zabel"
><ian@ezabel.com> wrote:
>

>
>>We've never seen that doc at our company, but we pretty much follow the
>>webproject blueprint, with the exception of having a java and conf subdir
>>underneath src.
>>
>>Those layouts seem very common to projects that use Ant to build, and also
>>work very well with Idea.
>>
>>
>

>

0

Norris Shelton wrote:

Guidelines, Patterns, and Code for End-to-End Java Applications
<http://java.sun.com/blueprints/code/projectconventions.html>


I structure most projects similar to the web-project layout described
there, with a small exception: build.xml, build.properties, conf , setup
dirs are under a etc/ dir. Some unix favouritism creeping in, I guess ;)

CU,
Edwin

0

Who's "they"? I don't see a resourced directory at that link.

Norris Shelton wrote:

OK, then the question is why they use the "resources" directory under
web for the JPSs. It looks like they should be directly under web.

Norris Shelton
Sun Certified Java Programmer




Robert S. Sfeir wrote:

>>Ditto, and works great with idea modules, is how I have always set things
>>up.
>>
>>
>>On 12/8/04 12:06 PM, in article
>>4390608.1102525615896.JavaMail.itn@is.intellij.net, "Ian Zabel"
>><ian@ezabel.com> wrote:
>>
>>
>>
>>>We've never seen that doc at our company, but we pretty much follow the
>>>webproject blueprint, with the exception of having a java and conf subdir
>>>underneath src.
>>>
>>>Those layouts seem very common to projects that use Ant to build, and also
>>>work very well with Idea.
>>>
>>>
>>
>>
>>

--
"A man's ethical behavior should be based effectually on sympathy,
education, and social ties and needs; no religious basis is necessary.
Man would indeed be in a poor way if he had to be restrained by fear of
punishment and hope of reward after death."
[Albert Einstein, "Religion and Science", New York Times Magazine, 9
November 1930]

0

They is JetBrains. When you set-up a web module, it assumes that the
JPSs are located under the /resources of your module directory. It has
to be changed manually.

Norris Shelton
Sun Certified Java Programmer




Brad wrote:

Who's "they"? I don't see a resourced directory at that link.

>

Norris Shelton wrote:

>
>> OK, then the question is why they use the "resources" directory under
>> web for the JPSs. It looks like they should be directly under web.
>>
>> Norris Shelton
>> Sun Certified Java Programmer
>>
>>
>>
>>
>> Robert S. Sfeir wrote:
>>
>>> Ditto, and works great with idea modules, is how I have always set
>>> things
>>> up.
>>>
>>>
>>> On 12/8/04 12:06 PM, in article
>>> 4390608.1102525615896.JavaMail.itn@is.intellij.net, "Ian Zabel"
>>> <ian@ezabel.com> wrote:
>>>
>>>
>>>
>>>> We've never seen that doc at our company, but we pretty much follow
>>>> the
>>>> webproject blueprint, with the exception of having a java and conf
>>>> subdir
>>>> underneath src.
>>>>
>>>> Those layouts seem very common to projects that use Ant to build,
>>>> and also
>>>> work very well with Idea.
>>>>
>>>
>>>
>>>
>>>
>

0

JetBrains sets some standards ;)

0

I don't, and I am truly baffled by people who choose to have layouts that do not mirror the 'runtime' layout.

I've never figured out why anyone would go out of their way to use a stupid layout like compiling to something other than WEB-INF/classes, or not having web.xml in WEB-INF, or not having your content right under the docroot.

For me, I just have all my src in WEB-INF/src, compile to WEB-INF/classes, and resources are under docroot. This means that I can deploy without using ant, and don't rely too much on the (sometimes flakey) build magic for j2ee modules in IDEA.

No copying files around and no extra steps, so a nice snappy build cycle.

0

I'm with you on all counts. Then when the application developers around
here get bent out of shape when they see I'm deploying source files.
I'm like big deal. JSPs are source files. By the time someone gets on
the server to see the files, we have bigger security problems.

Norris Shelton
Sun Certified Java Programmer




Hani Suleiman wrote:

>I don't, and I am truly baffled by people who choose to have layouts that do not mirror the 'runtime' layout.
>
>I've never figured out why anyone would go out of their way to use a stupid layout like compiling to something other than WEB-INF/classes, or not having web.xml in WEB-INF, or not having your content right under the docroot.
>
>For me, I just have all my src in WEB-INF/src, compile to WEB-INF/classes, and resources are under docroot. This means that I can deploy without using ant, and don't rely too much on the (sometimes flakey) build magic for j2ee modules in IDEA.
>
>No copying files around and no extra steps, so a nice snappy build cycle.

>

0

Please sign in to leave a comment.