Can changes to Linux files be modified in Ant
Is there a way to set file ownership and permissions using Ant in Linux ? I found Ant chmod
and tasks chown
, but they are only for Unix.
I am trying to add a Debian installer via Ant and ant -deb-task , and after moving all the required files to the deployment directory, I need to set their ownership and permissions.
+3
source to share
2 answers
Use the built-in Ant task chmod - http://ant.apache.org/manual/Tasks/chmod.html
Separate file:
<chmod file="${dist}/start.sh" perm="ugo+rx"/>
multiple files:
<chmod perm="g+w">
<fileset dir="shared/sources1">
<exclude name="**/trial/**"/>
</fileset>
</chmod>
+1
source to share