jass
jass

Reputation: 343

I'm getting the following error while running ant script, cannot run program ant createprocess error=2 the system cannot find the file specified

here i want to execute build.xml(located in the path specified), where im executing this exec task in testbuild.xml. how can i resolve this issue?

        <exec executable="ant" dir="${Build.WorkingCopyPath}/Build/src"
         resultproperty="${buildlogs}/@{corporateparam}_build.log">

- Thanks,

Upvotes: 0

Views: 2308

Answers (1)

jass
jass

Reputation: 343

the following code working fine.

  <exec executable="cmd" dir="${Build.WorkingCopyPath}/Build/src">
    <arg value="/c" />
    <arg value="ant.bat" />
  </exec>

Upvotes: 1

Related Questions