gpt4 book ai didi

ant - Ant 脚本如何为每个文件执行命令

转载 作者:行者123 更新时间:2023-12-04 03:25:46 25 4
gpt4 key购买 nike

我想对目录中的每个文件使用 ant 脚本集只读

exec 不允许 filelist:

<target name="readonly">
<exec executable="attrib +r">
<fileset dir="${reset.root.dir}">
<include name="**/*" />
</fileset>
</exec>
</target>

The type doesn't support the nested "fileset" element.

最佳答案

尝试使用 apply task而不是 exec , 支持 <fileset> .

关于ant - Ant 脚本如何为每个文件执行命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2730481/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com