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: filelist task
Date Wed, 19 Sep 2007 07:30:14 GMT
No, it's part of AntContrib.
See Ant's external task page ...

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: sun99 [mailto:ravinder141@gmail.com] 
>Gesendet: Mittwoch, 19. September 2007 09:27
>An: user@ant.apache.org
>Betreff: RE: filelist task
>
>
>iam getting following error message
>
>Problem: failed to create task or type for
>Cause: The name is undefined.
>Action: Check the spelling.
>Action: Check that any custom tasks/types have been declared.
>Action: Check that any <presetdef>/<macrodef> declarations 
>have taken place.
> 
>
>is task "for" is the core ant task ??
>
>
>Hi,
>
>-----Original Message-----
>From: sun99 [mailto:ravinder141@gmail.com] 
>Sent: Wednesday, September 19, 2007 6:43 AM
>To: user@ant.apache.org
>Subject: filelist task
>
>/*
>I have list of modules (may vary) to be checked out from cvs  and
>compile each module . how can i loop these activities in ant build.
>*/
>
>with antcontrib <for> task, i.e.
>
>as macrodef =
>
><macrodef name="checkout_n_compile">
><attribute name="modules" default="foo,foobar,foobaz"/>
><attribute name="cvsroot" default="...."/>
><attribute name="..." default="...."/>
>...
>
><sequential>
>
><for list="@{modules}" param="modul">
>
><cvs cvsroot="@{cvsroot}"
>  package="@{modul}"
>  dest="C:/cvstemp/@{modul}"
>  command="-Q co"
>  failonerror="true" />
>
><javac fork="true"
>   memorymaximumsize="1024M"
>  failonerror="true"
>  includes="**\*.java"
>srcdir="C:/cvstemp/@{modul}"
>   ...
>/>
>  </sequential>
></macrodef>
>
>or without a macrodef =
>
><property name="modules" value="foo,foobar,foobaz"/>
><property name="cvsroot" value="....."/>
>
>...
>
><for list="${modules}" param="modul">
><sequential>
><cvs cvsroot=${cvsroot}"
>  package="@{modul}"
>  dest="C:/cvstemp/@{modul}"
>  command="-Q co"
>  failonerror="true" />
>
><javac fork="true"
>   memorymaximumsize="1024M"
>  failonerror="true"
>  includes="**\*.java"
>srcdir="C:/cvstemp/@{modul}"
>destdir="C:/dist/@{modul}"
>...
>/>
>
></sequential>
>
>
>Regards, Gilbert
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
>-- 
>View this message in context: 
>http://www.nabble.com/filelist-task-tf4478783.html#a12772081
>Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message