ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: urgent : CC task compiles every time even .C is not changed
Date Wed, 03 Aug 2005 06:28:24 GMT
could you use a <fileset> with nested <depend> selector?

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Jeffrey E Care [mailto:carej@us.ibm.com] 
>Gesendet: Mittwoch, 3. August 2005 02:16
>An: Ant Users List
>Betreff: Re: urgent : CC task compiles every time even .C is 
>not changed
>
>This behavior has nothing to do with the Ant runtime and 
>everything to do with the implementation of the cc task.
>
>I would suggest that you take this up with the antcontrib folks.
>
>--
>Jeffrey E. Care (carej@us.ibm.com)
>WebSphere v7 Release Engineer
>WebSphere Build Tooling Lead (Project Mantis)
>
>
>hiren patel <hiren979@yahoo.com> wrote on 08/02/2005 07:27:12 PM:
>
>> Hi,
>>  I am using CC task and it compiles prog.c to prog but it does it 
>> all the time regardless of 
>> prog.c has changed or not.
>> 
>> ANT should not recompile when source .c has not changed. but 
>it does..
>> 
>> do you know what is wrong?
>> 
>> here is the code of build.xml:
>> 
>> please provide suggestions ASAP
>> hiren patel
>> 
>> 
>> project name="CC Example" default="BuildProg">
>>     <taskdef resource="cpptasks.tasks"/>
>>     <typedef resource="cpptasks.types"/> 
>>     <!-- Compilation settings -->
>>     <!-- Set compiler property depending from os -->
>>     <condition property="compiler" value="gcc">
>>         <os family="unix"/>
>>     </condition>
>>     <condition property="compiler" value="msvc">
>>         <os family="windows"/>
>>     </condition>
>> 
>>     <target name="clean">
>>         <delete file="prog" />
>>     </target>
>> 
>>     <target name="init">
>>     </target>
>> 
>>     <target name="BuildProg" depends="init"
>>             description="example of source compilation">
>>          <cc     outfile="prog" 
>>                  subsystem="other"
>>                  name="${compiler}" 
>>                  exceptions="true" 
>>                  objdir="." 
>>                  debug="true" 
>>                  outtype="executable">
>> 
>>              <fileset file="prog.c" /> 
>> 
>>              <defineset define="SOME_DEFINE_1" />
>>              <defineset define="SOME_DEFINE_2" />
>> 
>>              <includepath path="."/>
>> 
>>              <!-- for example link with libstdc++ -->
>>           </cc>
>>     </target>
>>   </project>
>> 
>> 
>> 
>> 
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>> http://mail.yahoo.com 
>

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


Mime
View raw message