Betreff: Re: Skipping a javah task with Java 10 and higher
>
> Thanks much for your help! The javaversion condition works perfectly.
>
>
> Rei Odaira
>
> 2019年5月7日(火) 0:58 Jan Matèrne (jhm) :
>
> > With xml namespaces like if:set you could exclude individu
s.html
>
>
>
>
>
>
>
>
> ...
>
>
>
>
>
>
>
>
>
> Jan
>
> > -Ursprüngliche Nachricht-
> > Von: Jaikiran Pai [mailto:jaiki...@apache.org]
> > Gesendet: Dienstag, 7. Mai 2019 07:38
> > An: user@ant.apache.
Dienstag, 7. Mai 2019 07:38
> An: user@ant.apache.org
> Betreff: Re: Skipping a javah task with Java 10 and higher
>
> 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
>
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
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