org.cruxframework.crux.tools.compile
Class JCompiler

java.lang.Object
  extended by org.cruxframework.crux.tools.compile.JCompiler

public class JCompiler
extends Object

Calls the java compiler to compile all java files found under the specified source folder.

Author:
Thiago da Rosa de Bustamante

Constructor Summary
JCompiler()
           
 
Method Summary
 boolean compile(File sourceDir)
           
 String getClasspath()
           
 String getOutputDirectory()
           
 String getSource()
           
 String getSourcepath()
           
 String getTarget()
           
 void setClasspath(String classpath)
           
 void setOutputDirectory(File outputDirectory)
           
 void setSource(String source)
           
 void setSourcepath(File sourcepath)
           
 void setTarget(String target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCompiler

public JCompiler()
          throws CompilerException
Throws:
CompilerException
Method Detail

compile

public boolean compile(File sourceDir)
                throws IOException
Parameters:
sourceDir -
Returns:
Throws:
IOException

getClasspath

public String getClasspath()
Returns:

getOutputDirectory

public String getOutputDirectory()
Returns:

getSource

public String getSource()
Returns:

getSourcepath

public String getSourcepath()
Returns:

getTarget

public String getTarget()
Returns:

setClasspath

public void setClasspath(String classpath)
Parameters:
classpath -

setOutputDirectory

public void setOutputDirectory(File outputDirectory)
                        throws IOException
Parameters:
outputDirectory -
Throws:
IOException

setSource

public void setSource(String source)
Parameters:
source -

setSourcepath

public void setSourcepath(File sourcepath)
                   throws IOException
Parameters:
sourcepath -
Throws:
IOException

setTarget

public void setTarget(String target)
Parameters:
target -


Copyright © 2014. All rights reserved.