public class Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder()
Default constructor that simply initializes everything.
|
Builder(Logger logger)
Constructor that simply initializes everything.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File[] |
build()
Starts the build process and returns an array of
File produced. |
Builder |
buildCommand(java.lang.String[] buildCommand)
Sets the
buildCommand field to the argument. |
Builder |
classesOrPackages(java.lang.String... classesOrPackages)
Requests the
classScanner to add a class or all classes from a package. |
Builder |
classPaths(java.lang.String... classPaths)
Appends argument to the paths of the
classScanner. |
Builder |
classPaths(java.lang.String classPaths)
Splits argument with
File.pathSeparator and appends result to paths of the classScanner. |
Builder |
clean(boolean clean)
Sets the
clean field to the argument. |
Builder |
compile(boolean compile)
Sets the
compile field to the argument. |
Builder |
compilerOptions(java.lang.String... options)
Appends arguments to the
compilerOptions field. |
Builder |
copyLibs(boolean copyLibs)
Sets the
copyLibs field to the argument. |
Builder |
copyResources(boolean copyResources)
Sets the
copyResources field to the argument. |
Builder |
deleteJniFiles(boolean deleteJniFiles)
Sets the
deleteJniFiles field to the argument. |
Builder |
encoding(java.lang.String encoding)
Sets the
encoding field to the argument. |
Builder |
environmentVariables(java.util.Map<java.lang.String,java.lang.String> environmentVariables)
Sets the
environmentVariables field to the argument. |
Builder |
generate(boolean generate)
Sets the
generate field to the argument. |
Builder |
header(boolean header)
Sets the
header field to the argument. |
Builder |
jarPrefix(java.lang.String jarPrefix)
Sets the
jarPrefix field to the argument. |
static void |
main(java.lang.String[] args)
The terminal shell interface to the Builder.
|
Builder |
outputDirectory(java.io.File outputDirectory)
Sets the
outputDirectory field to the argument. |
Builder |
outputDirectory(java.lang.String outputDirectory)
Sets the
outputDirectory field to the argument. |
Builder |
outputName(java.lang.String outputName)
Sets the
outputName field to the argument. |
static void |
printHelp()
Simply prints out to the display the command line usage.
|
Builder |
properties(java.util.Properties properties)
Adds all the properties of the argument to the
properties field. |
Builder |
properties(java.lang.String platform)
Sets the
properties field to the ones loaded from resources for the specified platform. |
Builder |
property(java.lang.String keyValue)
Sets a property of the
properties field, in either "key=value" or "key:value" format. |
Builder |
property(java.lang.String key,
java.lang.String value)
Sets a key/value pair property of the
properties field. |
Builder |
propertyFile(java.io.File propertyFile)
Sets the
properties field to the ones loaded from the specified file. |
Builder |
propertyFile(java.lang.String filename)
Sets the
properties field to the ones loaded from the specified file. |
Builder |
workingDirectory(java.io.File workingDirectory)
Sets the
workingDirectory field to the argument. |
Builder |
workingDirectory(java.lang.String workingDirectory)
Sets the
workingDirectory field to the argument. |
public Builder()
public Builder(Logger logger)
logger - where to send messagespublic Builder classPaths(java.lang.String classPaths)
File.pathSeparator and appends result to paths of the classScanner.public Builder classPaths(java.lang.String... classPaths)
classScanner.public Builder encoding(java.lang.String encoding)
encoding field to the argument.public Builder outputDirectory(java.lang.String outputDirectory)
outputDirectory field to the argument.public Builder outputDirectory(java.io.File outputDirectory)
outputDirectory field to the argument.public Builder deleteJniFiles(boolean deleteJniFiles)
deleteJniFiles field to the argument.public Builder copyResources(boolean copyResources)
copyResources field to the argument.public Builder outputName(java.lang.String outputName)
outputName field to the argument.public Builder jarPrefix(java.lang.String jarPrefix)
jarPrefix field to the argument.public Builder properties(java.lang.String platform)
properties field to the ones loaded from resources for the specified platform.public Builder properties(java.util.Properties properties)
properties field.public Builder propertyFile(java.lang.String filename) throws java.io.IOException
properties field to the ones loaded from the specified file.java.io.IOExceptionpublic Builder propertyFile(java.io.File propertyFile) throws java.io.IOException
properties field to the ones loaded from the specified file.java.io.IOExceptionpublic Builder property(java.lang.String keyValue)
properties field, in either "key=value" or "key:value" format.public Builder property(java.lang.String key, java.lang.String value)
properties field.public Builder classesOrPackages(java.lang.String... classesOrPackages) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.NoClassDefFoundError
classScanner to add a class or all classes from a package.
A null argument indicates the unnamed package.java.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.NoClassDefFoundErrorpublic Builder buildCommand(java.lang.String[] buildCommand)
buildCommand field to the argument.public Builder workingDirectory(java.lang.String workingDirectory)
workingDirectory field to the argument.public Builder workingDirectory(java.io.File workingDirectory)
workingDirectory field to the argument.public Builder environmentVariables(java.util.Map<java.lang.String,java.lang.String> environmentVariables)
environmentVariables field to the argument.public Builder compilerOptions(java.lang.String... options)
compilerOptions field.public java.io.File[] build()
throws java.io.IOException,
java.lang.InterruptedException,
ParserException
File produced.java.io.IOExceptionjava.lang.InterruptedExceptionParserExceptionpublic static void printHelp()
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - an array of arguments as described by printHelp()java.lang.Exception