Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] ILaunchConfigurationWorkingCopy.launch() fails when run test using tycho

Jeff,
 
Thank you for reply. The problem I was hitting was caused by maven/tycho adding a MAKEOVERRIDES envvar with a value that was confusing eclipse.
 
--
God bless you,
Ramesh
From: Jeff MAURY <jeffmaury@xxxxxxxxxxxxx>
To: ramesh gunjal <rameshg282@xxxxxxxxx>; Tycho user list <tycho-user@xxxxxxxxxxx>
Sent: Wednesday, 7 March 2012 12:30 AM
Subject: Re: [tycho-user] ILaunchConfigurationWorkingCopy.launch() fails when run test using tycho

You are probably missing a bundle that provides variables when testing from Tycho as it computes the minimum set of required bundles
Jeff
Le 6 mars 2012 15:41, "ramesh gunjal" <rameshg282@xxxxxxxxx> a écrit :
Hello,
 
I am getting some exception when running test for my RCP application. In my test method I am creating ILaunchConfigurationWorkingCopy and calling its launch() method with progress monitor. I am getting exception in ILaunchConfigurationWorkingCopy.launch(); which is java method and can not debug. Note that the same test works fine when run from withing Eclipse IDE but fails when run using tycho.  
 
Pasting stack trace
---------------------
org.eclipse.core.runtime.CoreException: Reference to undefined variable -*-command-variables-*-
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.resolve(StringSubstitutionEngine.java:259)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.substitute(StringSubstitutionEngine.java:192)
        at org.eclipse.core.internal.variables.StringSubstitutionEngine.performStringSubstitution(StringSubstitutionEngine.java:86)
        at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:573)
        at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:351)
        at org.eclipse.debug.internal.core.LaunchManager.getEnvironment(LaunchManager.java:1262)
        at org.eclipse.core.externaltools.internal.launchConfigurations.ProgramLaunchDelegate.launch(ProgramLaunchDelegate.java:103)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
        at com.xxx.myapp.run.TimelineRunner.runWithMonitor(TimelineRunner.java:156)
        at com.xxx.myapp.run.AppRunner$ExpertJob.run(AppRunner.java:323)
        at com.xxx.myapp.MyAppJob$1.run(MyAppJobJob.java:94)
---------------------
 
I tried to google the error but could find any hint. Did anyone come across this problem? What is missing when run using tycho?
 
 
Here is my test POM
---------------------
<groupId>com.xxx.myapp</groupId>
<artifactId>com.xxx.myapp.test</artifactId>
<version>1.0.0.qualifier</version>
<packaging>eclipse-test-plugin</packaging>
<repositories>
<repository>
<id>indigo</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/indigo</url>
</repository>
</repositories>
<profiles>
<profile>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<argLine>-Xms40m -Xmx512m</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
---------------------
 
--
Regards,
Ramesh

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




Back to the top