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
-
Have you tried the exec task in nant?
If so paste what you tried.
Igor Brejc : The "program" part is wrong, you have to put the arguments into a separate attribute "commandline". http://nant.sourceforge.net/release/latest/help/tasks/exec.htmlBevan : My understanding is that using the commandline attribute of exec is deprecated - recommended practice is to use nested arg elements instead.Igor Brejc : Nothing in the docs that says it's deprecated. It's just another form for specifying cmd line args. Sometimes you have the args specified in a custom property in your script or you build the line in the script using string concatenation. -
Questions:
- Are you sure you want to invoke an IDE as part of CC.NET build? What happens if the IDE pops up a modal dialog for some reason? You whole build run will then stall and will have to be killed by CC.NET after the timeout.
- What exactly happens when you try to invoke it? For example, if you use nant's exec task and you have set the debug mode in nant, what do you see in logs?
Igor Brejc : I suggest you first try to fix the issue without CC.NET - by running the nant script from a command line. Only once you've solved it, should you do it with CC.NET. -
It's really hard to help you with no information about what you've tried or what error messages you've received. At the very least, could you post the VB scripts and batch files that work, so we can have a go at turning them into NAnt scripts?
For what it's worth, assuming your example commandline works, here's what it would look like as a NAnt script:
<?xml version="1.0" encoding="utf-8" ?> <project xmlns="http://nant.sf.net/release/0.85/nant.xsd"> <target name="vxworks"> <exec program="D:\WindRiver\wrenv.exe"> <arg value="-p"/> <arg path="vxworks653-2.2.3"/> </exec> </target> </project>Update: Note that you'll need to amend the second argument to reflect the full path to vxworks. See the online documentation for more information.
-
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 PAUSEexe.bat is shown below
D:\WindRiver\wrenv.exe -p vxworks653-2.2.3 run PAUSEI 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
0 comments:
Post a Comment