Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 63680 invoked from network); 2 Nov 2006 17:05:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 17:05:45 -0000 Received: (qmail 67861 invoked by uid 500); 2 Nov 2006 17:05:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67822 invoked by uid 500); 2 Nov 2006 17:05:48 -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 67811 invoked by uid 99); 2 Nov 2006 17:05:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 09:05:48 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kolbb@us.ibm.com designates 32.97.182.145 as permitted sender) Received: from [32.97.182.145] (HELO e5.ny.us.ibm.com) (32.97.182.145) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 09:05:16 -0800 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e5.ny.us.ibm.com (8.13.8/8.12.11) with ESMTP id kA2H4dEM011724 for ; Thu, 2 Nov 2006 12:04:39 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay04.pok.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id kA2H4S1I144238 for ; Thu, 2 Nov 2006 12:04:30 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id kA2H4SrY001884 for ; Thu, 2 Nov 2006 12:04:28 -0500 Received: from d27mc101.rchland.ibm.com (d27mc101.rchland.ibm.com [9.10.229.51]) by d01av04.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id kA2H4San001855 for ; Thu, 2 Nov 2006 12:04:28 -0500 In-Reply-To: To: "Ant Users List" MIME-Version: 1.0 Subject: Re: How do I use ejbDeploy outside of RAD X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: From: Branden Kolb Date: Thu, 2 Nov 2006 11:04:26 -0600 X-MIMETrack: Serialize by Router on D27mc101/27/M/IBM(Release 7.0.1FP1|April 17, 2006) at 11/02/2006 11:04:27 AM, Serialize complete at 11/02/2006 11:04:27 AM Content-Type: multipart/alternative; boundary="=_alternative 005DCAA58625721A_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 005DCAA58625721A_= Content-Type: text/plain; charset="US-ASCII" Well, maybe I don't understand quite yet. I added the path to the antj2ee.jar to my system classpath variable. opened a new DOS window and tried my script again. I still get the error: Could not create task or type of type: ejbDeploy What am I missing? Branden Kolb > Ok, I think I am beginning to understand. I may not have provided enough > information. I call a batch file like the following. Should I just add > the correct jar to the folder listed as the ANT_HOME folder? Or do I just > add it to my windows classpath? Thanks for the help! > > echo %~dp0 > > cd %~dp0 > REM subst j: %~dp0..\3rdParty > > SET JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08\lib > set ANT_HOME=%~dp03rdParty\ant-1.6.2 > echo ANT_HOME > setlocal > call %ANT_HOME%\bin\ant -verbose -buildfile Build.xml -l .\logfile.txt %* > endlocal > > > > > Branden Kolb > > > > > Branden Kolb wrote: > > > I have recently written a build script using Ant for one of our > projects > > > that is run from within RAD. One of the targets uses the > task > > > in the following manner: > > > > > > IgnoreErrors="true" > > > /> > > > > > > I want to be able to run the Ant script from a DOS window. However, > when > > > I do, and it gets to the ejbDeploy task, I get the following: > > > > > > BUILD FAILED > > > C:Build\Build.xml:37: The following error occurred while executing > this > > > line: > > > C:Build\Build.xml:26: The following error occurred while executing > this > > > line: > > > C:\workspace\build_standalone.xml:344: Could not create task or type > of > > > type: ejbDeploy. > > > > > > Can someone tell me if it's possible to use the ejbDeploy task this > way, > > > and, if so, how would I do it? > > > > > > On a similar note, is there anyway to use the > > > > task in the same way ( or > > > ) outside of RAD? > > > > > > > I dont know what RAD is, and assume that it is a rational/eclipse > > platform. Yes? > > > > If so, these are custom tasks that come with the tool. You need to find > > where they come from, add the JAR and dependencies to Ant's classpath > > outside the IDE. As long as they dont have hard coded assumptions about > > in-IDE use, they should then work. > > > > -steve > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > > --=_alternative 005DCAA58625721A_=--