compile plugins using commandline [message #327793] |
Thu, 01 May 2008 20:31 |
Derek Lac Messages: 19 Registered: July 2009 |
Junior Member |
|
|
Hello,
I hope someone can help me out. I've spend 2 hours working on this
problem.
The problem is this: I have many plugins in sub-directories and
build.xml. For example, I have:
testbuild.xml
plugin-1/build.xml
plugin-2/build.xml
Also plugin-1 uses ant task to call plugin-2 to compile
If I go into plugin-1 and compile using
cd plugin-1; 'ant' <-- fails with plugin error
Now
cd plugin-1; 'ant -DECLIPSE_HOME=c:\myeclipse' <--- ok.
Now I added testbuild.xml with a simple ant call with
-DECLIPSE_HOME=c:\myeclipse. (This is my goal is to invoke at an upper
directory)
<ant antfile="build.xml" dir="SYSB_BasicGUI" inheritAll="false"
inheritRefs="true">
It FAILS. After spending 2 hours into it, the failure has nothing to do
with ECLIPSE_HOME. It has something do with the working directory. When
compiling at plugin-2, the working directory is in plugin-1.
I've tried different combination of inheritAll and inheritRefs to no avail.
Here's the ant task that failed:
<javac debug="true" debuglevel="${debuglevel}" destdir="bin"
source="${source}" target="${target}">
<src path="src"/>
<classpath refid="SYSB_T2_ConfigurationEngine.classpath"/>
</javac>
-Derek Lac
|
|
|
Powered by
FUDForum. Page generated in 0.03202 seconds