定一系列比如 <target name="init" ....
<target name="complie"..
<target name="deploy"...等等ant initant complieant delpoy加不同执行参数。
<target name="complie"..
<target name="deploy"...等等ant initant complieant delpoy加不同执行参数。
解决方案 »
- 用java如何编写像360桌面一样的程序
- JSplitPane 分割 Scrollpane 时,Scrollpane里面的Panel大小不会随着Scrollpane的大小变化。
- java的replaceAll函数问题
- JAR 手机书制作问题
- concurrenthashmap的key需要实现什么方法?
- 关于 heavy weight 和 light weight 重叠显示的问题!
- 一个窗体控制另外一个窗体,已经150分了
- 有学java的朋友愿意以前研究ImageJ吗?
- 哪位有时间控件或者是Applet(能够在java Application中使用)
- Java final与线程安全
- 两段小代码连接数据库性能的比较
- 求教:如何用ClassLoader加载.jar文件中编译好的类
<!-- 定义一个测试路进是否存在的task,结果输出为 src.present 属性 -->
<target name="detect.src.present" >
<condition property="src.present" >
<and>
<available file="${local_src_root}/src" type="dir" />
<available file="${local_src_root}/lib" type="dir" />
<available file="${local_src_root}/conf" type="dir" />
<available file="${local_src_root}/mibs" type="dir" />
<available file="${local_src_root}/data" type="dir" />
<available file="${local_src_root}/sound" type="dir" />
</and>
</condition>
</target> <!-- 先执行上面的测试,再根据 src.present 属性是否定义,决定是否执行编译 -->
<target name="compilesrc" if="src.present"
depends="detect.src.present">
<javac ………………>
</target>