Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » How to mirror FX target site?(How do you mirror the FX target site)
How to mirror FX target site? [message #1730151] Thu, 21 April 2016 19:06 Go to next message
John Bodkin is currently offline John BodkinFriend
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

Re: How to mirror FX target site? [message #1730156 is a reply to message #1730151] Thu, 21 April 2016 20:12 Go to previous messageGo to next message
John Bodkin is currently offline John BodkinFriend
Messages: 39
Registered: November 2011
Member
You can't create a .target definition using "directories" you have to use "software site".

[Updated on: Wed, 06 July 2016 17:33]

Report message to a moderator

Re: How to mirror FX target site? [message #1730187 is a reply to message #1730156] Fri, 22 April 2016 07:27 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You know we provide the target as a zip?

http://download.eclipse.org/efxclipse/runtime-nightly/site_assembly.zip

Tom

On 21.04.16 22:12, John Bodkin wrote:
> You can't create a .target definition using "directories" you have to
> use "software site".
Previous Topic:2.3.0 version to maven central?
Next Topic:Tool items not receiving selection changes
Goto Forum:
  


Current Time: Thu Apr 18 02:13:11 GMT 2024

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

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

Back to the top