[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Equinox nightly in testing framework


When running under Eclipse with the org.eclipse.ant.core.antRunner application, there are two possibilities here.

The first is to use p2.  There is a p2 repository "http://download.eclipse.org/eclipse/updates/3.6-N-builds" which contains the results of the nightly builds.
You can get the osgi bundle from there using a p2 mirror task. (http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_repositorytasks.htm).
This would look something like :
        <p2.mirror source="http://download.eclipse.org/eclipse/updates/3.6-N-builds" destination="file:${basedir}/osgi">
                <iu id="org.eclipse.osgi" />
        </p2.mirror>

- This will create a p2 repository at ${basedir}/osgi, and the osgi jar will be at ${basedir}/osgi/plugins/org.eclipse.osgi_<version>.jar.  The version here will still contain a timestamp like N20091215-2000
- In general, this also gets all the dependencies of the listed installable units, org.eclipse.osgi doesn't have any.
- 3.6-N-builds is actually a composite of several builds, this will just get the highest version of osgi.


The other option, is to get the source from CVS, the build.xml script can be generated using pde.build.  This can get complicated in general, but for osgi it isn't too bad (because there are no dependencies):
                <eclipse.buildScript
                                elements="plugin@xxxxxxxxxxxxxxxx"
                                buildDirectory="${basedir}"
                                pluginPath="${basedir}/../org.eclipse.osgi"
                                forceContextQualifier="N123"
                        />
- forceContextQualifier will be the built version qualifier
- pluginPath will be the location of the osgi bundle on disk
- buildDirectory just needs to be set, it isn't really used here, but in general other scripts will be generated there
- the osgi build.xml will require a property "CDC-1.1/Foundation-1.1" specifying the bootclasspath for foundation.


Both of these options need to run under Eclipse because of the dependencies on p2 and/or pde.build.  If you are running the script using an external tools configuration, be sure to select "Run in the same JRE as the workspace" on the JRE tab.


-Andrew

From: Walter Treur <wtreur@xxxxxxxxx>
To: equinox-dev@xxxxxxxxxxx
Date: 12/15/2009 05:44 AM
Subject: [equinox-dev] Equinox nightly in testing framework
Sent by: equinox-dev-bounces@xxxxxxxxxxx





Hello all,

I'm working on a OSGi testing framework, testing the OSGi
specification conformance for the most popular OSGi core framework
implementations. (equinox, knopferfish, felix)
Public testresults are already available for the most recent popular
core frameworks at
http://opensource.luminis.net/svn/OSGITESTRESULTS/trunk/index.html.

At this moment, I have an own nightly build script to test the latest
(nightly) framework builds from the svn/cvs trunk. It uses ant to
download, build and test the latest trunk version for knopflerfish and
felix and post these results online. However, I'm unable to require or
build the latest nightly equinox version.

The url's to the latest snapshot on the equinox download page contains
a version number and time and it isn't therefore possible to point to
in my ant script since it varies every time. A form post about this
issue wasn't helpful either:
http://www.eclipse.org/forums/index.php?t=msg&goto=501643&S=1c814a9fba21ff6dcb1d7e7e1890a7f8#msg_501643

I decided to try to build the latest equinox version from the trunk
and this is were I ran into a problem. I did a checkout of the module
"org.eclipse.equinox/framework/bundles/org.eclipse.osgi" from
"dev.eclipse.org" Inside eclipse I could create an ant buildfile with
PDE Tools -> Create Ant Build File from the contextmenu on the
build.properties file. Running the generated ant script worked fine
and the build was successful.

My question is: Is it possible to generate this ant-build file from a
console or at least without the eclipse UI so I can include it in the
framework's ant script. Of course, if you have another option to
automatically retrieve or build the latest equinox nightly I would be
very pleased to hear.

Regards,
Walter Treur
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev