Avoiding the "flattening of paths"?

Hi,

I'm trying to develop using IDEA an webapplication with the awesome
framework RIFE.

However, in RIFE it's best practice/necessary to have several
sub-directories under `classes/' (rep and templates for example)
containing templates and configurations. It wasn't hard to add these
directories and mark them as sources so they get them copied while
compiling.

However, their paths get ripped of: There is no `rep/participants.xml'
inside of `classes/', instead there's just `participants.xml'. RIFE
won't find these files, so I have to move files along after compiling.

Is there a way to tell IDEA to preserve these paths and not copy
everything flatly into `classes/'?

TIA,
-hs

0
Avatar
Permanently deleted user

Create source directory e.g. 'resources', move your sub-directories in
that place.

Hynek Schlawack wrote:

Hi,

I'm trying to develop using IDEA an webapplication with the awesome
framework RIFE.

However, in RIFE it's best practice/necessary to have several
sub-directories under `classes/' (rep and templates for example)
containing templates and configurations. It wasn't hard to add these
directories and mark them as sources so they get them copied while
compiling.

However, their paths get ripped of: There is no `rep/participants.xml'
inside of `classes/', instead there's just `participants.xml'. RIFE
won't find these files, so I have to move files along after compiling.

Is there a way to tell IDEA to preserve these paths and not copy
everything flatly into `classes/'?

TIA,
-hs



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

"Maxim Mossienko (JetBrains)" <Maxim.Mossienko@jetbrains.com> writes:

>> Is there a way to tell IDEA to preserve these paths and not copy
>> everything flatly into `classes/'?

Create source directory e.g. 'resources', move your sub-directories in
that place.


Thanks a lot for the fast and helpful answer!

Just a minor issue: The dirs are now twice inside of `exploded/': Once
in the top directory and once inside `WEB-INF/classes/'. Is there a way
to have it only in the later? I could live with it, but just in case
there's a way...

0
Avatar
Permanently deleted user

You shouldn't mark those directories as sources. Add them as Web
Resource Directories in Web Module Settings instead.

Hynek Schlawack wrote:

"Maxim Mossienko (JetBrains)" <Maxim.Mossienko@jetbrains.com> writes:

>>> Is there a way to tell IDEA to preserve these paths and not copy
>>> everything flatly into `classes/'?
>> Create source directory e.g. 'resources', move your sub-directories in
>> that place.


Thanks a lot for the fast and helpful answer!

Just a minor issue: The dirs are now twice inside of `exploded/': Once
in the top directory and once inside `WEB-INF/classes/'. Is there a way
to have it only in the later? I could live with it, but just in case
there's a way...


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Avatar
Permanently deleted user

By default 'resources' directory in web module is web resource directory
(html,css, js content) so content is copied right under exploded root.
So you can switch off this assignment in module properties or give
different name for the directory.
Sorry for the confusion.


Hynek Schlawack wrote:

"Maxim Mossienko (JetBrains)" <Maxim.Mossienko@jetbrains.com> writes:

>>>Is there a way to tell IDEA to preserve these paths and not copy
>>>everything flatly into `classes/'?
>>
>>Create source directory e.g. 'resources', move your sub-directories in
>>that place.


Thanks a lot for the fast and helpful answer!

Just a minor issue: The dirs are now twice inside of `exploded/': Once
in the top directory and once inside `WEB-INF/classes/'. Is there a way
to have it only in the later? I could live with it, but just in case
there's a way...



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

Martin Fuhrer <mf@fuhrer.com> writes:

>> Just a minor issue: The dirs are now twice inside of `exploded/':
>> Once in the top directory and once inside `WEB-INF/classes/'. Is
>> there a way to have it only in the later? I could live with it, but
>> just in case there's a way...

You shouldn't mark those directories as sources. Add them as Web
Resource Directories in Web Module Settings instead.


Perfect, thanks to you too!

0

请先登录再写评论。