如何使用Ant检查文件夹是否存在?
我们可以检查文件是否存在,但是我们也可以为文件夹做同样的事情吗?
我收到以下错误
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)