We help IT Professionals succeed at work.
Get Started

Ant script from DOS prompt

t3ch
t3ch asked
on
825 Views
Last Modified: 2012-05-12
I have a build file that genereates an EAR file. This build file is executed within RAD and it used a RAD specific ANT task called "earExport". I have couple of questions on this:
I read on some other forums that its WAS/RAD specific task and If you want to execute the script outside of RAD you have to make use of RAD's JRE. My question is, how do I run this ant script build-myapp.xml from DOS prompt using my RAD's JRE and make use of Properties file as well? (properties file is in the same folder as ant script)
Other info:

JAVA_HOME is set to
C:\Program Files\Java\jdk1.6.0_28

 ANT_HOME is set to
C:\ant1.8\ant
 
RAD's JRE location is
C:\Program Files\IBM\RAD7\runtimes\base_v7\java\jre  

Build Script Location:
C:\myProject\BuildScript\build-myProject.xml
C:\myProject\BuildScript\build-myProject.properties
Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 3 Answers and 60 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE