Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IDEA 4: src folder

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have noticed that in IDEA 4 I have to have my source files in appropriate packages. I'm not sure how this is going to effect my build.xml yet. Typically, I can just keep the source files in my src folder at the root. Then they get compiled into the packages correctly into the classes folder. Is this something I can change in IDEA?
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ewww! You keep all your source files in one directory? ewwww! Bad Developer. Bad Developer.
Have never thought to do that, and from what settings I've seen on IDEA, there's nothing that would let you do that. I think you might be S.O.L.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jessica Sant:
ewww! You keep all your source files in one directory? ewwww! Bad Developer. Bad Developer.
Have never thought to do that, and from what settings I've seen on IDEA, there's nothing that would let you do that. I think you might be S.O.L.

Scolded by Jess. I feel so dirty and ashamed. Yet, oddly, excited.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Several suggestions:
1. For each module, you can have multiple "content root". You can add your root src directory to each module.
2. A much better solution is to use CVS as your source code repository. You only need to check out source code to whatever the directory (or whatever the computer) you happens to work on. After you are done, you can safely delete all local source code files.
cheers
Michael
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic