Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 59892 invoked from network); 25 Jul 2005 23:12:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2005 23:12:22 -0000 Received: (qmail 46611 invoked by uid 500); 25 Jul 2005 23:12:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 46576 invoked by uid 500); 25 Jul 2005 23:12:15 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 46563 invoked by uid 99); 25 Jul 2005 23:12:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 16:12:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.49.18] (HELO web52908.mail.yahoo.com) (206.190.49.18) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 25 Jul 2005 16:12:08 -0700 Received: (qmail 23192 invoked by uid 60001); 25 Jul 2005 23:12:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=we7mXlS0F5kRhZt1779Pd0KbZr3yAxSAtESWrFmgtegSq6ieMNybH6QbBdBP4n2io/z3kRksT3ZXBnqSkRBkKQHKVrqCnyqWimOE+u4jBxvq9HiI1SliAGfUGPKdn2pSj4tCGCCJcQT3bpzwPqZ/D4HP4V9cK1RWf1Ovn5ATctU= ; Message-ID: <20050725231212.23190.qmail@web52908.mail.yahoo.com> Received: from [66.28.87.10] by web52908.mail.yahoo.com via HTTP; Mon, 25 Jul 2005 16:12:12 PDT Date: Mon, 25 Jul 2005 16:12:12 -0700 (PDT) From: Ivan Ivanov Subject: Re: creating -projecthelp default help target To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Dewey, What is the operating system you are using. If it is windows, error=2 usually means that windows is not able to find the executable, i.e. it is not in the classpath. Also bear in mind that the usual way of using on windows is like this: and it is described fully in docs[1]. Since you are invoking it in ant build script, then ${ant.home} is already set, so that you can also provide the absolute path to ant launching script: I have done this before and I would recommend you to use task (written by memories and not tested) : HTH Ivan [1]http://ant.apache.org/manual/CoreTasks/exec.html --- "Dewey, John" wrote: > Hi I'm trying to get ant help to printout a small > message and then the > ant -projecthelp listing, but I keep getting the > following error: > C:\Documents and > Settings\jdewey\Desktop\zz\build.xml:11: Execute > failed: java.io.IOException: CreateProcess: ant > -projecthelp error=2 > > Any ideas? > > The build file I am using follows: > > > > > > > ***************** usage ***************** > Blah blah blah > > -projecthelp prints the custom menu for this > build file > > > > > > > > > The version of ant I am using is: > Apache Ant version 1.6.5 compiled on June 2 2005 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org