下面的build.xml,中间那一段 应该如何写。请高人指点
<target name="GetSource">
<property name="mytime" value=""></property>
if mytime="" then mytime=now <echo message="${mytime}"/></target>
<target name="GetSource">
<property name="mytime" value=""></property>
if mytime="" then mytime=now <echo message="${mytime}"/></target>
解决方案 »
- 在 windows 下, java gui 程序, 主 Frame 关闭后, 会导致所在进程退出么
- liferay plugin 开发导出excel怎么设置head信息?
- java 如何添加图片?
- 如下情况,怎么写代码的效率更高?
- ireport-jasper:在代码里怎么设置子表的sql语句?
- 大神帮帮忙将这个代码打包成一个.jar或者一个.exe可执行文件
- jbuilder 故障,急啊!立马给分
- 关于线程调度
- 好菜的问题:用JAVA写的COBRA可以在VC或DELPHI下调用吗?
- 五个问题.....
- JavaBean JSP之间传输数值乱码的问题,在线等
- RCP中怎样实现把CoolBar或ToolBar放在两个View的中间?
<?xml version="1.0" encoding="GBK"?>
<project name="test" default="build" basedir=".">
<target name="build">
<property name="mytime" value="java"></property>
<echo message="${mytime}" />
<condition property="result">
<equals arg1="${mytime}" arg2="java" />
</condition>
<antcall target="isTrue"></antcall>
<antcall target="isFalse"></antcall>
</target>
<target name="isTrue" if="result">
<echo message="result isTrue" />
</target>
<target name="isFalse" unless="result">
<echo message="result isFalse" />
</target>
</project>修改property 值的方法,我不知道,但是并不是说这个就无法实现了,我认为可以使用env环境变量,那个变量是可以通过ant修改的http://blog.csdn.net/sunyujia/archive/2008/05/13/2443313.aspx