
ant脚本
文章平均质量分 76
Lena-Yang
The best way to predict the future is to invent it. if you look for it, you won’t find it.
展开
-
在ant脚本里面,打印显示项目的classpath
--> 结果,显示的内容全部在一行:print_classpath:[echo] Classpath = D:\workspace\lms\webapp\WEB-INF\lib\antlr-2.7.7.jar;D:\workspace\lms\webapp\WEB-INF\lib\aopalliance-1.0.jar;D:\workspace\lms\w原创 2012-05-10 17:56:03 · 6866 阅读 · 0 评论 -
使用ant脚本,对java web项目,编译、打包、发布部署到tomcat
javac默认使用jdk进行编译。当项目中有 T X这种类型时,ant编译不能通过。必须使用eclipse jdt进行编译。指定使用jdt进行编译,两种方法都可以。一是定义build.compiler属性:二是在javac中指定参数compiler="org.eclipse.jdt.core.JDTCompilerAdapter"。如果项目中没有那样的泛型代码,不需要指定编译原创 2012-05-10 18:15:20 · 23784 阅读 · 2 评论 -
ant 脚本里面启动、停止tomcat的两种方法
第一,在windows 命令行窗口显示tomcat控制台界面 停止tomcat <exec executable="cmd" dir="${tomcat.home}/bin" failonerror="false" output="${log.file}" append="true" > -->原创 2012-05-12 20:45:38 · 10993 阅读 · 1 评论 -
使用ANT脚本编译、打包、部署到tomcat,启动、停止tomcat
${build.time} <!-- 这个运行失败。抽空研究研究怎么回事!! echoing path=@{pathref} @{fromfile}原创 2012-05-12 20:47:30 · 6773 阅读 · 1 评论