Ant task:
<target name="regenerateJNIHeader" description="Re-generates the JNI header">
<echo message="Re-generating JNI header" />
<attrib readonly="false">
<fileset dir="." includes="**/MyAPI*.h"/>
</attrib>
<javah class="com.MyAPI" force="yes" verbose="yes"/>
</target>
Problem is, I made a change (added a method) to MyAPI, but, despite clearing the header file and compiled class files, when I run this task, my new method is not added. If I run javah com.MyAPI
, it works properly.
Possible to see the commandline for ant tasks as it executes them?