New Project in IntelliJ 7.0

IntelliJ seems to pick the wrong Content Root now when creating a new project. (I am using milestone 2...although I have tested 7.0 and it does the same thing).

if I have a project directory like this:

c:\java_projects\myproject
--conf
--images
--lib
--src
-


java
-


various packages of java code



When I create a New Project it picks c:\java_projects\myproject\src as the content root. This is totally different behavior than previous versions. Using src as the project root renders all the other folders in the project (like lib, conf, images, etc) unviewable in the Project view. For all my new projects I have had to go into project settings and manually change the Content Root to c:\java_projects\myproject.

(I just recently noticed this as I have been creating a lot of new projects because of some CVS->Subversion conversion)

Any reason for this?

5 comments

Hello Michael,

When you create new project you can select content root. Do you create your
projects from scratch or from existent sources?

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

IntelliJ seems to pick the wrong Content Root now when creating a new
project. (I am using milestone 2...although I have tested 7.0 and it
does the same thing).

if I have a project directory like this:

c:\java_projects\myproject
--conf
--images
--lib
--src
----java
------various packages of java code
When I create a New Project it picks c:\java_projects\myproject\src as
the content root. This is totally different behavior than previous
versions. Using src as the project root renders all the other folders
in the project (like lib, conf, images, etc) unviewable in the Project
view. For all my new projects I have had to go into project settings
and manually change the Content Root to c:\java_projects\myproject.

(I just recently noticed this as I have been creating a lot of new
projects because of some CVS->Subversion conversion)

Any reason for this?



0

I am creating the projects from existing sources. I have noticed I can change the module name, but haven't seen where I can change the content root during project creation.

0

Michael,

project file location by default coincide with project content root.

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I am creating the projects from existing sources. I have noticed I can
change the module name, but haven't seen where I can change the
content root during project creation.



0

That's fine...I have no problem with it using content root as the storage place for project files (it has been that way since as long as I have been using Intellij). The problem I have is it picking the wrong content root...i want it to pick "c:\java_projects\myproject" as content root, not "c:\java_projects\myproject\src". If it uses the src directory as content root I only have access to the source code directories and not the other directories in the project though Project view (like lib, conf, images, etc)

Michael,

project file location by default coincide with
project content root.

Thank you


>

0

If I use New Project->Create Project from scratch I can get it to layout the project they way I want (the way it has been done since I have been using IntelliJ since 4.x). However, if I create a New Project from existing sources it chooses my src directory as project root...this is wrong IMHO.

0

Please sign in to leave a comment.