user62958
user62958

Reputation: 4929

cruisecontrol.net exec task

I am using the <'exec> task inside cruisecontrol.net. I am executing a .bat file and passing the arguments using <'buildArgs>. I need to pass in more than one arguments and I'm not sure what the correct syntax is. I am trying to do something like <'buildArgs>Arg1 Arg2<'/buildArgs> but it doesn't work.

Upvotes: 1

Views: 2722

Answers (1)

Shiraz Bhaiji
Shiraz Bhaiji

Reputation:

Try this:

  <exec>
    <executable>YourBatFile.cmd</executable>
    <buildArgs>Arg1 Arg2</buildArgs>
  </exec>

Then read the values in your bat file using %1 and %2

Upvotes: 4

Related Questions