Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » headless p2 director application
headless p2 director application [message #593025] Mon, 09 March 2009 14:09
Eclipse UserFriend
I have a ant build script which needs to run the p2 director application
in headless environment. This is how I try to do it:

>
> <target name="p2-install-feature">
> <java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true">
> <arg value="-application" />
> <arg value="org.eclipse.equinox.p2.director.app.application" />
> <arg value="-metadataRepository" />
> <arg value="${p2.metadata.repo}" />
> <arg value="-artifactRepository" />
> <arg value="${p2.artifacts.repo}" />
> <arg value="-installIU" />
> <arg value="${p2.install.iu}" />
> <arg value="-version" />
> <arg value="${p2.feature.version}" />
> <arg value="-destination" />
> <arg value="${targetEclipse}" />
> <arg value="-profile" />
> <arg value="SDKProfile" />
> <arg value="-vmArgs" />
> <arg value="-Declipse.p2.data.area=${targetEclipse}/p2" />
> <classpath>
> <pathelement location=" ${hostEclipse}/eclipse/plugins/org.eclipse.equinox.launcher_ ${equinoxLauncherPluginVersion}.jar " />
> </classpath>
> </java>
> </target>

I previously used to run the director application using the "eclipse"
launcher, but that doesn't work to well when DISPLAY isn't set.

There are no visible problems when running the application, but
attempting to use the target application (${targetEclipse}) to run the
PDE build scripts fails complaining about missing plugins?

What could I be doing wrong?

--
/Jesper
Previous Topic:JPopupMenu not shown
Next Topic:Pluging License in HTML (instead of plain text)
Goto Forum:
  


Current Time: Sun Jul 20 05:31:59 EDT 2025

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

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

Back to the top