Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 24446 invoked from network); 23 Oct 2003 19:56:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Oct 2003 19:56:03 -0000 Received: (qmail 67801 invoked by uid 500); 23 Oct 2003 19:55:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67771 invoked by uid 500); 23 Oct 2003 19:55:43 -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 67757 invoked from network); 23 Oct 2003 19:55:43 -0000 Received: from unknown (HELO smtp.milliman.com) (208.209.152.200) by daedalus.apache.org with SMTP; 23 Oct 2003 19:55:43 -0000 To: "Ant Users List" Subject: RE: Need help write task: MIME-Version: 1.0 Message-ID: From: Dan.Crea@milliman.com Date: Thu, 23 Oct 2003 14:47:23 -0500 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 >... but you already knew that. Are you really, really sure that CVS is in >your path when run Ant=3F Yes. If I do, Vector vector =3D exe.getProcEnvironment(); and dump this, I = see my path and cvs is there. What I am starting to wonder is if it's there but not. What I mean is, when I started the dos shell, cvs was not part of my path. I ran Ant and got the error. I then did, set PATH=3D%PATH%;"c:\development\cv= s\bin" and made sure I could run cvs. When I continued to run Ant however, it still did not work. What I am wondering is if I needed to set this before running Ant for the first time. I will give it a try as well as your suggestion. Dan Dominique Devienne 10/23/2003 02:44 PM Please respond to "Ant Users List" To: "'Ant Users List'" cc: Subject: RE: Need help write task: > From: Dan.Crea@milliman.com [mailto:Dan.Crea@milliman.com] > > I am trying to write an ant task but can't seem to get Execute to run my > command line. Specifically, it can't find the executable and returns the > following error: > > Execption thrown: CreateProcess: cvs -n status > C:/repository/b=5Fcode=5Fcleanup/source/clientware/Random/build.xml error=3D= 2 That's usually the error you get for the executable not being in the Path... > If I hard code the path in the > setExecutable("c:\development\cvs\bin\cvs.exe") then everything works. > CVS is part of my PATH so I can't seem to figure out why it's not found. I > also tried setting the environment but this did not help either. ... but you already knew that. Are you really, really sure that CVS is in your path when run Ant=3F As an experienced Ant guy who just a few days ago was stumped because I wrote net.bf instead of net.sf, I can assure you everyone eventually will get stuck on a silly error like mine above. Check your Path, carefully. Try running just above your custom task. Run with -debug, and study the output slowly. Etc... --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ****************************************************************************= ********** This communication is intended solely for the addressee and is confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Unless indicated to the contrary: it does not constitute professional advice or opinions upon which reliance may be made by the addressee or any other party, and it should be considered to be a work in progress. ****************************************************************************= ********** --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org