Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Eclipse config.ini file lecture problem with Tycho surefire in maven



Did you try explicitly configuring the tycho-surefire-plugin within your test bundle’s pom.xml?

For example,












Also take a look at (it talks about the config.ini, and managing the runtime within a testing context).





From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Betty
Sent: August-22-14 10:56 AM
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Eclipse config.ini file lecture problem with Tycho surefire in maven


Hello Tycho community

I'm having problems trying to test the client side of my eclipse scout project. It has basically the same test structure that in the Autotest project: I've already went through a lot of projects and documentation but don't hesitate to recommend any sources.

The error I get is:

WARNING org.eclipse.scout.commons.serialization.SerializationUtility.getBundleOrderPrefixes( bundle order prefixes are neither defined in config.ini nor as a system property. Using default value: org.eclipse.scout.commons.serialization.bundleOrderPrefixes=org.eclipse.scout

I believe this error means that the product in the eclipse plugin 'my.project.client.test' cannot find the line "org.eclipse.scout.commons.serialization.bundleOrderPrefixes=org.eclipse.scout," in its corresponding config.ini file. Nevertheless the config.ini file has this property.

If I run the this product in eclipse, this works fine, but when I run the maven build, it simply doesn't read the config.ini This makes my maven build crash.

The problem is that tycho surefire is generating a config.ini and I don’t know what does it contain since the target/work directory is created and destroyed in every build. I can see that when the test phase is executed the directory target/work is generated and it seems that there is a config.ini but I'm not sure if this is the config.ini file that the plugin should use.

I've even tried to copy the config.ini in the test phase to the target/work directory but it didn’t work.

I've changed the product configuration in eclipse to generate the config.ini with the parameters that I wanted and I had the same problem as in maven. So this means that generating is not working and since tycho doesn’t read the file I simply don't know what to do...  is there any workaround?

Well thanks in advance..

Back to the top