Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » compile plugins using commandline
compile plugins using commandline [message #327793] Thu, 01 May 2008 20:31
Derek Lac is currently offline Derek LacFriend
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
Previous Topic:Adding actions to a custom view
Next Topic:ZipException being thrown at Plug-In startup.
Goto Forum:
  


Current Time: Thu Dec 26 11:08:14 GMT 2024

Powered by FUDForum. Page generated in 0.03202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top