Cruise control.NET invoking an IDE

19 views
Skip to first unread message

Maddy

unread,
Apr 3, 2009, 1:01:50 AM4/3/09
to ccnet-user
Hi,
I have an IDE named VxWorks 653 2.2.3 Development shell which needed
to be invoked all the time when i notice any change in my source
files.So i had invoked this shell through a VB scripts which invokes
two more .bat(Batch files) to get this shell popped up for
execution.Now i feel that since my IDE can be invoked by command
line,it can also be invoked through nant scripts using the statement
like

D:\WindRiver\wrenv.exe -p vxworks653-2.2.3 But what i see is that its
not at all invoking.I had tried all different ways but all turned out
to be in vain. Can anyone pls suggest me any way either in nant
scripts or in cruise control by which my IDE can be invoked.Now at
present i am using VB scripts which is a very long proceess.

Thanks and regards
Maddy

Ruben Willems

unread,
Apr 3, 2009, 2:36:16 AM4/3/09
to ccnet...@googlegroups.com
Hi

can you post your nant script?
or at least the part (nant target) that should execute the vxworks executable?


with kind regards
Ruben Willems

madhu nambiar

unread,
Apr 3, 2009, 2:42:41 AM4/3/09
to ccnet...@googlegroups.com
hi ruben,
my nant script which i had tried earlier is shown below
 

  <target name="vxworks">

   
<exec program="D:\WindRiver\wrenv.exe">
     
<arg value="-p"/>
     
<arg path="vxworks653-2.2.3"/>
   
</exec>

 
</target>

 

when i execute my nant script through the command line directly the error is shown below:
 
build:
     [exec] D:\WindRiver\wrenv.exe: package "D:\WindRiver\vxworks653-2.2.3" not
found
BUILD FAILED - 0 non-fatal error(s), 1 warning(s)
C:\BRM\nant.build(9,6):
External Program Failed: D:\WindRiver\wrenv.exe (return code was 1)
Total time: 0.2 seconds
 
Can u plz correct me if i am wrong??
 
Thanks
Maddy

Ruben Willems

unread,
Apr 3, 2009, 3:09:42 AM4/3/09
to ccnet...@googlegroups.com
Hi


I do not know what the 'vxworks653-2.2.3' is, but you did not specify it's path
-->maybe replace it with 'd:\windriver\vxworks653-2.2.3'


with kind regards
Ruben Willems


madhu nambiar

unread,
Apr 3, 2009, 3:22:24 AM4/3/09
to ccnet...@googlegroups.com
Hi ruben,
              When i execute D:\WindRiver\wrenv.exe -p vxworks653-2.2.3 from START->run,i am able to open my IDE and i had tried another one which is shown below
 
           <exec program="D:\WindRiver\wrenv.exe">
      <arg value="-p"/>
      <arg value="vxworks653-2.2.3"/>
    
    </exec>
when i execute just the nant in the command line,i dont get any errors but  it jst gets stuck up and does nothing ahead.shown below
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/BRM/nant.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build

build:
     [exec] Microsoft Windows XP [Version 5.1.2600]
     [exec] (C) Copyright 1985-2001 Microsoft Corp.
 
 
 
 
Thanks
Maddy

Ruben Willems

unread,
Apr 3, 2009, 3:40:52 AM4/3/09
to ccnet...@googlegroups.com
Hi

ok, this nant script is different than the last one

<arg value="vxworks653-2.2.3"/>
    iso
<arg path="vxworks653-2.2.3"/>


how did you call this via those vbscript files?
did you do something with process or environment variables or so?



with kind regards
Ruben Willems

madhu nambiar

unread,
Apr 3, 2009, 4:14:48 AM4/3/09
to ccnet...@googlegroups.com
yes his nant script is the latest i had used with some slight modification,but the nant is hanging and its not completing the execution.
 
my VB is shown below
 

hi my nant is now invoking the VB which is shown below

<target name="build" description="compiles the source code">
    <exec program="WScript.exe" failonerror="false" >
        <arg value="C:\ThreePartition\RunExe.vbs"/>
    </exec>
</target>

RunExe.vbs is shown below

Set WshShell = WScript.CreateObject("WScript.Shell") 
WshShell.Run "test.bat"

test.bat is shown below

CALL C:\ThreePartition\exe.bat
PAUSE

exe.bat is shown below

D:\WindRiver\wrenv.exe -p vxworks653-2.2.3 run 
PAUSE

I had called exe.bat through test.bat since when i had called the exe.bat directly in my VB it is invoking the IDE but after execution my IDE jst dissappears.I want my IDE to stay so that i could have a look at my results.

Thanks Maddy



Ruben Willems

unread,
Apr 3, 2009, 4:26:36 AM4/3/09
to ccnet...@googlegroups.com
Hi

exe.bat is

D:\WindRiver\wrenv.exe -p vxworks653-2.2.3 run 

where is the run in your nant exe?


can you try this :
<exec program="D:\WindRiver\wrenv.exe">
      <arg value="-p"/>
      <arg value="vxworks653-2.2.3"/>
      <arg value="run"/>   
 </exec>




with kind regards
Ruben Willems


madhu nambiar

unread,
Apr 3, 2009, 4:35:21 AM4/3/09
to ccnet...@googlegroups.com
Hi,
I jst tried this piece of code u had given and the output is shown below
 
Jst getting some errors
 


NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/BRM/nant.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build

build:

BUILD FAILED
C:\BRM\nant.build(8,4):
External Program Failed: D:\WindRiver\wrenv.exe (return code was -1)
Total time: 0.3 seconds.
Thanks
Maddy

Ruben Willems

unread,
Apr 3, 2009, 4:44:04 AM4/3/09
to ccnet...@googlegroups.com
hmm


with no further information from that windriver, I have no idea

when you call

D:\WindRiver\wrenv.exe -p vxworks653-2.2.3 run

on a command prompt it works as you want ?


and when you do the same call, but via nant with

<exec program="D:\WindRiver\wrenv.exe">
      <arg value="-p"/>
      <arg value="vxworks653-2.2.3"/>
      <arg value="run"/>   
 </exec>

it does not?

you also run nant from the command line, or not?
forget ccnet for the moment, you first need to get it to work via command line





with kind regards
Ruben Willems




madhu nambiar

unread,
Apr 3, 2009, 4:48:26 AM4/3/09
to ccnet...@googlegroups.com
actually in the command line when i jst type D:\WindRiver\wrenv.exe -p vxworks653-2.2.3,it opens up my IDE but with run in the end it jst opens and closes off.Infact i had run nant from the command line.If that wud be successfull then i jst thought of moving too ccnet.
evryting turns out to be the same..
 
Regards
Maddy

Ruben Willems

unread,
Apr 3, 2009, 4:57:35 AM4/3/09
to ccnet...@googlegroups.com
Hi


I would say : check the docs of the windriver stuff, maybe there is some other argument you need,



with kind regards
Ruben Willems

madhu nambiar

unread,
Apr 3, 2009, 5:22:28 AM4/3/09
to ccnet...@googlegroups.com
i shall just check them again and get back to u
 
Thanks
Maddy

Reply all
Reply to author
Forward
0 new messages