Development Utilities

Clean

Java's compiler has a useful make feature built in. However, it doesn't always quite catch all the dependencies. I often delete all the class files and then recompile. This tool creates a script to delete all the .class files in a directory.

Syntax

Description

java org.acm.seguin.tools.build.CleanClassFiles [name [dir]]
Creates a script file in name that by deleting class files in any directory that has a java file under dir. The system defaults the script file to standard out, and the default directory is the current directory.

Backup

Traverses a directory tree and creates a copy of all .java files it finds. in a parallel directory structure. This program creates the directory structure if necessary.

Syntax

Description

java org.acm.seguin.util.BackupTraversal sourceDir destDir
Copies all .java files found in sourceDir to destDir.

Code Store

This tool traveses a directory structure and creates a script file that will build a jar file containing all the .java files it finds.

Syntax

Description

java org.acm.seguin.tools.build.CodeStoreBuilder  [jarfile [script [dir]]]
Creates a jar file named jarfile via a script called script containing .java files in dir.

Jar Generator

Once the class files are build, this tool traverses a directory tree and creates a script file that will create a jar of all classes found in the directory tree. The default script file location is standard out, the default directory is the current directory, and the default jar file is named sample.jar.

Syntax

java org.acm.seguin.tools.build.JarDirectoryBuilder [jarfile [script [dir]]]


Last Modified: 30 October 2003