public class JavaBuild
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PACKAGE_REGEX |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
build(boolean sizeWarning)
Run the build inside a temporary build folder.
|
java.lang.String |
build(java.io.File srcFolder,
java.io.File binFolder,
boolean sizeWarning)
Preprocess and compile all the code for this sketch.
|
java.io.File |
getBinFolder() |
java.lang.String |
getClassPath()
Class path determined during build.
|
boolean |
getFoundMain()
Whether the preprocessor found a main() method.
|
java.util.ArrayList<Library> |
getImportedLibraries()
Get the list of imported libraries.
|
java.lang.String |
getJavaLibraryPath()
Return the java.library.path for this sketch (for all the native DLLs etc).
|
java.lang.String |
getSketchClassName() |
java.lang.String |
getSketchPath()
Absolute path to the sketch folder.
|
java.io.File |
getSrcFolder()
Path to the folder that will contain processed .java source files.
|
SketchException |
placeException(java.lang.String message,
java.lang.String dotJavaFilename,
int dotJavaLine)
Map an error from a set of processed .java files back to its location
in the actual sketch.
|
java.lang.String |
preprocess(java.io.File srcFolder,
boolean sizeWarning)
Build all the code for this sketch.
|
java.lang.String |
preprocess(java.io.File srcFolder,
java.lang.String packageName,
PdePreprocessor preprocessor,
boolean sizeWarning) |
public static final java.lang.String PACKAGE_REGEX
public JavaBuild(Sketch sketch)
public java.lang.String build(boolean sizeWarning)
throws SketchException
RunnerExceptionSketchExceptionpublic java.lang.String build(java.io.File srcFolder,
java.io.File binFolder,
boolean sizeWarning)
throws SketchException
SketchExceptionpublic java.lang.String getSketchClassName()
public java.lang.String preprocess(java.io.File srcFolder,
boolean sizeWarning)
throws SketchException
buildPath - Location to copy all the .java filesSketchExceptionpublic java.lang.String preprocess(java.io.File srcFolder,
java.lang.String packageName,
PdePreprocessor preprocessor,
boolean sizeWarning)
throws SketchException
srcFolder - location where the .java source files will be placedpackageName - null, or the package name that should be used as defaultpreprocessor - the preprocessor object ready to do the workSketchExceptionpublic java.io.File getSrcFolder()
public java.io.File getBinFolder()
public java.lang.String getSketchPath()
public java.lang.String getClassPath()
public java.lang.String getJavaLibraryPath()
public boolean getFoundMain()
public java.util.ArrayList<Library> getImportedLibraries()
public SketchException placeException(java.lang.String message, java.lang.String dotJavaFilename, int dotJavaLine)
message - The error message.filename - The .java file where the exception was found.line - Line number of the .java file for the exception (0-indexed!)