3

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">
        <fileset dir="${reset.root.dir}">
            <include name="**/*" />
        </fileset>      
    </exec>
</target> 

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

1 Answer 1

9

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.