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

0
5 comments
Avatar
Permanently deleted user

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...

I have a project structure like the following:

>

<project root>
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

>


0
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

Thomas G?lden wrote:

<project root> 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 <project root> somewhere else on the same drive.


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

0
Avatar
Permanently deleted user

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...

Thomas G?lden wrote:

<project root> 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 <project root> somewhere else on

the same drive.
>

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

>


0
Avatar
Permanently deleted user

Dmitry Peshehonov wrote:

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?


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

0

Please sign in to leave a comment.