Skip to main content

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

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

Back to the top