Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 请问ant中如何调批处理,exec不行
jeez



发贴: 0
积分: 0
于 2003-05-13 10:35 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
rt.



作者 Re:请问ant中如何调批处理,exec不行 [Re:jeez]
Jove



CJSDN高级会员


发贴: 1228
积分: 194
于 2003-05-15 22:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
老大你可以试一下<apply>


准备找一份新的工作,一份新的开始.
希望在上海做一个地道的Java Developer, 仅此而已

如有合适的机会,请与我Email联系

作者 Re:请问ant中如何调批处理,exec不行 [Re:jeez]
jeez



发贴: 0
积分: 0
于 2003-05-16 13:57 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
也不行,只能执行系统的命令。



作者 Re:请问ant中如何调批处理,exec不行 [Re:jeez]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-05-16 23:02 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
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.
*/



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:请问ant中如何调批处理,exec不行 [Re:jeez]
jeez



发贴: 0
积分: 0
于 2003-05-19 11:22 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
I got it in the Ant FAQ:

<exec dir="${data.dir}" executable="cmd" os="Windows NT">
<arg line="/c initJmsData.bat"/>
</exec>

Hehe,“ 踏破铁鞋无觅处,得来全不费功夫”。





flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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