Java Reference
In-Depth Information
Setting the package root prefix for a source folder (either a testing source
folder or otherwise) is easy. Click the P button, and you'll see a dialog where you
can type the package prefix. IDEA takes this prefix into account when compiling,
viewing source, and other such tasks.
Understanding and configuring output paths
For each of the two types of source folders, IDEA maintains a separate output path
for use during compilation. When you build the module, test sources are com-
piled to the test output path, and standard source files are compiled to the regu-
lar output path. Both output paths are automatically added to your project's
classpath. You configure the output paths by editing the text in the paths at the
top of the Paths editing dialog. For convenience, you can also use a visual file
browser by clicking the ellipsis buttons to the right of each path.
Excluding output paths
You can add both output paths to your list of excluded paths by selecting the
Exclude output paths option. (This option is enabled by default.) The output
paths are still considered part of your classpath for running and debugging your
project; but because they're generated by IDEA , there's typically no need for them
to be monitored, searched, and so on.
4.4 Working with libraries
Using IDEA 's library features makes it easy to manage the often-burdensome task
of building applications utilizing third-party toolkits. IDEA manages not only the
classes and JAR libraries for you, but the source and reference documentation as
well. IDEA supports three different library configurations, which determine the
scope and reusability of the library within your environment:
Project libraries are defined within a project for its exclusive use.
Module libraries are defined within a module for its exclusive use.
Global libraries can be used by any project.
4.4.1
Understanding library basics
The three types of libraries supported by IDEA are configured and behave a bit
differently, but they perform the same mission and share many of the same traits.
Figure 4.14 shows the interface for configuring global libraries; it's essentially the
same for all types of libraries. In many ways, configuring a library is similar to the
 
 
 
 
 
 
 
 
 
 
Search WWH ::




Custom Search