ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: How do I use ejbDeploy outside of RAD
Date Thu, 02 Nov 2006 16:55:01 GMT
I have seen this happen when the script implements with microsoft specific names which incorporate
either spaces or 'special characters'
you will have to find the 'real directory folder name' which you can discover by 
cd C:\ and 
dir /X (find the REAL folder names)
so in your script instead of using C:\Program Files use C:\PROGRA~1

HTH,
Martin--
This e-mail communication and any attachments may contain confidential and privileged information
for the use of the 
designated recipients named above. If you are not the intended recipient, you are hereby notified
that you have received
this communication in error and that any review, disclosure, dissemination, distribution or
copying of it or its 
contents
----- Original Message ----- 
From: "Branden Kolb" <kolbb@us.ibm.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Thursday, November 02, 2006 11:46 AM
Subject: Re: How do I use ejbDeploy outside of RAD


> 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 <ejbDeploy>

> task 
>> > in the following manner:
>> > 
>> >                 <ejbDeploy EJBProject="<project_name>" 
> 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 
> <eclipse.incrementalBuild> 
>> > task in the same way (<eclipse.incrementalBuild kind="clean"/> or 
>> > <eclipse.incrementalBuild project="<project_name>"/>) 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
>> 
>
Mime
View raw message