[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Default Target Platform is empty while launching Eclipse by Maven tests

I can understand your confusion,

The issue occurs when maven-osgi-test-plugin runs tests that create plugin projects in the workspace. These plugin projects are built using the PDE target Platform as defined in Windows>Preferences>PDE>Target Platform, which is set to an empty ${eclipse_home} in the test instance. Hence plugins generated by tests in the workspace cannot compile, causing tests to fail.

In order to understand this issue, I went into the target/work folder of an eclipse-test-plugin and run the following command-line, which is almost the same as the one started by maven-osgi-test-plugin:

/usr/lib/jvm/java-1.5.0-sun-1.5.0.19/jre/bin/java -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86 -Xmx512m -XX:MaxPermSize=128m -jar /home/mistria/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.1.1.R36x_v20101122_1400/org.eclipse.equinox.launcher-1.1.1.R36x_v20101122_1400.jar -data /home/mistria/workspaceGMF/org.eclipse.gmf.tooling-root/tests/org.eclipse.gmf.tests/target/work/data -dev file:/home/mistria/workspaceGMF/org.eclipse.gmf.tooling-root/tests/org.eclipse.gmf.tests/target/dev.properties -configuration /home/mistria/workspaceGMF/org.eclipse.gmf.tooling-root/tests/org.eclipse.gmf.tests/target/work/configuration -application org.eclipse.ui.ide.workbench

Then I could manipulate the test instance, and discover that my bundles created during tests could not be built because the target platform does not contain any bundle.

I'll try to create a sample test project today in order to show you concretely the issue.

Le 18/04/2011 15:23, Igor Fedorenko a ÃcritÂ:
Now I am confused. Do you have problems running your tests from your IDE or from command line?

Mickael Istria <mickael.istria@xxxxxxxxxxxxxx> wrote:

Le 18/04/2011 13:26, Igor Fedorenko a Ãcrit :
All tycho bug reports and enhancement requests should go to Eclipse
bugzilla [1].
Ok, done@ http://bugs.eclipse.org/343152

As I explained in the other thread, I think it does make sense to
make
layout of test eclipse installation configurable via
maven-osgi-test-plugin parameter.
I don't think having it configurable could help. Instead, Tycho should
create a target platform (in the same meaning as target platform in
Windows>Preferences>PDE>Target Platform) that is made of all the
bundles of the running test instance, instead of the empty
${eclipse_home} folder with using maven-osgi-test-plugin.

There are no immediate plans to work
on this feature, but patches are welcome.
This is a blocking point for moving GMF and Bonita Studio and a lot of
other projects to Tycho.

If you decide to work on a patch, you may want to way few more days
until we finish "massaging" the code for initial contribution to
eclipse
and release org.eclipse.tycho 0.12.0.
Thanks for the note. Then I'll wait for the announce telling the code
is moved to Eclipse.org. I'll first try to write a test-case.


-- 

Mickael Istria
R&D Engineer
BonitaSoft - Open your processes <http://www.bonitasoft.com> 	
email : mickael.istria@xxxxxxxxxxxxxx


Best Eclipse Modeling Tool 2011
<http://www.eclipse.org/org/press-release/20110321_awardwinners.php>

This message and any attachment (the "message") is intended solely for
the addressees and is confidential. If you receive this message by
mistake, please delete it and notify the sender immediately. Any use
not in accordance with its purpose, any out-spread or disclosure,
either as a whole or partially, is prohibited except with formal
approval. Internet cannot guarantee the integrity of this message,
therefore BonitaSoft will not be liable for the message if modified.

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

    


--

Mickael Istria
R&D Engineer

BonitaSoft - Open your processes
email : mickael.istria@xxxxxxxxxxxxxx

Best Eclipse Modeling Tool 2011

This message and any attachment (the "message") is intended solely for the addressees and is confidential. If you receive this message by mistake, please delete it and notify the sender immediately. Any use not in accordance with its purpose, any out-spread or disclosure, either as a whole or partially, is prohibited except with formal approval. Internet cannot guarantee the integrity of this message, therefore BonitaSoft will not be liable for the message if modified.

JPEG image