Skipping a javah task with Java 10 and higher

2019-05-06 Thread 大平怜
Hello, My build.xml has a javah task. Since it no longer works with Java 10 and higher, I added nativeHeaderDir to a javac task, and it is working fine. However, I still want to keep the javah task, so that the same build.xml works for older Java. How can I make ant skip the javah task only when

Re: Skipping a javah task with Java 10 and higher

2019-05-06 Thread Jaikiran Pai
Recent versions of Ant (starting 1.10.2) have a "javaversion" condition[1] which you can use to setup a "property" which can then be used with "if"/"unless" attribute on a target. Here's an example:     ...               [1] https://ant.apache.org/manual/Tasks/conditions.html#javavers

AW: Skipping a javah task with Java 10 and higher

2019-05-06 Thread jhm
With xml namespaces like if:set you could exclude individual tasks. http://ant.apache.org/manual/ifunless.html ... Jan > -Ursprüngliche Nachricht- > Von: Jaikiran Pai [mailto:jaiki...@apache.org] > Gesendet: Dienstag,