Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 73526 invoked from network); 24 Apr 2003 20:25:17 -0000 Received: from web13704.mail.yahoo.com (216.136.175.137) by daedalus.apache.org with SMTP; 24 Apr 2003 20:25:17 -0000 Message-ID: <20030424202523.85051.qmail@web13704.mail.yahoo.com> Received: from [65.208.210.98] by web13704.mail.yahoo.com via HTTP; Thu, 24 Apr 2003 13:25:23 PDT Date: Thu, 24 Apr 2003 13:25:23 -0700 (PDT) From: Sam Talebbeik Subject: RE: Help, difficulty with path names in NT2000. To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Dominique, Thanks for the reply. You are right. This is also what I expected. I was finally able to find a solution. In the property file I define my path similar to : exec_path= D:\\Program Files\\executables\\user programs\\execs Please note that I HAD TO escape the backslashes. In the build.xml I execute the command as: Thanks. --- Dominique Devienne wrote: > The 'dir' is the directory the command is run in, not the directory is > command is to be found... --DD > > > -----Original Message----- > > From: Sam Talebbeik [mailto:sam777t@yahoo.com] > > Sent: Thursday, April 24, 2003 2:07 PM > > To: Ant Users List > > Subject: RE: Help, difficulty with path names in NT2000. > > > > I am attempting to define the path in the property file and then use the > > path in the build.xml file. I have to try what all of you have suggested > > and see if I have any luck. > > > > Meanwhile I also tried another way. I put the path of the executable in > > the > > exec > > built in task. This is what it looks: > > > > > failonerror="yes"> > > > > > > > > I get the error=2 which means it could not find the command to execute it. > > I know for sure that my executable is there. > > > > If I put the executable in the same directory as build.xml then it works. > > Doesn't the "dir" clause of the built in task "exec" point to the path > > where the executable should be found ? Maybe I need to add the location of > > the executable to the user's path on NT2000. Does anyone know how to do > > that ? > > > > Thanks. > > > > --- Dominique Devienne wrote: > > > I trust everything you say about XML ;-) > > > > > > But Sam's apparently declaring the path in a properties file... --DD > > > > > > > -----Original Message----- > > > > From: J.Pietschmann [mailto:j3322ptm@yahoo.de] > > > > Sent: Thursday, April 24, 2003 1:41 PM > > > > To: Ant Users List > > > > Subject: Re: Help, difficulty with path names in NT2000. > > > > > > > > Sam Talebbeik wrote: > > > > > exec.dir="D:\\Program Files\\Personal Programs\\User5\\234\\Execs" > > > > > > > > XML is not C. You must not use backslashs for escaping characters. > > > > Simply use > > > > exec.dir="D:\Program Files\Personal Programs\User5\234\Execs" > > > > > > > > You must not escape spaces with a backslash, nor use URL escaping > > > > (space -> %20), nor use inner quotes. > > > > > > > > J.Pietschmann > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > > For additional commands, e-mail: user-help@ant.apache.org > > > > > > > > > __________________________________________________ > > Do you Yahoo!? > > The New Yahoo! Search - Faster. Easier. Bingo > > http://search.yahoo.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 > __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com