tags:

views:

99

answers:

1

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

but exec doesnt allow 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.

+2  A: 

Try to use apply instead of exec, it supports <fileset>.

Peter Lang