Compiles swg files using the swig compiler.
Mojo Attributes:
compile
generate-sources
Name | Type | Description |
---|---|---|
architecture | String |
The Architecture for picking up swig, Some choices are: "x86", "i386", "amd64", "ppc", "sparc", ... Defaults to a derived value from ${os.arch} |
source | String |
The swig file to process, normally in source directory set by swigDirectory. |
sourceDirectory | String |
The directory to look for swig files and swig include files. Also added to -I flag when swig is run. |
staleMillis | int |
The granularity in milliseconds of the last modification date for testing
whether a source needs recompilation Default value is 0 . |
Name | Type | Description |
---|---|---|
artifactHandler | ArtifactHandler |
Artifact handler |
artifactId | String |
ArtifactId for the swig NAR Default value is swig . |
artifactResolver | ArtifactResolver |
Artifact resolver, needed to download source jars for inclusion in classpath. |
cleanOutputDirectory | boolean |
Remove all *.java files from the output directory. The output directory is formed by ${javaTargetDirectory}/${packageName}. This setting is ignored (false) if no packageName is supplied. All *.java are deleted from the output directory just before the swig command is run. This allows the user to configure to have the java files of the swig command in the src directory tree. |
cpp | boolean |
Enable C++ processing, same as -c++ option for swig. Default value is false . |
defines | List |
Define symbol for conditional compilation, same as -D option for swig. |
exec | String |
Swig Executable (overrides built-in or user configured reference to NAR) |
fakeVersion | String |
Sets a fake version number, same as -fakeversion for swig. |
force | boolean |
Force the running of SWIG Default value is false . |
groupId | String |
GroupId for the swig NAR Default value is org.swig . |
includePaths | List |
Add include paths. By default the current directory is scanned. |
javaTargetDirectory | String |
The target directory into which to generate the java output, becomes -outdir option for swig. |
noWarn | String |
List of warning numbers to be suppressed, same as -w option for swig. |
os | String |
The Operating System for picking up swig. Some choices are: "Windows", "Linux", "MacOSX", "SunOS", ... Defaults to a derived value from ${os.name} |
outFile | String |
The output filename. Defaults to ${source}.cpp or .c depending on cpp option. |
packageName | String |
The package name for the generated java files (fully qualified ex: org.freehep.jni). |
skip | boolean |
Skip the running of SWIG Default value is false . |
targetDirectory | File |
The target directory into which to generate the output. |
version | String |
Version for the swig NAR Default value is 1.3.31-1 . |
warnAll | boolean |
Enable all warnings, same as -Wall Default value is false . |
warnError | boolean |
Treat warnings as errors, same as -Werror Default value is false . |
java.lang.String
Yes
${os.arch}
org.apache.maven.artifact.handler.ArtifactHandler
No
java.lang.String
No
${swig.artifactId}
swig
org.apache.maven.artifact.resolver.ArtifactResolver
No
boolean
No
false
boolean
No
${swig.cpp}
false
java.util.List
No
java.lang.String
No
${swig.exec}
java.lang.String
No
boolean
No
${swig.force}
false
java.lang.String
No
${swig.groupId}
org.swig
java.util.List
No
java.lang.String
No
${project.build.directory}/swig/java
java.lang.String
No
${swig.noWarn}
java.lang.String
No
java.lang.String
No
java.lang.String
No
${swig.packageName}
boolean
No
${swig.skip}
false
java.lang.String
Yes
java.lang.String
Yes
${basedir}/src/main/swig
int
Yes
${idlj.staleMillis}
0
java.io.File
No
${project.build.directory}/swig
java.lang.String
No
${swig.version}
1.3.31-1
boolean
No
${swig.warnAll}
false
boolean
No
${swig.warnError}
false