Skip to main content



      Home
Home » Archived » Test and Performance Tools Platform (TPTP) » tptp junit test is not able to run with ant script
tptp junit test is not able to run with ant script [message #79003] Wed, 26 July 2006 11:30 Go to next message
Eclipse UserFriend
Originally posted by: bjorn.vanhauwaert.barco.com

Hello, i am trying out the tptp test suite, but i am not able to run any
tests using only ant at the command prompt(Windows XP)

when i run ant -f test1.xml I get the following error. Anybody has any
ideas where the problem might be?

D:\TEMP\test>ant -f test1.xml
Buildfile: test1.xml

test:
java.io.IOException: CreateProcess: .\eclipse -nosplash -application
org.eclipse.hyades.execution.server -data "D:\APPZ\workspace\test" -vmargs
-Dtptp.automation.command=execute
-Dtptp.automation.synchronicity=synchronous
-Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)
at
org.eclipse.hyades.automation.client.strategies.OutOfProcess Strategy.execute(OutOfProcessStrategy.java:285)
at
org.eclipse.hyades.automation.client.ServiceProxy.execute(Se rviceProxy.java:77)
at
org.eclipse.hyades.automation.client.AutomationClient$Defaul t.execute(AutomationClient.java:160)
at
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.execute(AutomationClientAdapter.java:168)
at
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.execute(AutomationClientAdapter.java:147)
at
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Automation.execute(AutomationClientAdapter.jav a:273)
at
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Execution.execute(AutomationClientAdapter.java :578)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD FAILED
D:\TEMP\test\test1.xml:25: java.lang.NullPointerException

Total time: 0 seconds


this is my ant script(test1.xml):

<project name="TPTP Ant Tasks Test Script"
default="test"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">

<property name="eclipse.home"
value="D:\APPZ\eclipse32_with_TPTP_subversive"/>

<description>
This ant script tests the TPTP automation ant task client adapters
and also can be used to test the underlying execution of TPTP automatable
services via the TPTP automation server
</description>

<!-- Execute TPTP test suites -->
<target
name="test" description="Executes TPTP Test Suites using default TPTP Ant
Tasks">

<!--
Execute a TPTP test suite using the test task and providing the workspace
-->
<tptp:test
workspace="D:\APPZ\workspace\test"
project="guitest"
suite="UnitTest.testsuite"
/>

