ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Hide a task name
Date Fri, 20 Feb 2004 17:03:57 GMT
<tstamp> and an unused property.
<script> and via Java API.

Jan

> -----Original Message-----
> From: Mario Manfre [mailto:MarioM@PGAS.com]
> Sent: Friday, February 20, 2004 5:58 PM
> To: Ant Users List
> Subject: RE: Hide a task name
> 
> 
> ouch.. is there a way to show the current time or time elapsed?
> 
> -----Original Message-----
> From: Peter Reilly [mailto:peter.reilly@corvil.com]
> Sent: Friday, 02 20, 2004 10:29
> To: Ant Users List
> Subject: Re: Hide a task name
> 
> 
> There is a little bug with the script:
> It uses <tstamp> to set the "clock.time" property twice.
> The second setting will be ignored as properties
> are immutable.
> 
> Peter
> 
> Jan.Materne@rzf.fin-nrw.de wrote:
> 
> >DonĀ“t think you can (without writing a new logger...)
> >
> >Jan
> >
> >  
> >
> >>-----Original Message-----
> >>From: Mario Manfre [mailto:MarioM@PGAS.com]
> >>Sent: Friday, February 20, 2004 5:07 PM
> >>To: Ant Users List
> >>Subject: Hide a task name
> >>
> >>
> >>I've created a target which I call using an antcall but I 
> >>would like to not have the target displayed in the output. Is 
> >>there a way to not have the antcalled target displayed.
> >>
> >>Here is the example
> >>
> >><target name="fetchingSource">
> >>       <antcall target="SourceGet"> 
> >>        <param name="title" value="Folder /Data"/>
> >>        <param name="fetch.to" value="${fetch.dir}/Data"/>
> >>        <param name="vss.from" 
> value="${ss.root}/application1/Data"/>
> >>       </antcall>
> >></target>
> >>
> >>   <target name="SourceGet">
> >>     <echo></echo>  
> >>     <echo 
> >>message="-----------------------------------------------------
> >>----------"/>
> >>     <echo message="                Fetching ${title}    "/>
> >>     <echo 
> >>message="-----------------------------------------------------
> >>----------"/>
> >>     <tstamp prefix="clock"><format property="time" 
> >>pattern="MM/dd/yyyy hh:mm:ss aa"/></tstamp>
> >>     <echo message="Current Time : ${clock.time}"/>
> >>     <vssget localPath="${fetch.to}"
> >>        recursive="true"
> >>        ssdir="${vss.ssdir}"
> >>        vsspath="${vss.from}"
> >>        writable="false"
> >>        label="${ss.label}"/>
> >>     <echo></echo>       
> >>     <tstamp prefix="clock"><format property="time" 
> >>pattern="MM/dd/yyyy hh:mm:ss aa"/></tstamp>
> >>     <echo message="Current Time : ${clock.time}"/>   
> >>   </target>
> >>
> >>output is
> >>
> >>fetch:
> >>
> >>SourceGet:
> >>
> >>     [echo] 
> >>---------------------------------------------------------------
> >>     [echo]                 Fetching Folder /Data
> >>     [echo] 
> >>---------------------------------------------------------------
> >>
> >>
> >>I'd like it to just be
> >>
> >>fetch:
> >>     [echo] 
> >>---------------------------------------------------------------
> >>     [echo]                 Fetching Folder /Data
> >>     [echo] 
> >>--------------------------------------------------------------- 
> >> 
> >>
> >>------------------------------------------------------------
> ---------
> >>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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message