ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: how to make it depend on one file
Date Thu, 07 Aug 2003 14:39:39 GMT
Sounds to me that what you want is to use <javah> inside Ant-Contrib's
<outofdate>. Can also be done with Ant's own <uptodate> and <javah> and
a
couple targets, but it's less clean. --DD

> -----Original Message-----
> From: Astrid Wagner [mailto:Astrid.Wagner@motorola.com]
> Sent: Thursday, August 07, 2003 7:43 AM
> To: user@ant.apache.org
> Subject: how to make it depend on one file
> 
> Hi,
> I have a section in my build.xml file that creates a c header file
> from a java class and it works:
>   <target name="javah" depends="prepare,compile-java"
>    description="Create header file from java class via javah">
> 
>     <!-- Create header file from java class for native C code as
> necessary -->
>     <exec dir="${src.home}/com/mot/sps/ipr/common"
> executable="${jdk.home}/bin/javah">
>        <arg line ="-force -classpath ${build.home}/WEB-INF/classes -jni
> com.mot.sps.ipr.common.IprShellInterface"/>
>     </exec>
>   </target>
> 
> The problem is: how do I enforce to create this header file (call javah)
> only when a certain file has changed? So instead of having compile-java
> in the depens list what do I do?
> Thanks.
> 
> Astrid

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message