Java Reference
In-Depth Information
implementation files, and javatech/rmi18/client , for the client. All the
class files are compiled into a separate subdirectory tree. In this way, making a
clean rebuild of everything is easy since all the compilation results can be dis-
carded simply by deleting the entire compiled class file tree. It is common for Ant
users to use a build directory that is parallel to the src directory for the purpose
of containing all such generated results. Sometimes things other than just class
files need to go into build ,soclass files are generally sent to a classes
subdirectory below build .Ofcourse, to maintain Java's required package-
named subdirectory arrangement, the entire javatech/rmi18/server ,
javatech/rmi18/server/impl , and javatech/rmi18/client direc-
tory structure is replicated below build/classes .
To summarize, the entire directory structure appears as follows, assuming we
begin at a directory named javatech-18 .Atrailing / indicates a directory,
and file names are italicized.
javatech-18/
(build and run scripts, policy files, etc.)
src/
javatech/
rmi18/
client/
RMIExampleClient.java
server/
RMIExampleInterface.java
impl/
RMIExampleImpl.java
RMIExampleServer.java
build/
classes/
javatech/
rmi18/
client/
server/
impl/
For simplicity we do not show the various build and run scripts, policy files, etc.
in the diagram above. All those files appear at the Web Course. Initially, the build
tree will be empty. In fact, in won't even exist at all. It is created when running
Ant or when running the build scripts, and compiled .class files will appear in
the appropriate places below the build/classes tree.
The first task is to compile all the Java source files. In order to use the directory
structure above, we need to direct the compiler output to a different directory than
 
Search WWH ::




Custom Search