</target>
</project>
Re: tptp junit test is not able to run with ant script [message #79013 is a reply to message #79003] Wed, 26 July 2006 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Have you included org.eclipse.hyades.execution under your library?
I use the following command to run a test using ant:

ant -f -lib
<ECLIPSE-HOME>\plugins\org.eclipse.hyades.execution_4.2.0.v200606131519
test-run.xml

Your best bet is to look at the log file generated under your workspace
(i.e. inside of D:\APPZ\workspace\test)


"Bjorn Vanhauwaert" <bjorn.vanhauwaert@barco.com> wrote in message
news:df0a800d2b32b091d44f1da0be303ddb$1@www.eclipse.org...
> Hello, i am trying out the tptp test suite, but i am not able to run any
> tests using only ant at the command prompt(Windows XP)
>
> when i run ant -f test1.xml I get the following error. Anybody has any
> ideas where the problem might be?
>
> D:\TEMP\test>ant -f test1.xml
> Buildfile: test1.xml
>
> test:
> java.io.IOException: CreateProcess: .\eclipse -nosplash -application
> org.eclipse.hyades.execution.server -data "D:\APPZ\workspace\test" -vmargs
> -Dtptp.automation.command=execute
> -Dtptp.automation.synchronicity=synchronous
> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
> at java.lang.ProcessImpl.create(Native Method)
> at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
> at java.lang.ProcessImpl.start(ProcessImpl.java:30)
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> at java.lang.Runtime.exec(Runtime.java:591)
> at java.lang.Runtime.exec(Runtime.java:429)
> at java.lang.Runtime.exec(Runtime.java:326)
> at
>
org.eclipse.hyades.automation.client.strategies.OutOfProcess Strategy.execute
(OutOfProcessStrategy.java:285)
> at
>
org.eclipse.hyades.automation.client.ServiceProxy.execute(Se rviceProxy.java:
77)
> at
>
org.eclipse.hyades.automation.client.AutomationClient$Defaul t.execute(Automa
tionClient.java:160)
> at
>
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
xecute(AutomationClientAdapter.java:168)
> at
>
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
xecute(AutomationClientAdapter.java:147)
> at
>
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Au
tomation.execute(AutomationClientAdapter.java:273)
> at
>
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Ex
ecution.execute(AutomationClientAdapter.java:578)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
> at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.j
ava:40)
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> BUILD FAILED
> D:\TEMP\test\test1.xml:25: java.lang.NullPointerException
>
> Total time: 0 seconds
>
>
> this is my ant script(test1.xml):
>
> <project name="TPTP Ant Tasks Test Script"
> default="test"
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>
> <property name="eclipse.home"
> value="D:\APPZ\eclipse32_with_TPTP_subversive"/>
>
> <description>
> This ant script tests the TPTP automation ant task client adapters
> and also can be used to test the underlying execution of TPTP
automatable
> services via the TPTP automation server
> </description>
>
> <!-- Execute TPTP test suites -->
> <target
> name="test" description="Executes TPTP Test Suites using default TPTP Ant
> Tasks">
>
> <!--
> Execute a TPTP test suite using the test task and providing the workspace
> -->
> <tptp:test
> workspace="D:\APPZ\workspace\test"
> project="guitest"
> suite="UnitTest.testsuite"
> />
>
> </target>
> </project>
>
>
>
>
>
>
Re: tptp junit test is not able to run with ant script [message #79115 is a reply to message #79013] Thu, 27 July 2006 05:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Bjorn.Vanhauwaert.barco.com

I tryed that suggestion but it didnt work still get the same error.
But after digging some further i found that

java.io.IOException: CreateProcess: .\eclipse -nosplash -application
>> org.eclipse.hyades.execution.server -data
>> "D:\APPZ\workspace\test" -vmargs
>> -Dtptp.automation.command=execute
>> -Dtptp.automation.synchronicity=synchronous
>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2

Could be comming from the java runtime.exec there are problems with some
path formatting to start it up.

To solve this i added the dir where eclipse
is(D:\APPZ\eclipse32_with_TPTP_subversive) to my path var => same error

could it be that there might be a problem that the script wants to execute
the .\eclipse as a command ? and doesnt find the exe. On this problem i
found some stuff on the forums they said the problem could be fixed if you
runitme.exe with the full path.


"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:ea84oc$4vq$1@utils.eclipse.org...
> Have you included org.eclipse.hyades.execution under your library?
> I use the following command to run a test using ant:
>
> ant -f -lib
> <ECLIPSE-HOME>\plugins\org.eclipse.hyades.execution_4.2.0.v200606131519
> test-run.xml
>
> Your best bet is to look at the log file generated under your workspace
> (i.e. inside of D:\APPZ\workspace\test)
>
>
> "Bjorn Vanhauwaert" <bjorn.vanhauwaert@barco.com> wrote in message
> news:df0a800d2b32b091d44f1da0be303ddb$1@www.eclipse.org...
>> Hello, i am trying out the tptp test suite, but i am not able to run any
>> tests using only ant at the command prompt(Windows XP)
>>
>> when i run ant -f test1.xml I get the following error. Anybody has any
>> ideas where the problem might be?
>>
>> D:\TEMP\test>ant -f test1.xml
>> Buildfile: test1.xml
>>
>> test:
>> java.io.IOException: CreateProcess: .\eclipse -nosplash -application
>> org.eclipse.hyades.execution.server -data
>> "D:\APPZ\workspace\test" -vmargs
>> -Dtptp.automation.command=execute
>> -Dtptp.automation.synchronicity=synchronous
>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
>> at java.lang.ProcessImpl.create(Native Method)
>> at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
>> at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>> at java.lang.Runtime.exec(Runtime.java:591)
>> at java.lang.Runtime.exec(Runtime.java:429)
>> at java.lang.Runtime.exec(Runtime.java:326)
>> at
>>
> org.eclipse.hyades.automation.client.strategies.OutOfProcess Strategy.execute
> (OutOfProcessStrategy.java:285)
>> at
>>
> org.eclipse.hyades.automation.client.ServiceProxy.execute(Se rviceProxy.java:
> 77)
>> at
>>
> org.eclipse.hyades.automation.client.AutomationClient$Defaul t.execute(Automa
> tionClient.java:160)
>> at
>>
> org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
> xecute(AutomationClientAdapter.java:168)
>> at
>>
> org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
> xecute(AutomationClientAdapter.java:147)
>> at
>>
> org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Au
> tomation.execute(AutomationClientAdapter.java:273)
>> at
>>
> org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Ex
> ecution.execute(AutomationClientAdapter.java:578)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>> at
>>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.j
> ava:40)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at org.apache.tools.ant.Main.runBuild(Main.java:668)
>> at org.apache.tools.ant.Main.startAnt(Main.java:187)
>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>
>> BUILD FAILED
>> D:\TEMP\test\test1.xml:25: java.lang.NullPointerException
>>
>> Total time: 0 seconds
>>
>>
>> this is my ant script(test1.xml):
>>
>> <project name="TPTP Ant Tasks Test Script"
>> default="test"
>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>
>> <property name="eclipse.home"
>> value="D:\APPZ\eclipse32_with_TPTP_subversive"/>
>>
>> <description>
>> This ant script tests the TPTP automation ant task client adapters
>> and also can be used to test the underlying execution of TPTP
> automatable
>> services via the TPTP automation server
>> </description>
>>
>> <!-- Execute TPTP test suites -->
>> <target
>> name="test" description="Executes TPTP Test Suites using default TPTP Ant
>> Tasks">
>>
>> <!--
>> Execute a TPTP test suite using the test task and providing the workspace
>> -->
>> <tptp:test
>> workspace="D:\APPZ\workspace\test"
>> project="guitest"
>> suite="UnitTest.testsuite"
>> />
>>
>> </target>
>> </project>
>>
>>
>>
>>
>>
>>
>
>
Re: tptp junit test is not able to run with ant script [message #79130 is a reply to message #79115] Thu, 27 July 2006 06:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Bjorn.Vanhauwaert.barco.com

I just did some more testing

Using the simple class

on example 2 eclipse starts up
on example 1 i get this error: looks like the same thing to me

java.io.IOException: CreateProcess: .\eclipse error=2

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(Unknown Source)

at java.lang.ProcessImpl.start(Unknown Source)

at java.lang.ProcessBuilder.start(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at antrunning.ExecTest.main(ExecTest.java:13)


public static void main(String args[])

{

try

{

Runtime rt = Runtime.getRuntime();

Process proc = rt.exec(".\\eclipse");//--------------------------1

//Process proc = rt.exec("eclipse");---------------------------2


int exitVal = proc.waitFor();

System.out.println("Process exitValue: " + exitVal);

} catch (Throwable t)

{

t.printStackTrace();

}

}



"Bjorn Vanhauwaert" <Bjorn.Vanhauwaert@barco.com> wrote in message
news:eaa2ou$pr7$1@utils.eclipse.org...
>I tryed that suggestion but it didnt work still get the same error.
> But after digging some further i found that
>
> java.io.IOException: CreateProcess: .\eclipse -nosplash -application
>>> org.eclipse.hyades.execution.server -data
>>> "D:\APPZ\workspace\test" -vmargs
>>> -Dtptp.automation.command=execute
>>> -Dtptp.automation.synchronicity=synchronous
>>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
>
> Could be comming from the java runtime.exec there are problems with some
> path formatting to start it up.
>
> To solve this i added the dir where eclipse
> is(D:\APPZ\eclipse32_with_TPTP_subversive) to my path var => same error
>
> could it be that there might be a problem that the script wants to execute
> the .\eclipse as a command ? and doesnt find the exe. On this problem i
> found some stuff on the forums they said the problem could be fixed if you
> runitme.exe with the full path.
>
>
> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
> news:ea84oc$4vq$1@utils.eclipse.org...
>> Have you included org.eclipse.hyades.execution under your library?
>> I use the following command to run a test using ant:
>>
>> ant -f -lib
>> <ECLIPSE-HOME>\plugins\org.eclipse.hyades.execution_4.2.0.v200606131519
>> test-run.xml
>>
>> Your best bet is to look at the log file generated under your workspace
>> (i.e. inside of D:\APPZ\workspace\test)
>>
>>
>> "Bjorn Vanhauwaert" <bjorn.vanhauwaert@barco.com> wrote in message
>> news:df0a800d2b32b091d44f1da0be303ddb$1@www.eclipse.org...
>>> Hello, i am trying out the tptp test suite, but i am not able to run any
>>> tests using only ant at the command prompt(Windows XP)
>>>
>>> when i run ant -f test1.xml I get the following error. Anybody has any
>>> ideas where the problem might be?
>>>
>>> D:\TEMP\test>ant -f test1.xml
>>> Buildfile: test1.xml
>>>
>>> test:
>>> java.io.IOException: CreateProcess: .\eclipse -nosplash -application
>>> org.eclipse.hyades.execution.server -data
>>> "D:\APPZ\workspace\test" -vmargs
>>> -Dtptp.automation.command=execute
>>> -Dtptp.automation.synchronicity=synchronous
>>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
>>> at java.lang.ProcessImpl.create(Native Method)
>>> at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
>>> at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>>> at java.lang.Runtime.exec(Runtime.java:591)
>>> at java.lang.Runtime.exec(Runtime.java:429)
>>> at java.lang.Runtime.exec(Runtime.java:326)
>>> at
>>>
>> org.eclipse.hyades.automation.client.strategies.OutOfProcess Strategy.execute
>> (OutOfProcessStrategy.java:285)
>>> at
>>>
>> org.eclipse.hyades.automation.client.ServiceProxy.execute(Se rviceProxy.java:
>> 77)
>>> at
>>>
>> org.eclipse.hyades.automation.client.AutomationClient$Defaul t.execute(Automa
>> tionClient.java:160)
>>> at
>>>
>> org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
>> xecute(AutomationClientAdapter.java:168)
>>> at
>>>
>> org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
>> xecute(AutomationClientAdapter.java:147)
>>> at
>>>
>> org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Au
>> tomation.execute(AutomationClientAdapter.java:273)
>>> at
>>>
>> org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Ex
>> ecution.execute(AutomationClientAdapter.java:578)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>> at
>>>
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.j
>> ava:40)
>>> at
>>> org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>> at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>
>>> BUILD FAILED
>>> D:\TEMP\test\test1.xml:25: java.lang.NullPointerException
>>>
>>> Total time: 0 seconds
>>>
>>>
>>> this is my ant script(test1.xml):
>>>
>>> <project name="TPTP Ant Tasks Test Script"
>>> default="test"
>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>
>>> <property name="eclipse.home"
>>> value="D:\APPZ\eclipse32_with_TPTP_subversive"/>
>>>
>>> <description>
>>> This ant script tests the TPTP automation ant task client adapters
>>> and also can be used to test the underlying execution of TPTP
>> automatable
>>> services via the TPTP automation server
>>> </description>
>>>
>>> <!-- Execute TPTP test suites -->
>>> <target
>>> name="test" description="Executes TPTP Test Suites using default TPTP
>>> Ant
>>> Tasks">
>>>
>>> <!--
>>> Execute a TPTP test suite using the test task and providing the
>>> workspace
>>> -->
>>> <tptp:test
>>> workspace="D:\APPZ\workspace\test"
>>> project="guitest"
>>> suite="UnitTest.testsuite"
>>> />
>>>
>>> </target>
>>> </project>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
Re: tptp junit test is not able to run with ant script [message #79248 is a reply to message #79130] Mon, 31 July 2006 01:02 Go to previous messageGo to next message
Eclipse UserFriend
Looking at your script, I don't think "eclipse.home" is a valid property:
<property name="eclipse.home"
value="D:\APPZ\eclipse32_with_TPTP_subversive"/>

According to the example ant script included under
org.eclipse.hyades.execution/example.xml, the eclipse home property is
"tptp.automation.eclipse". Change the property name from "eclipse.home" to
"tptp.automation.eclipse" and try running your script again. This explains
the error that you were getting regarding the ./eclipse command. I have
opened the following defect against our help documentation to fix the typo:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=152291

Thanks.


"Bjorn Vanhauwaert" <Bjorn.Vanhauwaert@barco.com> wrote in message
news:eaa36h$rqt$1@utils.eclipse.org...
> I just did some more testing
>
> Using the simple class
>
> on example 2 eclipse starts up
> on example 1 i get this error: looks like the same thing to me
>
> java.io.IOException: CreateProcess: .\eclipse error=2
>
> at java.lang.ProcessImpl.create(Native Method)
>
> at java.lang.ProcessImpl.<init>(Unknown Source)
>
> at java.lang.ProcessImpl.start(Unknown Source)
>
> at java.lang.ProcessBuilder.start(Unknown Source)
>
> at java.lang.Runtime.exec(Unknown Source)
>
> at java.lang.Runtime.exec(Unknown Source)
>
> at java.lang.Runtime.exec(Unknown Source)
>
> at antrunning.ExecTest.main(ExecTest.java:13)
>
>
> public static void main(String args[])
>
> {
>
> try
>
> {
>
> Runtime rt = Runtime.getRuntime();
>
> Process proc = rt.exec(".\\eclipse");//--------------------------1
>
> //Process proc = rt.exec("eclipse");---------------------------2
>
>
> int exitVal = proc.waitFor();
>
> System.out.println("Process exitValue: " + exitVal);
>
> } catch (Throwable t)
>
> {
>
> t.printStackTrace();
>
> }
>
> }
>
>
>
> "Bjorn Vanhauwaert" <Bjorn.Vanhauwaert@barco.com> wrote in message
> news:eaa2ou$pr7$1@utils.eclipse.org...
> >I tryed that suggestion but it didnt work still get the same error.
> > But after digging some further i found that
> >
> > java.io.IOException: CreateProcess: .\eclipse -nosplash -application
> >>> org.eclipse.hyades.execution.server -data
> >>> "D:\APPZ\workspace\test" -vmargs
> >>> -Dtptp.automation.command=execute
> >>> -Dtptp.automation.synchronicity=synchronous
> >>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
> >
> > Could be comming from the java runtime.exec there are problems with some
> > path formatting to start it up.
> >
> > To solve this i added the dir where eclipse
> > is(D:\APPZ\eclipse32_with_TPTP_subversive) to my path var => same error
> >
> > could it be that there might be a problem that the script wants to
execute
> > the .\eclipse as a command ? and doesnt find the exe. On this problem i
> > found some stuff on the forums they said the problem could be fixed if
you
> > runitme.exe with the full path.
> >
> >
> > "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
> > news:ea84oc$4vq$1@utils.eclipse.org...
> >> Have you included org.eclipse.hyades.execution under your library?
> >> I use the following command to run a test using ant:
> >>
> >> ant -f -lib
> >> <ECLIPSE-HOME>\plugins\org.eclipse.hyades.execution_4.2.0.v200606131519
> >> test-run.xml
> >>
> >> Your best bet is to look at the log file generated under your workspace
> >> (i.e. inside of D:\APPZ\workspace\test)
> >>
> >>
> >> "Bjorn Vanhauwaert" <bjorn.vanhauwaert@barco.com> wrote in message
> >> news:df0a800d2b32b091d44f1da0be303ddb$1@www.eclipse.org...
> >>> Hello, i am trying out the tptp test suite, but i am not able to run
any
> >>> tests using only ant at the command prompt(Windows XP)
> >>>
> >>> when i run ant -f test1.xml I get the following error. Anybody has any
> >>> ideas where the problem might be?
> >>>
> >>> D:\TEMP\test>ant -f test1.xml
> >>> Buildfile: test1.xml
> >>>
> >>> test:
> >>> java.io.IOException: CreateProcess: .\eclipse -nosplash -application
> >>> org.eclipse.hyades.execution.server -data
> >>> "D:\APPZ\workspace\test" -vmargs
> >>> -Dtptp.automation.command=execute
> >>> -Dtptp.automation.synchronicity=synchronous
> >>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
> >>> at java.lang.ProcessImpl.create(Native Method)
> >>> at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
> >>> at java.lang.ProcessImpl.start(ProcessImpl.java:30)
> >>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> >>> at java.lang.Runtime.exec(Runtime.java:591)
> >>> at java.lang.Runtime.exec(Runtime.java:429)
> >>> at java.lang.Runtime.exec(Runtime.java:326)
> >>> at
> >>>
> >>
org.eclipse.hyades.automation.client.strategies.OutOfProcess Strategy.execute
> >> (OutOfProcessStrategy.java:285)
> >>> at
> >>>
> >>
org.eclipse.hyades.automation.client.ServiceProxy.execute(Se rviceProxy.java:
> >> 77)
> >>> at
> >>>
> >>
org.eclipse.hyades.automation.client.AutomationClient$Defaul t.execute(Automa
> >> tionClient.java:160)
> >>> at
> >>>
> >>
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
> >> xecute(AutomationClientAdapter.java:168)
> >>> at
> >>>
> >>
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
> >> xecute(AutomationClientAdapter.java:147)
> >>> at
> >>>
> >>
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Au
> >> tomation.execute(AutomationClientAdapter.java:273)
> >>> at
> >>>
> >>
org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Ex
> >> ecution.execute(AutomationClientAdapter.java:578)
> >>> at
> >>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> >>> at org.apache.tools.ant.Task.perform(Task.java:364)
> >>> at org.apache.tools.ant.Target.execute(Target.java:341)
> >>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>> at
> >>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> >>> at
org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
> >>> at
> >>>
> >>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.j
> >> ava:40)
> >>> at
> >>> org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> >>> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>>
> >>> BUILD FAILED
> >>> D:\TEMP\test\test1.xml:25: java.lang.NullPointerException
> >>>
> >>> Total time: 0 seconds
> >>>
> >>>
> >>> this is my ant script(test1.xml):
> >>>
> >>> <project name="TPTP Ant Tasks Test Script"
> >>> default="test"
> >>>
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
> >>>
> >>> <property name="eclipse.home"
> >>> value="D:\APPZ\eclipse32_with_TPTP_subversive"/>
> >>>
> >>> <description>
> >>> This ant script tests the TPTP automation ant task client adapters
> >>> and also can be used to test the underlying execution of TPTP
> >> automatable
> >>> services via the TPTP automation server
> >>> </description>
> >>>
> >>> <!-- Execute TPTP test suites -->
> >>> <target
> >>> name="test" description="Executes TPTP Test Suites using default TPTP
> >>> Ant
> >>> Tasks">
> >>>
> >>> <!--
> >>> Execute a TPTP test suite using the test task and providing the
> >>> workspace
> >>> -->
> >>> <tptp:test
> >>> workspace="D:\APPZ\workspace\test"
> >>> project="guitest"
> >>> suite="UnitTest.testsuite"
> >>> />
> >>>
> >>> </target>
> >>> </project>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
>
>
Re: tptp junit test is not able to run with ant script [message #79933 is a reply to message #79248] Mon, 07 August 2006 04:19 Go to previous message
Eclipse UserFriend
Originally posted by: Bjorn.Vanhauwaert.barco.com

Ok this made it work thnx :)

"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eak2qk$b31$1@utils.eclipse.org...
> Looking at your script, I don't think "eclipse.home" is a valid property:
> <property name="eclipse.home"
> value="D:\APPZ\eclipse32_with_TPTP_subversive"/>
>
> According to the example ant script included under
> org.eclipse.hyades.execution/example.xml, the eclipse home property is
> "tptp.automation.eclipse". Change the property name from "eclipse.home"
> to
> "tptp.automation.eclipse" and try running your script again. This
> explains
> the error that you were getting regarding the ./eclipse command. I have
> opened the following defect against our help documentation to fix the
> typo:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=152291
>
> Thanks.
>
>
> "Bjorn Vanhauwaert" <Bjorn.Vanhauwaert@barco.com> wrote in message
> news:eaa36h$rqt$1@utils.eclipse.org...
>> I just did some more testing
>>
>> Using the simple class
>>
>> on example 2 eclipse starts up
>> on example 1 i get this error: looks like the same thing to me
>>
>> java.io.IOException: CreateProcess: .\eclipse error=2
>>
>> at java.lang.ProcessImpl.create(Native Method)
>>
>> at java.lang.ProcessImpl.<init>(Unknown Source)
>>
>> at java.lang.ProcessImpl.start(Unknown Source)
>>
>> at java.lang.ProcessBuilder.start(Unknown Source)
>>
>> at java.lang.Runtime.exec(Unknown Source)
>>
>> at java.lang.Runtime.exec(Unknown Source)
>>
>> at java.lang.Runtime.exec(Unknown Source)
>>
>> at antrunning.ExecTest.main(ExecTest.java:13)
>>
>>
>> public static void main(String args[])
>>
>> {
>>
>> try
>>
>> {
>>
>> Runtime rt = Runtime.getRuntime();
>>
>> Process proc = rt.exec(".\\eclipse");//--------------------------1
>>
>> //Process proc = rt.exec("eclipse");---------------------------2
>>
>>
>> int exitVal = proc.waitFor();
>>
>> System.out.println("Process exitValue: " + exitVal);
>>
>> } catch (Throwable t)
>>
>> {
>>
>> t.printStackTrace();
>>
>> }
>>
>> }
>>
>>
>>
>> "Bjorn Vanhauwaert" <Bjorn.Vanhauwaert@barco.com> wrote in message
>> news:eaa2ou$pr7$1@utils.eclipse.org...
>> >I tryed that suggestion but it didnt work still get the same error.
>> > But after digging some further i found that
>> >
>> > java.io.IOException: CreateProcess: .\eclipse -nosplash -application
>> >>> org.eclipse.hyades.execution.server -data
>> >>> "D:\APPZ\workspace\test" -vmargs
>> >>> -Dtptp.automation.command=execute
>> >>> -Dtptp.automation.synchronicity=synchronous
>> >>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
>> >
>> > Could be comming from the java runtime.exec there are problems with
>> > some
>> > path formatting to start it up.
>> >
>> > To solve this i added the dir where eclipse
>> > is(D:\APPZ\eclipse32_with_TPTP_subversive) to my path var => same error
>> >
>> > could it be that there might be a problem that the script wants to
> execute
>> > the .\eclipse as a command ? and doesnt find the exe. On this problem i
>> > found some stuff on the forums they said the problem could be fixed if
> you
>> > runitme.exe with the full path.
>> >
>> >
>> > "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>> > news:ea84oc$4vq$1@utils.eclipse.org...
>> >> Have you included org.eclipse.hyades.execution under your library?
>> >> I use the following command to run a test using ant:
>> >>
>> >> ant -f -lib
>> >> <ECLIPSE-HOME>\plugins\org.eclipse.hyades.execution_4.2.0.v200606131519
>> >> test-run.xml
>> >>
>> >> Your best bet is to look at the log file generated under your
>> >> workspace
>> >> (i.e. inside of D:\APPZ\workspace\test)
>> >>
>> >>
>> >> "Bjorn Vanhauwaert" <bjorn.vanhauwaert@barco.com> wrote in message
>> >> news:df0a800d2b32b091d44f1da0be303ddb$1@www.eclipse.org...
>> >>> Hello, i am trying out the tptp test suite, but i am not able to run
> any
>> >>> tests using only ant at the command prompt(Windows XP)
>> >>>
>> >>> when i run ant -f test1.xml I get the following error. Anybody has
>> >>> any
>> >>> ideas where the problem might be?
>> >>>
>> >>> D:\TEMP\test>ant -f test1.xml
>> >>> Buildfile: test1.xml
>> >>>
>> >>> test:
>> >>> java.io.IOException: CreateProcess: .\eclipse -nosplash -application
>> >>> org.eclipse.hyades.execution.server -data
>> >>> "D:\APPZ\workspace\test" -vmargs
>> >>> -Dtptp.automation.command=execute
>> >>> -Dtptp.automation.synchronicity=synchronous
>> >>> -Dtptp.automation.data="C:\Temp\memento38213.dat" error=2
>> >>> at java.lang.ProcessImpl.create(Native Method)
>> >>> at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
>> >>> at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>> >>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>> >>> at java.lang.Runtime.exec(Runtime.java:591)
>> >>> at java.lang.Runtime.exec(Runtime.java:429)
>> >>> at java.lang.Runtime.exec(Runtime.java:326)
>> >>> at
>> >>>
>> >>
> org.eclipse.hyades.automation.client.strategies.OutOfProcess Strategy.execute
>> >> (OutOfProcessStrategy.java:285)
>> >>> at
>> >>>
>> >>
> org.eclipse.hyades.automation.client.ServiceProxy.execute(Se rviceProxy.java:
>> >> 77)
>> >>> at
>> >>>
>> >>
> org.eclipse.hyades.automation.client.AutomationClient$Defaul t.execute(Automa
>> >> tionClient.java:160)
>> >>> at
>> >>>
>> >>
> org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
>> >> xecute(AutomationClientAdapter.java:168)
>> >>> at
>> >>>
>> >>
> org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter.e
>> >> xecute(AutomationClientAdapter.java:147)
>> >>> at
>> >>>
>> >>
> org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Au
>> >> tomation.execute(AutomationClientAdapter.java:273)
>> >>> at
>> >>>
>> >>
> org.eclipse.hyades.automation.client.adapters.ant.Automation ClientAdapter$Ex
>> >> ecution.execute(AutomationClientAdapter.java:578)
>> >>> at
>> >>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> >>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> >>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> >>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> >>> at
>> >>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> >>> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>> >>> at
>> >>>
>> >>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.j
>> >> ava:40)
>> >>> at
>> >>> org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> >>> at org.apache.tools.ant.Main.runBuild(Main.java:668)
>> >>> at org.apache.tools.ant.Main.startAnt(Main.java:187)
>> >>> at
>> >>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> >>> at
>> >>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> >>>
>> >>> BUILD FAILED
>> >>> D:\TEMP\test\test1.xml:25: java.lang.NullPointerException
>> >>>
>> >>> Total time: 0 seconds
>> >>>
>> >>>
>> >>> this is my ant script(test1.xml):
>> >>>
>> >>> <project name="TPTP Ant Tasks Test Script"
>> >>> default="test"
>> >>>
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>> >>>
>> >>> <property name="eclipse.home"
>> >>> value="D:\APPZ\eclipse32_with_TPTP_subversive"/>
>> >>>
>> >>> <description>
>> >>> This ant script tests the TPTP automation ant task client adapters
>> >>> and also can be used to test the underlying execution of TPTP
>> >> automatable
>> >>> services via the TPTP automation server
>> >>> </description>
>> >>>
>> >>> <!-- Execute TPTP test suites -->
>> >>> <target
>> >>> name="test" description="Executes TPTP Test Suites using default TPTP
>> >>> Ant
>> >>> Tasks">
>> >>>
>> >>> <!--
>> >>> Execute a TPTP test suite using the test task and providing the
>> >>> workspace
>> >>> -->
>> >>> <tptp:test
>> >>> workspace="D:\APPZ\workspace\test"
>> >>> project="guitest"
>> >>> suite="UnitTest.testsuite"
>> >>> />
>> >>>
>> >>> </target>
>> >>> </project>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>>
>
>
Previous Topic:Agent Controller Confusion
Next Topic:Problem with AC on non default port number
Goto Forum:
  


Current Time: Fri Apr 18 22:02:01 EDT 2025

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

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

Back to the top