processing.app.debug
Class Compiler

java.lang.Object
  extended by processing.app.debug.Compiler

public class Compiler
extends java.lang.Object


Constructor Summary
Compiler()
           
 
Method Summary
 boolean compile(Sketch sketch, java.lang.String buildPath, java.lang.String primaryClassName)
          Compile with ECJ.
static java.lang.String contentsToClassPath(java.io.File folder)
          Given a folder, return a list of absolute paths to all jar or zip files inside that folder, separated by pathSeparatorChar.
static java.lang.String[] packageListFromClassPath(java.lang.String path)
          A classpath, separated by the path separator, will contain a series of .jar/.zip files or directories containing .class files, or containing subdirectories that have .class files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compiler

public Compiler()
Method Detail

compile

public boolean compile(Sketch sketch,
                       java.lang.String buildPath,
                       java.lang.String primaryClassName)
                throws RunnerException
Compile with ECJ.

Parameters:
sketch - Sketch object to be compiled.
buildPath - Where the temporary files live and will be built from.
Returns:
true if successful.
Throws:
RunnerException - Only if there's a problem. Only then.

contentsToClassPath

public static java.lang.String contentsToClassPath(java.io.File folder)
Given a folder, return a list of absolute paths to all jar or zip files inside that folder, separated by pathSeparatorChar. This will prepend a colon (or whatever the path separator is) so that it can be directly appended to another path string. As of 0136, this will no longer add the root folder as well. This function doesn't bother checking to see if there are any .class files in the folder or within a subfolder.


packageListFromClassPath

public static java.lang.String[] packageListFromClassPath(java.lang.String path)
A classpath, separated by the path separator, will contain a series of .jar/.zip files or directories containing .class files, or containing subdirectories that have .class files.

Parameters:
path - the input classpath
Returns:
array of possible package names