相关疑难解决方法(0)

我有办法检查Ant(不是文件)中是否存在目录吗?

如何使用Ant检查文件夹是否存在?

我们可以检查文件是否存在,但是我们也可以为文件夹做同样的事情吗?

ant scripting build

66
推荐指数
3
解决办法
8万
查看次数

无法创建任务或输入if

我收到以下错误

      failed to create task or type target
Run Code Online (Sandbox Code Playgroud)

Linux操作系统

Ant版本是1.7.1

我必须在这个类型的ant库中包含任何jar吗?

下面是我的Build.xml代码的一部分

<target name="wrapFiles">
    <fileset dir="${proc_src_path}" id="src.sql">
        <exclude name="**/.svn/**"/>
    </fileset>  
    <echo message="Initiating Wrap" />
    <echo message="${src.sql}" />
    <pathconvert pathsep="," property="sql.files.present" refid="src.sql"/> 
    <if>
        <equals arg1="${sql.files.present}" arg2="" />
        <then>
            <echo message="No file found. Skipping Wrapping of files." />
        </then>
    <else>
        <echo message="Files found. Proceeding with wrapping of files" />
        <foreach target="wrapFile" param="toWrap">
            <path>  
                <fileset dir="${proc_src_path}" casesensitive="yes">
                    <exclude name="**/*.txt"/>
                    <exclude name="**/*.TXT"/>
                    <exclude name="**/pkg_*_spec.SQL"/>
                    <exclude name="**/pkg_*_spec.sql"/>
                    <exclude name="**/PKG_*_SPEC.sql"/>
                    <exclude name="**/PKG_*_SPEC.SQL"/>
                    <exclude name="**/*.svn/**"/>
                </fileset>          
            </path> …
Run Code Online (Sandbox Code Playgroud)

apache ant

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

ant ×2

apache ×1

build ×1

scripting ×1