How to mirror FX target site? [message #1730151] |
Thu, 21 April 2016 19:06 |
John Bodkin Messages: 39 Registered: November 2011 |
Member |
|
|
How do I mirror the FX target?
I need to have a local target. I wrote a script to mirror the FX target:
<project name="Mirror" default="mirrorRepos">
<!-- The P2 repository location to mirror -->
<property name="efxclipseRepository" value="http://download.eclipse.org/efxclipse/runtime-released/2.3.0/site" />
<property name="eclipseRepository" value="http://download.eclipse.org/releases/mars" />
<!-- The location to place the mirrored repository (root location) -->
<property name="baseP2RepoHome" value="C:/git/tex/target" />
<property name="baseEclipseP2RepoHome" value="${baseP2RepoHome}" />
<!-- Defines each p2 destination with a version identifier. -->
<property name="eclipseReleaseNameVer" value="eclipse-4.5.2" />
<property name="efxclipseReleaseNameVer" value="efxclipse-2.3.0" />
<property name="repo-format" value="repo-style" />
<target name="mirrorRepos" description="Builds the entire p2 mirror set.">
<antcall target="mirrorEclipseRCP" />
<antcall target="mirrorEfxclipseRCP" />
</target>
<target name="mirrorEclipseRCP" description="Mirrors the Eclipse 4.5.2 launcher feature repository items">
<p2.mirror source="${eclipseRepository}" verbose="true" log="C:/TEMP/p2MarsMirror.log" validate="true">
<destination location="file://${baseEclipseP2RepoHome}/${eclipseReleaseNameVer}"
format="file://${baseEclipseP2RepoHome}/${repo-format}" name="Eclipse" />
<iu id="org.eclipse.equinox.executable.feature.group" />
<iu id="org.eclipse.equinox.launcher.source" />
</p2.mirror>
</target>
<target name="mirrorEfxclipseRCP" description="Mirrors the Efxclispe 2.3.0 repository items">
<p2.mirror source="${efxclipseRepository}" verbose="true" log="C:/TEMP/p2FXMirror.log" validate="true" >
<destination location="file://${baseEclipseP2RepoHome}/${efxclipseReleaseNameVer}"
format="file://${baseEclipseP2RepoHome}/${repo-format}" name="Efxclipse" />
<iu id="org.eclipse.fx.target.feature.feature.group" />
<iu id="org.eclipse.fx.runtime.e4fx.feature.feature.group" />
<iu id="org.eclipse.fx.runtime.e4fx.feature.feature.jar" />
<iu id="org.eclipse.fx.osgi" />
</p2.mirror>
</target>
</project>
I then created a .target file that points to the "directories" that the above script created. When I launch the product I get a ClassNotFoundException:
!SESSION Thu Apr 21 14:38:41 EDT 2016 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2016-04-21 14:38:41.411
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:666)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
On the Contents tab of the .product file the org.eclipse.fx.runtime.e4fx.feature is marked with an error decorator icon which indicates the feature is not found but org.eclipse.fx.runtime.e4fx.feature_2.3.0.201603031232.jar is in the features directory.
[Updated on: Wed, 06 July 2016 17:34] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01896 seconds