Java Reference
In-Depth Information
Figure 4.11 Step 3 of the Add Module Wizard prompts you to specify the main source folder where
Java source files can be found.
If there are already Java source files in the directory structure of the
module's content root folder, IDEA automatically searches the directory
tree for Java source code. All of the root directories of the Java package
structures it finds are automatically provided as options for source fold-
ers. This is handy when you download a full project from CVS or another
source and want IDEA to use the structure already provided.
TIP
Specifying the compiler output path
In the next step of the Add Module Wizard , you need to specify the folder you
want to compile to. Regardless of how many source folders you define in your
module, they will all build their class files into the folder you specify here. If your
project includes multiple modules, you may want to compile all of them into the
same output folder; but by default IDEA picks a subfolder of your content root
folder, as shown in figure 4.12. (More on how all this works in a bit.)
When you click the Finish button, your new module is created.
4.3.3
Managing Java module settings
The Add Module Wizard does a fine job of creating a basic module, but you'll
probably need to fine-tune your module settings. The definition of a Java module
includes a content root folder, source and output paths, libraries, a dependency
mapping between it and other modules, and documentation.
 
 
 
 
Search WWH ::




Custom Search