开发者

How Ant script execute command for each file

开发者 https://www.devze.com 2022-12-28 06:26 出处:网络
I would like to use ant script set readonly for each file in the directory but exec doesn\'t allow filelist:

I would like to use ant script set readonly for each file in the directory

but exec doesn't allow filelist:

<target name="readonly">
    <exec executable="attrib +r"&开发者_如何学JAVAgt;
        <fileset dir="${reset.root.dir}">
            <include name="**/*" />
        </fileset>      
    </exec>
</target> 

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


Try using the apply task instead of exec, it supports <fileset>.

0

精彩评论

暂无评论...
验证码 换一张
取 消