ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Building many to one
Date Fri, 08 Jun 2001 07:39:34 GMT
Hi, all.

How can i specify dependency on one file from many another.

For  example,  i need to make lib from *.obj files. And i want that if
one of *.obj files is changed then ant will rebuild it.

I was try to do it by this part of build.xml file:

<target name="link" depends="compile">
  <apply dir="${dest}" executable="${vc.lib.prg}"  dest="${dest}" os="Windows 2000" parallel="true">
    <arg line="${vc.lib.opt} /OUT:bnumber.lib"/>
    <fileset dir="${dest}" includes="*.obj"/>
    <mapper type="merge" to="bnumber.lib"/>

If *.obj files have older time than bnumber.lib then ant generate the command:

$> lib /OUT:bnumber.lib

withot specifying any source.

Why it happend?

View raw message