Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 299032 - ASF service properties do not handle paths correctly.
Summary: ASF service properties do not handle paths correctly.
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard:
Keywords:
Depends on: 210289
Blocks: 211751 296286
  Show dependency tree
 
Reported: 2010-01-07 08:14 EST by Paul Slauenwhite CLA
Modified: 2016-05-05 10:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slauenwhite CLA 2010-01-07 08:14:57 EST
ASF service properties do not handle file paths correctly.

For example, when running the /org.eclipse.hyades.test.core.services.tests/src/org/eclipse/hyades/test/core/services/tests/shell/ShellAutomationClientAdapterTest.java ASF test, the following exception is thrown:

Starting test testPublishTabularReportSampleJUnitTestOutOfProcess()....
Test execution started.
Test 'resources\JUnit\SampleJUnitTest.testsuite' started.
Preparing launch delegate...
Performing pre-launch check...
Performing final launch validation...
Initializing source locator...
Launching delegate...
Waiting....
Test result 'SampleJUnitTest_1262810079085.execution' collected.
Test 'resources\JUnit\SampleJUnitTest.testsuite' completed.
Test execution completed!
The SampleJUnitTest.testsuite was executed successfully.
Test results interrogation started.
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.hyades.test.core.services.tests/org.eclipse.hyades.test.core.services.tests/resources/SampleJUnitTest_1262810079085.execution' does not exist.
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
	at org.eclipse.hyades.test.core.services.AbstractTestResultsInterrogationService.interrogate(AbstractTestResultsInterrogationService.java:210)
	at org.eclipse.hyades.test.core.services.AbstractTestResultsInterrogationService.execute(AbstractTestResultsInterrogationService.java:113)
	at org.eclipse.hyades.automation.server.AbstractService.execute(AbstractService.java:43)
	at org.eclipse.hyades.automation.server.ServiceProxy$1.run(ServiceProxy.java:139)
	at org.eclipse.hyades.automation.core.utils.ReusableThread.run(ReusableThread.java:131)
	at java.lang.Thread.run(Thread.java:735)
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.hyades.test.core.services.tests/org.eclipse.hyades.test.core.services.tests/resources/SampleJUnitTest_1262810079085.execution' does not exist.
	at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:319)
	at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:196)
	at org.eclipse.core.internal.resources.File.getContents(File.java:286)
	at org.eclipse.core.internal.resources.File.getContents(File.java:277)
	at org.eclipse.hyades.models.hierarchy.util.HierarchyURIConverterImpl$WorkbenchHelper.createPlatformResourceInputStream(HierarchyURIConverterImpl.java:290)
	at org.eclipse.hyades.models.hierarchy.util.HierarchyURIConverterImpl.createPlatformResourceInputStream(HierarchyURIConverterImpl.java:368)
	at org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createInputStream(URIConverterImpl.java:441)
	at org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createInputStream(URIConverterImpl.java:457)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1254)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
	... 7 more
Test testPublishTabularReportSampleJUnitTestOutOfProcess() complete!

This is caused by the ASF service properties do not handle paths correctly.

See the variable JavaDoc comment for
org.eclipse.hyades.test.core.services.AbstractTestExecutionService.resultsSpecifier for the valid path values.

See org.eclipse.hyades.test.core.services.internal.util.ServiceUtil for APIs to resolve the container and file name from a valid path.
Comment 1 Paul Slauenwhite CLA 2010-06-24 12:50:51 EDT
No longer required by a consuming product.
Comment 2 Paul Slauenwhite CLA 2010-06-24 13:33:10 EDT
Closing.