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>
.
精彩评论