[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.equinox] Re: trying to build do p2 generation with eclipse (and failing)
|
Andrew - thanks you for you very succinct answer.
Once I've sorted this out to my own satisfaction I'll add another append
with the full detail
thanks again
--
John Kelly
"Andrew Niefer" <aniefer@xxxxxxxxxx> wrote in message
news:gk010h$1ea$1@xxxxxxxxxxxxxxxxxxxx
> In Eclipse, only the Main class (from org.eclipse.equinox.launcher) is
> found from the normal java classpath. Everything else is found through
> OSGi classloaders which don't use that classpath.
>
> You can use a minimal set of bundles for your build, but it will need a
> config.ini to get everything started. (Also more bundles than you listed
> below.)
>
> The easiest way to get this is to use a product configuration file in
> eclipse. Add org.eclipse.equinox.p2.metadata.generator (and perhaps
> exemplary.setup) then do "Add Required Plug-ins".
> Export this product and you should end up with what you need to run the
> generator. You can throw away the executable and eclipse.ini, but you
> need the configuration directory and all the plugins. You can then start
> it like you have below, though only the equinox.launcher needs to be on
> the java classpath.
>
> -Andrew
> John Kelly wrote:
>> Hi,
>>
>> I'm trying to add p2 generation to our build.xml with is already building
>> our update site (site.xml etc..)
>> Our build machine DOES NOT HAVE ECLIPSE installed, so i'm trying to cut
>> down the generation process to a bare minimum, if possible.
>> (please excuse my ignorance if what i'm trying to do is "dumb")
>>
>> Firstly, I need to know if it's possible to build in this way (see ant
>> task below below).
>>
>> I've read quite a bit of literature around the web and I've got as far as
>> I can..
>> I'm now stuck on a "Java returned: 13" problem
>>
>> All suggestions gratefully received - thanks in advance
>> John
>>
>> Details are...
>>
>> I've created an ant target as below...
>>
>> <java classpathref="eclipsep2.classpath" fork="true"
>> failonerror="true"
>> classname="org.eclipse.equinox.launcher.Main" >
>> <arg line=" -application
>> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
>> -debug \
>> -consoleLog \
>> -updateSite ${lib.dir} \
>> -site file:${lib.dir}/site.xml \
>> -metadataRepository file:${lib.dir} \
>> -metadataRepositoryName '${PRODUCTTITLE} Update Site' \
>> -artifactRepository file:${lib.dir} \
>> -artifactRepositoryName '${PRODUCTTITLE} Artifacts' \
>> -compress \
>> -reusePack200Files" />
>> </java>
>> </target>
>>
>> my classpath includes the following jars
>>
>> <include name="org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar"
>> />
>> <include
>> name="org.eclipse.equinox.p2.metadata.generator_1.0.0.v20080604.jar" />
>> <include
>> name="org.eclipse.equinox.p2.artifact.repository_1.0.1.v200808061616.jar"
>> />
>> <include
>> name="org.eclipse.equinox.p2.exemplarysetup_1.0.0.v20080427-2136.jar" />
>> <include name="org.eclipse.equinox.p2.ui.sdk_1.0.0.v20080605-1731.jar"
>> />
>> <include
>> name="org.eclipse.equinox.simpleconfigurator.manipulator_1.0.1.R34x_v20080911-1720.jar"
>> />
>>
>> the console output looks like this...
>>
>> p2:
>> [java] Install location:
>> [java] file:/c:/xxx/buildoutput/lib/
>> [java] Configuration file:
>> [java] file:/c:/xxx/buildoutput/lib/configuration/config.ini not
>> found or not read
>> [java] Configuration location:
>> [java] file:/c:/xxx/buildoutput/lib/configuration
>> [java] Configuration file:
>> [java] file:/c:/xxx/buildoutput/lib/config.ini not found or not read
>> [java] Shared configuration location:
>> [java] file:/c:/xxx/buildoutput/lib/configuration/
>> BUILD FAILED
>> C:\xxx\src\build.xml:150: Java returned: 13
>>
>> if i look in generated directory C:\xxx\buildoutput\lib\configuration i
>> find a log file with contents thus..
>>
>> !SESSION Tue Dec 30 16:04:49 GMT
>> 2008 ------------------------------------------
>> !ENTRY org.eclipse.equinox.launcher 4 0 2008-12-30 16:04:50.078
>> !MESSAGE Exception launching the Eclipse Platform:
>> !STACK
>> java.lang.RuntimeException: Could not find framework
>> at org.eclipse.equinox.launcher.Main.getBootPath(Main.java:816)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:431)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>