Maven plugin for controlling java4cpp execution.
Gets full informations directly on the java4cpp-core page project.
The plugin as one goal generate that process a list of jars and generate associated C++ proxies files in the specified directory.
By default that goal is mapped to the phase process-classes.
The list of parameters for the goal generate:
outputDirectoryLocation of the generated C++ proxies files.cleanClean output directory.jarFilesA comma separated list of jar files to analyse.useHashSets to true to generate only modified proxies.nbThreadNumber of concurrent proxies generator.mappingsFileA comma separated list of mappings files.templatesFileA comma separated list of templates files.exportFileSets to generate a file containing all the symbols generated during processing.exportFilterSets a regex to filter the lists of symbols in the export file.importsFileA comma separated list of files containing symbols to use instead of generating new ones.importsFilterSets a regex to filter the lists of symbols in the imports files.
java4cpp looks for mappings and templates files inside jars resources and if failed in the file system.
This is a sample pom.xml file
<plugin>
<groupId>com.github.loicoudot.java4cpp</groupId>
<artifactId>java4cpp-maven-plugin</artifactId>
<version>1.0.3</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<jarFiles>ajartoanalyze.jar</jarFiles>
<outputDirectory>cpp/java4cpp</outputDirectory>
<clean>true</clean>
<mappingsFile>base-mappings.xml</mappingsFile>
<templatesFile>base-templates.xml;string-templates.xml</templatesFile>
</configuration>
<dependencies>
<dependency>
<groupId>com.github.loicoudot.java4cpp</groupId>
<artifactId>java4cpp-templates</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
</plugin>Like in the exemple above, you can add dependencies inside the java4cpp-maven-plugin for resolving the templates or mappings definition.