How to set up project paths in 818 ?
I have a project structure like the following:
src
rsrc
properties
server
log4j.properties
client
The src contains the java source files, the rsrc directory some resource files incl. log4j properties.
I am unable to configure the main module page so that the log4j.properties file is found, when running the code.
With Ariadna I configured IntelliJ so that the working directory was the the ]]>. src was the project path and some folders in the rsrc directory went into a library.
This does not seem to work with Aurora.
I configured src as a content folder. I try to add rsrc and even some subdirectories either as source folders or as content folder - nothing worked.
Please, could somebody give some details about how to setup the Main Module in general and in my particular situation ?
Thanks in advance
Regards
Thomas G?lden
Munich, Germany
Please sign in to leave a comment.
Why don't you set content root to ? This seems to be natural. -- Valentin Kipiatkov JetBrains, Inc http://www.intellij.com "Develop with pleasure!" "Thomas G?lden" ]]> wrote in message
news:12122257.1054294316381.JavaMail.javamailuser@localhost...
>
>
files incl. log4j properties.
>
file is found, when running the code.
>
the . src was the project path and some folders in the rsrc directory went into a library. >]]>
>
subdirectories either as source folders or as content folder - nothing
worked.
>
Module in general and in my particular situation ?
>
>
>
>
Hi Valentin,
Thanks for the quick response.
What you describe is exactly what I did first, because it was the most natural way for me. However, this did not work. I tried it again now, to no avail.
I have now configured
as a content folder. Within this content folder I added src as a source folder. I tried several options to include the rsrc folder as additional source folders - no result. Not that my output path is outside the ]]> somewhere else on the same drive.
Any further hints ?
Regards
Thomas G?lden
Munich, Germany
Thomas G?lden wrote:
I'm in the same situation. I had to add my "resources" directory to the
project library list using the Add Classes... button.
How about renaming the Library tab to Classpath?
Also, how about being able to add "resources" directories as a special
kind of source directory that is automatically included in the classpath?
Ciao,
Gordon
--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919
There is another way: add "resource" directory as source directory than go
to Compiler configuration and set resource pattern. All filis from source
directories that matches this pattern will be copied to compiler output
directory. In this case you need 'log4j.properties' pattern or
'.+\.properties' to copy all .properties files.
Have you any reason to not doing it?
--
Best regards,
Dmitry Peshehonov
JetBrains, Inc, http://www.intellij.com
"Gordon Tyler" <gordon.tyler@quest.com> wrote in message
news:bb7ui7$ndb$1@is.intellij.net...
folders - no result.
the same drive.
>
>
>
>
>
>
Dmitry Peshehonov wrote:
I don't use the IDEA compiler. I use an Ant build script to do all my
compiling from within IDEA.
Ciao,
Gordon
--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919