ant-contrib

    0热度

    1回答

    是否可以在.zip文件中执行某些任务而不真正解压缩文件? 谢谢,

    2热度

    1回答

    如何更改Ant中的当前工作目录? Ant documentation没有<chdir>任务,在我看来,最好不要改变当前的工作目录。 但让我们假设我们仍然想这样做 - 你将如何实现这一目标?谢谢!

    0热度

    1回答

    我有一个要求,如下所示。 我有一个.properties文件(名称=值对),我从中读取几个属性。 我想检查一个特定的属性是否存在。 对于以下代码,我得到if doesn't support the "name" attribute的错误。 其中JavaProjectName,projDir是从.properties文件获取的名称。 <if name="${JavaProjectName}" exi

    0热度

    1回答

    我有一个文件有很多行,例如: aaa bbb ccc ddd eeee a111 b111 c111 d111 A222 B222 X222 Y222 Z222 FFF GGG HHH 等 我希望用蚂蚁来提取这一切子文件 aaa bbb ccc ddd eeee a111 b111 c111 d111 A222 B222 X222 Y222 Z222 FFF GGG HHH 中

    0热度

    1回答

    我的工作在一些蚂蚁的工具,下面的代码块: <trycatch> <try> <if> <equals arg1="${project.dir}" arg2=""/> <then> <fail/> </then> </if> </try> <catch> <echo>

    0热度

    1回答

    我正尝试在匹配任务的帮助下处理/跳过任务。 但我得到“误报”,当我认为它应该返回false时,匹配返回true。 以下代码是使用: <property name="moduleList" value="AP|MR"/> <echo message="ModuleList is ${moduleList}" /> ...some for loop here... <echo message="

    0热度

    1回答

    在我的财产我有一个变量定义文件: require.extensions = html, htm ,我使用如下变量: <for list="${require.extensions}" param="letter"> <sequential> <copy todir="${dir.publish.html}"> <file

    7热度

    2回答

    以上ant脚本实现if dir_is_empty then git-clone else git-fetch: <target name="update" depends="git.clone, git.fetch" /> <target name="check.dir"> <fileset dir="${dir}" id="fileset"/> <pathconvert

    0热度

    2回答

    <propertyregex property="number" input="dev01" regexp="([^a-z])" select="\0" /> <echo message="number is : ${number}"/> 预期的输出结果是:02 ,但得到的输出:0 我甚至尝试regexp="([^a-z]*)" 得到相同的输出为

    1热度

    2回答

    我想要做这样的事情 <target name="init" description="Create build directories. > <mkdir dir="bin" /> <mkdir dir="dist" /> <!-- Check for the presence of dependent JARs --> <conditio