Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Antビルド スクリプトで achmod -R +w foo/に相当することをしたいと思います。
chmod -R +w foo/
これまでのところ、私はこれを使用しています:
<chmod perm="g+w"> <dirset dir="${basedir}/foo"> </dirset> <fileset dir="${basedir}/foo"> </fileset> </chmod>
ファイルとフォルダーを再帰的に含めるためにそれを書くためのよりきちんとした方法はありますか?
以下は機能します:
<chmod file="${basedir}/foo/**" perm="g+w" type="both"/>
OP と共有されるクレジット。
chmod するには、exec を使用できます。
<exec executable="chmod" dir="${basedir}/foo" failonerror="true"> <arg line="-R 0755 ." /> </exec>
クレジット