ant-jni-tasks - Ant Tasks for Compiling Native C/C++ Code for JNI Projects
About
Simple Ant tasks to reliably build C/C++ code for Java Native Interface (JNI) projects as well as any native library dependencies that maybe required. The goal of the project is to provide a simplified, working alternative to the legacy ant-contrib cpptasks allowing C/C++ code to be configured and built directly from Ant as part of the Java build process. No external shell, bat or ps1 shell scripts to bootstrap the process and no repetitive exec commands all over your build.xml file.
Supported Toolchains
- GNU C Compiler
- GNU C++ Compiler
- LLVM CLANG Compiler
- LLVM CLANG++ Compiler
Supported Build Systems
- CMake
- GNU Autotools
- GNU Make
Need support for additional features, toolchains or build systems? Please file a feature request bug.
Usage
Simply add the following to your ant project:
<typedef resource="org/jnitasks/antlib.xml" classpath="path/to/JNITasks.jar" />Available Tasks
The following are projects that currently use JNITasks that you may use as an example.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
