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: Writing system command as Task
Date Wed, 17 Nov 2004 13:24:17 GMT
<macrodef name="mysqldume">
    <attribute name="backuppath"/>
    <sequential>
        <exec ...><arg value="@{backuppath}"/></exec>
    </seqential>
</macrodef>

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Rajesh [mailto:rajesh@gkbcinc.com]
> Gesendet am: Mittwoch, 17. November 2004 14:20
> An: 'Ant Users List'
> Betreff: RE: Writing system command as Task
> 
> Yes Jan
> 
> But i want it from my user defind task 
> 
> <mysqldume backuppath="..." /> 
> 
> Inside this class what will i write only using java class 
> Runtime execute 
> 
> Or there is a better way 
> 
> 
> Regards,
>  
> Rajmahendra R. Hegde
> GK Bharani Software Pvt. Ltd.
>  
> There are two ways of constructing a software design. One way 
> is to make it
> so simple that there are obviously no deficiencies. And the 
> other way is to
> make it so complicated that there are no obvious deficiencies. 
>                                                     -- C.A.R. Hoare
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Wednesday, November 17, 2004 6:38 PM
> To: user@ant.apache.org
> Subject: AW: Writing system command as Task
> 
> <exec>
> 
> Jan
> 
> > -----Urspr√ľngliche Nachricht-----
> > Von: Rajesh [mailto:rajesh@gkbcinc.com] Gesendet am: Mittwoch, 17. 
> > November 2004 14:04
> > An: user@ant.apache.org
> > Betreff: Writing system command as Task
> > 
> > Hai all
> >  
> > i have a requirement of writing a windows command as a 
> task, say mysql 
> > dump command.
> >  
> > is there a good way of doing it or i will go with Runtime execute 
> > command ?
> >  
> > please guide me.
> >  
> > Regards,
> >  
> > Rajmahendra R. Hegde
> > GK Bharani Software Pvt. Ltd.
> >  
> > There are two ways of constructing a software design. One way is to 
> > make it so simple that there are obviously no deficiencies. And the 
> > other way is to make it so complicated that there are no obvious 
> > deficiencies.
> >                                                     -- C.A.R. Hoare
> >  
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> 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