Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42179 invoked from network); 31 Jul 2007 13:56:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2007 13:56:01 -0000 Received: (qmail 69099 invoked by uid 500); 31 Jul 2007 13:55:45 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 69072 invoked by uid 500); 31 Jul 2007 13:55:45 -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 69056 invoked by uid 99); 31 Jul 2007 13:55:45 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2007 06:55:45 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Alec.Fernandez@sas.com designates 149.173.6.148 as permitted sender) Received: from [149.173.6.148] (HELO mercav05.na.sas.com) (149.173.6.148) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2007 13:55:38 +0000 Received: from mercmbx08.na.sas.com ([10.16.9.158]) by mercav05.na.sas.com with InterScan Message Security Suite; Tue, 31 Jul 2007 09:55:17 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: new ant user - trying to run java cmd Date: Tue, 31 Jul 2007 09:55:17 -0400 Message-ID: <32251DD60B0C1B4386EE15B0FA279A620694F350@mercmbx08.na.sas.com> In-Reply-To: <11920538.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: new ant user - trying to run java cmd Thread-Index: AcfTUXo899pCSrUIQryeEG/2jPrARQAKDlVw From: "Alec Fernandez" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org You list a depends=3D"jar" which tells ant to find a target named "jar" and run it before it runs the target named "run" I suspect that you do not have a target named "jar" defined. The java task accepts nested arg elements. Here's a working example: -Alec -----Original Message----- From: triona28 [mailto:vinnie.timoney@gmail.com]=20 Sent: Tuesday, July 31, 2007 5:01 AM To: user@ant.apache.org Subject: Re: new ant user - trying to run java cmd Hi, I've tried the following: after: I write: = =20 but this returns:=20 BUILD FAILED C:\myProjects\runway_core\guitools\sims\build.xml:153: Problem: failed to create task or type target Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any / declarations have taken place. where's the correct place to insert it in the build file? how do I manage the parameters "-cfg/simulators.cfg"? Thanks, Tri triona28 wrote: >=20 > Hi, > I'm trying to run a class from built jar using ant but my script=20 > doesn't pick up even my echos around it - what am I doing wrong? > this is the bit that's already in my script & works: > JAR file" > > outputproperty=3D"AppVersion" > resolveExecutable=3D"true"> > > > >=20 > value=3D"${build}/HostSimulators_${AppVersion}.jar" /> > =09 >=20 > > > >=20 > > > > > > > > > >=20 > > mainfest > > > > >=20 > now when I run my Main.java in Eclipse - I use the Run -> Run with=20 > program parameters {-cfg /simulators/simulators.cfg} >=20 > how can I do this Run in Ant? I've tried: > > > > but with no luck!! >=20 > please help, >=20 > tri >=20 -- View this message in context: http://www.nabble.com/new-ant-user---trying-to-run-java-cmd-tf4191525.ht ml#a11920538 Sent from the Ant - Users mailing list archive at Nabble.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