开发者

How Ant script execute command for each file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