[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Executing ant scripts from within eclipse...

Hi,

I have 4 projects in eclipse.
They can be compiled at the command prompt with individual ant scripts.
They can also be individually exceuted as 'external programs' from within
eclipse - but note Individually.

One ant script has a target - compile-all. 
Which works perfect at the command prompt.
And as per name executes the 'compile' targets of the build scripts of all
projects in a particular order.

eg...
	<target name="compile-all"
	        description="executes clean-all, compile and deploy for all
projects"/>
		<ant antfile="build.xml" dir="../../Common/Current" target="compile"
inheritRefs="false" />

		<ant antfile="build.xml" dir="../../IAS/Current" target="compile"
inheritRefs="false" />

		<ant antfile="build.xml" dir="../../WF/Current" target="compile"
inheritRefs="false" />

		<antcall target="clean-all" />
		<antcall target="deploy-libs" />
		<antcall target="compile" />
	</target>

I tried to execute this 'compile-all' target by configuring it in eclipse
as an external program.
The target fails...
	It locates the other scripts as their location is delared relatively (eg.
'../../Common/Current')
	But once inside the script tries to load properties file from my profile
directory ('C:\Documents and Settings\js10987') and cannot locate it.
	How to tell the subordinate scripts to use the current directory (in
which they are) and not my profile direc.
	
The basedir of all scripts is "."

thks
g1