Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Ant script on Linux different behavior file not found
Ant script on Linux different behavior file not found [message #83597] Fri, 15 September 2006 07:48 Go to next message
Eclipse UserFriend
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

test-execution:

adding file MetaPacketTest.testsuite

adding file src/com/barco/compose/metadata/test/MetaPacketTest.testsuite

Test started!

Test 'MetaPacketTest.testsuite' executing

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)

.... 9 more

this is the ant file:

<project name="BMS Meta Data compilation"

default="main"

xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">





<property name="tptp.automation.eclipse"
value="/users/software/user/apps/eclipse/32" />

<property name="tptp.test.workspace"
value=" /users/software/user/apps/cruisecontrol/25/projects/bms-meta data/ "/>

<property name="tptp.test.project" value="com.barco.compose.metadata"/>

<property name="project.dir"
value="${tptp.test.workspace}${tptp.test.project}"/>

<property name="filemask" value="**/MetaPacketTest.testsuite" />





<target name="main" depends="test-execution"/>


<!-- Execute TPTP test suites -->

<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>
Re: Ant script on Linux different behavior file not found [message #83777 is a reply to message #83597] Mon, 18 September 2006 15:07 Go to previous messageGo to next message
Joe Toomey is currently offline Joe ToomeyFriend
Messages: 79
Registered: July 2009
Member
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
Re: Ant script on Linux different behavior file not found [message #83833 is a reply to message #83777] Wed, 20 September 2006 07:24 Go to previous messageGo to next message
Eclipse UserFriend
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:

Service:org.eclipse.hyades.test.tools.core.execute

{classpath=,
workspace=/users/software/tspiesse/apps/cruisecontrol/25/pro jects/bms-metadata,
quiet=false, overwrite=false, suite=[MetaPacketTest.testsuite],
resultsrefid=tptp.test.results, project=com.barco.compose.metadata}

properties:{classpath=,
workspace=/users/software/tspiesse/apps/cruisecontrol/25/pro jects/bms-metadata,
quiet=false, overwrite=false, suite=[MetaPacketTest.testsuite],
resultsrefid=tptp.test.results, project=com.barco.compose.metadata}

script:

==========

<project name="BMS Meta Data compilation"

default="main"

xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">





<property name="tptp.automation.eclipse"
value="/users/software/tspiesse/apps/eclipse/32" />

<property name="tptp.test.workspace"
value=" /users/software/tspiesse/apps/cruisecontrol/25/projects/bms- metadata/ "/>

<!--<property name="tptp.test.project"
value=" /users/software/tspiesse/apps/cruisecontrol/25/projects/bms- metadata/com.barco.compose.metadata "/>-->

<property name="tptp.test.project" value="com.barco.compose.metadata"/>

<property name="project.dir"
value="${tptp.test.workspace}${tptp.test.project}"/>

<property name="filemask" value="**/MetaPacketTest.testsuite" />





<target name="main" depends="test-execution"/>


<!-- Execute TPTP test suites -->

<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">

<filelist id="testfile" dir="${project.dir}"
files="MetaPacketTest.testsuite"/>

</tptp:execution>

</target>

<!-- 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
>
Re: Ant script on Linux different behavior file not found [message #84635 is a reply to message #83833] Fri, 29 September 2006 18:51 Go to previous message
Joe Toomey is currently offline Joe ToomeyFriend
Messages: 79
Registered: July 2009
Member
Hi Bjorn,

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?

Thanks,
--Joe
Previous Topic:Extending TPTP with a web-based tool
Next Topic:Programmatically initiate code review
Goto Forum:
  


Current Time: Thu Apr 25 14:37:44 GMT 2024

Powered by FUDForum. Page generated in 0.02918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top