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
Please sign in to leave a comment.
Create source directory e.g. 'resources', move your sub-directories in
that place.
Hynek Schlawack wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
"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/'?
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...
You shouldn't mark those directories as sources. Add them as Web
Resource Directories in Web Module Settings instead.
Hynek Schlawack wrote:
>>> 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.
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
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:
>>>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.
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
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...
Perfect, thanks to you too!