Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAnt script on Linux different behavior file not found
https://www.eclipse.org/forums/index.php/mv/msg/25802/83597/#msg_83597
Originally posted by: Bjorn.Vanhauwaert.barco.com
Hi,
I am stuck trying to get tptp running in an ant script on a debian machine,
i had it running on windows but some wierd behavior happend when i run the
script on the debian.
I think i might be a tptp property i am setting wrong, or the ant lib that
returns a different path in linux than on windows (
/com.barco.compose.metadata/MetaPacketTest.testsuite )
MetaPacketTest.testsuite is not in the /com.barco.compose.metadata but i
dont know how i am able to change the path there.
Thank you
this is the error:
Buildfile: bms-metadata-build-tptp.xml
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
org.eclipse.core.internal.resources.ResourceException: Resource
/com.barco.compose.metadata/MetaPacketTest.testsuite does not exist.
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:307)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:268)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:390)
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.loadModelElement(AbstractTestExecutionService.java:65 3)
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.loadTestSuite(AbstractTestExecutionService.java:672)
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.beforeLaunch(AbstractTestExecutionService.java:235)
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:422)
at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource
/com.barco.compose.metadata/MetaPacketTest.testsuite does not exist.
at
org.eclipse.core.internal.resources.Resource.checkExists(Res ource.java:311)
at
org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:187)
at org.eclipse.core.internal.resources.File.getContents(File.ja va:288)
at org.eclipse.core.internal.resources.File.getContents(File.ja va:279)
at
org.eclipse.hyades.models.hierarchy.util.HierarchyURIConvert erImpl$WorkbenchHelper.createPlatformResourceInputStream(Hie rarchyURIConverterImpl.java:290)
at
org.eclipse.hyades.models.hierarchy.util.HierarchyURIConvert erImpl.createPlatformResourceInputStream(HierarchyURIConvert erImpl.java:368)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createI nputStream(URIConverterImpl.java:449)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:892)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
<target name="test-execution" description="Executes TPTP Test Suites using
default TPTP Ant Tasks">
<!-- Execute a TPTP test suite using the test task and providing the
workspace -->
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include name="${filemask}"/>
</fileset>
</tptp:execution>
</target>
</project>]]>2006-09-15T07:48:20-00:00Re: Ant script on Linux different behavior file not found
https://www.eclipse.org/forums/index.php/mv/msg/25802/83777/#msg_83777
This sounds like a defect. Can you try your ant script using a filelist
instead of a fileset and see if you get the same behavior?
Thanks,
--Joe]]>Joe Toomey2006-09-18T15:07:55-00:00Re: Ant script on Linux different behavior file not found
https://www.eclipse.org/forums/index.php/mv/msg/25802/83833/#msg_83833
Originally posted by: Bjorn.Vanhauwaert.barco.com
If i use the script below i get the same result. currently i am checking the
code and digging deeper in it, writig some output to the screen to try to
locate the error or my mistake.
currently the script executes the client with these properties maybe they
might be of some use:
<!-- Interrogate test suite results for verdict -->
</project>
"Joe Toomey" <jptoomey@us.ibm.com> wrote in message
news:eemcoc$pbt$2@utils.eclipse.org...
> Hi Bjorn,
>
> This sounds like a defect. Can you try your ant script using a filelist
> instead of a fileset and see if you get the same behavior?
>
> Thanks,
> --Joe
>]]>2006-09-20T07:24:07-00:00Re: Ant script on Linux different behavior file not found
https://www.eclipse.org/forums/index.php/mv/msg/25802/84635/#msg_84635
This is definitely a defect. I was looking at the code yesterday and
have a good idea of what needs to be done to address the problem. Can
you please file a bugzilla defect for this, and I'll try to address it
in 4.3?