public class BuildTask extends DefaultTask
Builder.Task.Namer| Modifier and Type | Field and Description |
|---|---|
(package private) String[] |
buildCommand
Execute a build command instead of JavaCPP itself, and return.
|
(package private) String[] |
buildPath
Add the path to the "platform.buildpath" property.
|
(package private) String[] |
buildResource
Add the path to the "platform.buildresource" property.
|
(package private) String[] |
classOrPackageNames
Process only these classes or packages (suffixed with .* or .**).
|
(package private) String[] |
classPath
Load user classes from classPath.
|
(package private) boolean |
clean
Delete all files from
outputDirectory before generating anything in it. |
(package private) boolean |
compile
Compile and delete the generated .cpp files.
|
(package private) String[] |
compilerOptions
Pass compilerOptions directly to compiler.
|
(package private) File |
configDirectory
Also create config files for GraalVM native-image in directory.
|
(package private) boolean |
copyLibs
Copy to output directory dependent libraries (link and preload).
|
(package private) boolean |
copyResources
Copy to output directory resources listed in properties.
|
(package private) boolean |
deleteJniFiles
Delete generated C++ JNI files after compilation
|
(package private) String |
encoding
Specify the character encoding used for input and output.
|
(package private) Map<String,String> |
environmentVariables
Add environment variables to the compiler subprocess.
|
(package private) String[] |
executablePath
Add the path to the "platform.executablepath" property.
|
(package private) boolean |
generate
Generate .cpp files from Java interfaces if found, parsing from header files if not.
|
(package private) boolean |
header
Generate header file with declarations of callbacks functions.
|
(package private) String[] |
includePath
Add the path to the "platform.includepath" property.
|
(package private) String[] |
includeResource
Add the path to the "platform.includeresource" property.
|
(package private) String |
jarPrefix
Also create a JAR file named
<jarPrefix>-<platform>.jar. |
(package private) String[] |
linkPath
Add the path to the "platform.linkpath" property.
|
(package private) String[] |
linkResource
Add the path to the "platform.linkresource" property.
|
(package private) File |
outputDirectory
Output all generated files to outputDirectory.
|
(package private) String |
outputName
Output everything in a file named after given outputName.
|
(package private) String[] |
preloadPath
Add the path to the "platform.preloadpath" property.
|
(package private) String[] |
preloadResource
Add the path to the "platform.preloadresource" property.
|
(package private) String |
properties
Load all properties from resource.
|
(package private) File |
propertyFile
Load all properties from file.
|
(package private) Properties |
propertyKeysAndValues
Set property keys to values.
|
(package private) String[] |
resourcePath
Add the path to the "platform.resourcepath" property.
|
(package private) boolean |
skip
Skip the execution.
|
(package private) String[] |
targetDirectory
Add to Maven project source directory of Java files generated by buildCommand.
|
(package private) File |
workingDirectory
Set the working directory of the build subprocess.
|
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
BuildTask() |
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesServiceString[] classPath
String[] includePath
String[] includeResource
String[] buildPath
String[] buildResource
String[] linkPath
String[] linkResource
String[] preloadPath
String[] preloadResource
String[] resourcePath
String[] executablePath
String encoding
File outputDirectory
String outputName
boolean clean
outputDirectory before generating anything in it.boolean generate
boolean compile
boolean deleteJniFiles
boolean header
boolean copyLibs
boolean copyResources
File configDirectory
String jarPrefix
<jarPrefix>-<platform>.jar.String properties
File propertyFile
Properties propertyKeysAndValues
String[] classOrPackageNames
String[] buildCommand
String[] targetDirectory
File workingDirectory
Map<String,String> environmentVariables
String[] compilerOptions
boolean skip
@Optional @Classpath @InputFiles public String[] getClassPath()
public void setClassPath(String[] s)
public void setIncludePath(String[] s)
public void setIncludeResource(String[] s)
public void setBuildPath(String[] s)
public void setBuildResource(String[] s)
public void setLinkPath(String[] s)
public void setLinkResource(String[] s)
public void setPreloadPath(String[] s)
public void setPreloadResource(String[] s)
public void setResourcePath(String[] s)
public void setExecutablePath(String[] s)
public void setEncoding(String s)
@Optional @OutputDirectory public File getOutputDirectory()
public void setOutputDirectory(File f)
public void setOutputName(String s)
@Input public boolean getClean()
public void setClean(boolean b)
@Input public boolean getGenerate()
public void setGenerate(boolean b)
@Input public boolean getCompile()
public void setCompile(boolean b)
@Input public boolean getDeleteJniFiles()
public void setDeleteJniFiles(boolean b)
@Input public boolean getHeader()
public void setHeader(boolean b)
@Input public boolean getCopyLibs()
public void setCopyLibs(boolean b)
@Input public boolean getCopyResources()
public void setCopyResources(boolean b)
@Optional @OutputDirectory public File getConfigDirectory()
public void setConfigDirectory(File f)
public void setJarPrefix(String s)
public void setProperties(String s)
@Optional @InputFile public File getPropertyFile()
public void setPropertyFile(File f)
@Optional @Input public Properties getPropertyKeysAndValues()
public void setPropertyKeysAndValues(Properties p)
public void setClassOrPackageNames(String[] s)
public void setBuildCommand(String[] s)
public void setTargetDirectory(String[] s)
@Optional @InputDirectory public File getWorkingDirectory()
public void setWorkingDirectory(File f)
public void setCompilerOptions(String[] s)
@Input public boolean getSkip()
public void setSkip(boolean b)
public void build()
throws IOException,
ClassNotFoundException,
NoClassDefFoundError,
InterruptedException,
ParserException