org.datamanager.tools
Class Compile

java.lang.Object
  |
  +--org.datamanager.tools.Compile

public class Compile
extends Object

A class to make compiling easier in the absence of the depends option. The user can delete every classfile in all subfolders of a given directory. In addition, individual files or entire directories can specified to be compiled. Errors in compilation will be displayed on the console screen.
NOTE: This class is dependent upon Runtime.exec() being implemented on your system. In addition, javac must be contained within your classpath.

Version:
.90
Author:
Gordon Murphy

Field Summary
static String[] CLASSPATHS
           
 
Constructor Summary
Compile(String[] classpath)
           
 
Method Summary
 void compile(File[] files)
           
protected  void exec(String command)
           
static void main(String[] parameters)
           
protected  void removeAllClassFiles(File directory)
           
 void removeDirectories(File[] directories)
           
 void setClasspath(String[] paths)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSPATHS

public static final String[] CLASSPATHS
Constructor Detail

Compile

public Compile(String[] classpath)
Method Detail

main

public static void main(String[] parameters)
                 throws IOException
IOException

setClasspath

public void setClasspath(String[] paths)

removeDirectories

public void removeDirectories(File[] directories)
                       throws IOException
IOException

compile

public void compile(File[] files)
             throws IOException
IOException

removeAllClassFiles

protected void removeAllClassFiles(File directory)

exec

protected void exec(String command)
             throws IOException
IOException


See the Helium Website