I want to execute cmd file with argument, I have wrote following tag in
plugin.jelly
<goal name="maven:bdcmd" description="xczxczxkl">
<!-- execute bdcmd -->
<ant:exec executable="bdcmd.cmd" dir="${maven.exec.target}"
os="Windows XP" output="dir.txt" >
<arg line="-sub BP "/>
<arg line="-version 1 "/>
<arg line="-mode deploy"/>
</ant:exec>
</goal>
I am getting ERROR
D:\Maven1\bin>maven mcone:bdcmd
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
BUILD FAILED
File...... C:\Documents and
Settings\snatarajan2\.maven\cache\maven-webtest-plugin-0.1.0\plugin.jell
y
Element... ant:exec
Line...... 61
Column.... 106
Execute failed: java.io.IOException: CreateProcess: bdcmd.cmd -sub BP
-version 1 -mode deploy error=2
Total time: 2 seconds
Finished at: Thu Apr 21 11:27:01 GMT+05:30 2005
D:\Maven1\bin>
Anyone knows <ant:exec /> let me know
Thanks in Advance
Kumar
Confidentiality Statement:
This message is intended only for the individual or entity to which it is
addressed. It may contain privileged, confidential information which is exempt
from disclosure under applicable laws. If you are not the intended recipient,
please note that you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information. If you have received this communication in error, please notify us
immediately by return email.