Topic: 请问ant中如何调批处理,exec不行 |
Print this page |
1.请问ant中如何调批处理,exec不行 | Copy to clipboard |
Posted by: jeez Posted on: 2003-05-13 10:35 rt. |
2.Re:请问ant中如何调批处理,exec不行 [Re: jeez] | Copy to clipboard |
Posted by: Jove Posted on: 2003-05-15 22:27 老大你可以试一下<apply> |
3.Re:请问ant中如何调批处理,exec不行 [Re: jeez] | Copy to clipboard |
Posted by: jeez Posted on: 2003-05-16 13:57 也不行,只能执行系统的命令。 |
4.Re:请问ant中如何调批处理,exec不行 [Re: jeez] | Copy to clipboard |
Posted by: floater Posted on: 2003-05-16 23:02 Have you checked the doc? exec is kind of killed, try use "execute". /** * Executes a given command if the os platform is appropriate. * * <p><strong>As of Ant 1.2, this class is no longer the * implementation of Ant's <exec> task - it is considered to be * dead code by the Ant developers and is unmaintained. Don't use * it.</strong></p> * @author duncan@x180.com * @author rubys@us.ibm.com * * @deprecated delegate to {@link org.apache.tools.ant.taskdefs.Execute Execute} * instead. */ |
5.Re:请问ant中如何调批处理,exec不行 [Re: jeez] | Copy to clipboard |
Posted by: jeez Posted on: 2003-05-19 11:22 I got it in the Ant FAQ: <exec dir="${data.dir}" executable="cmd" os="Windows NT"> <arg line="/c initJmsData.bat"/> </exec> Hehe,“ 踏破铁鞋无觅处,得来全不费功夫”。 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |