Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94765 invoked from network); 15 Jan 2004 06:53:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Jan 2004 06:53:54 -0000 Received: (qmail 67444 invoked by uid 500); 15 Jan 2004 06:53:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67409 invoked by uid 500); 15 Jan 2004 06:53:24 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 67393 invoked from network); 15 Jan 2004 06:53:23 -0000 Received: from unknown (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by daedalus.apache.org with SMTP; 15 Jan 2004 06:53:23 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id i0F6rV9k023148 for ; Thu, 15 Jan 2004 07:53:31 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id ; Thu, 15 Jan 2004 07:53:43 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF7518@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: apply task Date: Thu, 15 Jan 2004 07:53:30 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3DB34.491681E0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3DB34.491681E0 Content-Type: text/plain; charset="iso-8859-1" First: why using for a single file? You can easier use or in that case . Second: adds the actual file (absolute path) at the end of the command. So your command would be rename abc.txt test.txt c:\abc.txt (you can see it if you starts with -verbose) which is the wrong syntax. Jan > -----Original Message----- > From: Vijay Prasanna [mailto:vijay@leadingc.com] > Sent: Wednesday, January 14, 2004 11:27 PM > To: user@ant.apache.org > Subject: apply task > > > > I'm trying to execute a simple DOS command thru ANT 'apply' task, > say, C:\rename abc.txt test.txt, my ant script is > > type = "file"> > > > > but the ant gives an error, :no filesets specified. > then changed the script to > > > > > > ANT gives BUILD successful, but no change in abc.txt file > Also set the executable attribute directly to 'rename', and > removed the same from arg line, but in vain. > > can someone help me out. > > Vijay > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > ------_=_NextPart_001_01C3DB34.491681E0--