Why is directory named conf not visible

I have a project structure where I have all my configuration files saved in a directory named conf.


- scr
- lib
- conf
- ...

The problem is that my conf dir is not visible in the Project tab, all my other dirs are there but the conf dir is removed from the tab by IDEA. If I change the name to 'config' it is shown again...

Anyone know how to show my conf dir the Project tab?

/Perry

11 comments
Comment actions Permalink

It probably due:
1. conf is mentioned in Settings|General|Ignore files and folders
or
2. Specifically mentioned as excluded in Settings|Paths

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

I have a project structure where I have all my configuration files
saved in a directory named conf.


- scr
- lib
- conf
- ...
The problem is that my conf dir is not visible in the Project tab, all
my other dirs are there but the conf dir is removed from the tab by
IDEA. If I change the name to 'config' it is shown again...

Anyone know how to show my conf dir the Project tab?

/Perry



0
Comment actions Permalink

Maxim Shafirov (JetBrains) wrote:

It probably due:
1. conf is mentioned in Settings|General|Ignore files and folders
or
2. Specifically mentioned as excluded in Settings|Paths


More probably it is configured as a module library to include it into the classpath, which
makes it appear under the "Libraries"-node in the project view instead.

I still haven't decided whether I like that or not. I sometimes do that with directories
that contain resources that are to be loaded with Class.getResource() and having to open
the Libraries node to access the directory is kinda awkward.

Sascha

0
Comment actions Permalink

No that is not the case, the Settings|General|Ignore files and folders string is set to 'CVS;SCCS;RCS;rcs;.DS_Store;.svn;'
and if you mean that the folder is marked red in paths page that is also wrong.

I have attached two screendumps to show you my settings.



Attachment(s):
settings.png
general.png
0
Comment actions Permalink

In article <29004316.1118757041135.JavaMail.itn@is.intellij.net>,
Per-Ingemar Andersson <no_mail@jetbrains.com> wrote:

No that is not the case, the Settings|General|Ignore files and folders string
is set to 'CVS;SCCS;RCS;rcs;.DS_Store;.svn;'
and if you mean that the folder is marked red in paths page that is also
wrong.

I have attached two screendumps to show you my settings.


Did you add it to your classpath by any chance by adding it as a
jar/directory entry in your module's paths settings?

0
Comment actions Permalink

Yes, that is correct. I need to have those things in the
classpath so that the application can find the configuration.

Why should that hide the directory from the project tab?

/Perry

0
Comment actions Permalink

It's just shown under Libraries node instead
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Yes, that is correct. I need to have those things in the classpath so
that the application can find the configuration.

Why should that hide the directory from the project tab?

/Perry



0
Comment actions Permalink

Ok, now I know where to find the files...but I
must say that it is a strange behaviour to hide
the dir in the project tab.
IDEA should keep the dir showing in the tab,
and also show it in the Libraries node.
The jar files in the lib dir are not hidden from
the project tab when added to the classpath...

/Perry

0
Comment actions Permalink

In article <12357890.1118757849321.JavaMail.itn@is.intellij.net>,
Per-Ingemar Andersson <no_mail@jetbrains.com> wrote:

Yes, that is correct. I need to have those things in the
classpath so that the application can find the configuration.

Why should that hide the directory from the project tab?

/Perry


It's a setting somewhere to hide those. You can still see them in the
package view tab of the project pane.

R

0
Comment actions Permalink

In article <c8a8a1bfe31f8c73f239b1c8525@news.jetbrains.com>,
Maxim Shafirov (JetBrains) <max@jetbrains.com> wrote:

It's just shown under Libraries node instead


That confused me too a while back. At some point maybe there should be
a setting to allow some of these directories to still show where we
expect them.

R

0
Comment actions Permalink

You can mark the conf directory as sources and all the configuration files
are copied over to your build out put directory and your app can find those
using classpath loader ...

Yes, that is correct. I need to have those things in the classpath so
that the application can find the configuration.

Why should that hide the directory from the project tab?

/Perry



0
Comment actions Permalink

That confused me too a while back. At some point
maybe there should be
a setting to allow some of these directories to still
show where we
expect them.


+1!!

0

Please sign in to leave a comment.