public class GenerateCppProxiesTask
extends org.apache.tools.ant.Task
<GenerateCppProxies inputHeaders="input/include" inputSources="input/source"
outputHeaders="output/include" outputSources="output/source" exportSymbols="false"
minimizeDependencies="true" classpath="rt.jar" accessibility="PUBLIC">
<classpath>
<pathelement location="classes"/>
</classpath>
<dependency name="java.lang.String"/>
<inputHeaders dir="input">
<include name="include1">
<include name="include2">
</inputHeaders>
<inputSources dir="input">
<include name="source1">
<include name="source2">
</inputSources>
</GenerateCppProxies>
| Constructor and Description |
|---|
GenerateCppProxiesTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredClasspath(org.apache.tools.ant.types.Path classpath)
Adds to the Java classpath.
|
void |
addConfiguredDependency(Dependency dependency)
Adds a class that must have a C++ proxy generated.
|
void |
addConfiguredInputHeaders(org.apache.tools.ant.types.DirSet headers)
Adds input header directories.
|
void |
addConfiguredInputSources(org.apache.tools.ant.types.DirSet sources)
Adds input source directories.
|
void |
execute() |
void |
setAccessibility(String accessibility)
Indicates the method accessibility to expose.
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Sets the Java classpath.
|
void |
setExportSymbols(boolean exportSymbols)
Indicates if the proxy symbols should be exported (for generating DLLs/SOs).
|
void |
setInputHeaders(String inputHeaders)
Sets the directory containing the input header files.
|
void |
setInputSources(String inputSources)
Sets the directory containing the input source files.
|
void |
setMinimizeDependencies(boolean minimizeDependencies)
Indicates whether classes should be exported even if they are not referenced by the input
files.
|
void |
setOutputHeaders(File outputHeaders)
Sets the directory containing the output header files.
|
void |
setOutputSources(File outputSources)
Sets the directory containing the output source files.
|
String |
toString() |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setInputHeaders(String inputHeaders)
inputHeaders - the directory containing the input header filespublic void setInputSources(String inputSources)
inputSources - the directory containing the input source filespublic void setOutputHeaders(File outputHeaders)
outputHeaders - the directory containing the output header filespublic void setOutputSources(File outputSources)
outputSources - the directory containing the output source filespublic void setAccessibility(String accessibility) throws IllegalArgumentException
accessibility - PUBLIC, PROTECTED, PACKAGE or PRIVATEIllegalArgumentException - if an unknown accessibility type is specifiedpublic void setExportSymbols(boolean exportSymbols)
exportSymbols - true if the proxy symbols should be exportedpublic void setMinimizeDependencies(boolean minimizeDependencies)
value - true if the minimum set of classes should be generated (superclass,
interfaces and any classes used by the input files). false if all class dependencies
(arguments, return values, and fields) should be exported. The latter is used to generate
proxies for a Java library, where the set of input files are not known ahead of time. The
default is true.public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath - the Java classpathpublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic void addConfiguredDependency(Dependency dependency)
dependency - a class that must have a C++ proxy generatedpublic void addConfiguredClasspath(org.apache.tools.ant.types.Path classpath)
classpath - the Java classpathpublic void addConfiguredInputHeaders(org.apache.tools.ant.types.DirSet headers)
headers - the input header directoriespublic void addConfiguredInputSources(org.apache.tools.ant.types.DirSet sources)
sources - the input source directoriesCopyright © 2012. All Rights Reserved.