Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327862 - Cannot use org.eclipse.test as part of my RCP application
Summary: Cannot use org.eclipse.test as part of my RCP application
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M3   Edit
Assignee: Kim Moir CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-15 04:37 EDT by Udo Walker CLA
Modified: 2010-10-18 10:29 EDT (History)
1 user (show)

See Also:


Attachments
patch (1.08 KB, patch)
2010-10-18 10:16 EDT, Kim Moir CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Udo Walker CLA 2010-10-15 04:37:52 EDT
Build Identifier: eclipse-test-framework-3.6.1

I have a RCP application which does not use p2 so I do not have a dropins directory. I want to test my RCP application with the eclipse test framework. 
To do this I do the following:

1. I declared a test feature which contains my RCP product feature and the test plugins and org.eclipse.test plugins
2. I run an eclipse headless as explained in the file testframework.html which is included in the plugin org.eclipse.test. 

My RCP product only contains the sub-folders features and plugins. The eclipse test framework is contained in these 2 directories. 

When I run the test the library.xml file from the test framework wants to execute a xstl transformation at the end of a test. 

But path to the JUNIT.XSL file is:

${eclipse-home}/dropins/eclipse/plugins/org.eclipse.test/JUNIT.XSL

I do not have the "dropins" directory. The second problem is that in my case the org.eclipse.test plugin is "built" as binary (I told the feature to unpack it, so I can access the files) and so it contains a version number in its directory name. 

In my case the path should be:

${eclipse-home}/plugins/org.eclipse.test_3.3.0/JUNIT.XSL

To fix that problem it would be nice to have an ANT property to specify the location of the JUNIT.XSL file.


Reproducible: Always
Comment 1 Kim Moir CLA 2010-10-18 10:16:34 EDT
Created attachment 181099 [details]
patch
Comment 2 Kim Moir CLA 2010-10-18 10:17:07 EDT
fixed for N20101018.
Comment 3 Udo Walker CLA 2010-10-18 10:29:12 EDT
Thanks, great.