📅  最后修改于: 2020-12-26 13:49:19             🧑  作者: Mango
Ant Chmod用于更改文件权限。它仅适用于基于Unix类型内核的系统。它还允许在chmod命令期间传递的所有参数。
它直接支持所有FileSet的属性和嵌套元素。从Ant 1.6开始,它还支持嵌套文件列表。
Attribute | Description | Required |
---|---|---|
file | File name of which the permissions must be changed. | Exactly one of the two, unless nested |
dir | The directory which holds the files whose permissions must be changed. | |
perm | the new permissions. | Yes |
includes | A list of patterns of files that must be included. | No; defaults to all (**) |
excludes | A list of patterns of files that must be excluded. | No; defaults to default excludes or none if defaultexcludes is no |
defaultexcludes | It indicates whether default excludes should be used or not. | No; defaults to yes |
parallel | It process all specified files using a single chmod command. | No; defaults to true |
type | Set Either dir, file or both. | No; default is file |
maxparallel | A Limit the amount of parallelism by passing at most this many sourcefiles at once. | No; defaults to unlimited |
verbose | Whether to print a summary after execution or not. | No; defaults to false |
os | A list of Operating Systems on which the command may be executed. | No |
osfamily | OS family name. | No; defaults to unix |
通过使用以下几行,我们可以使start.sh文件可读并可执行。
使它们仅对Unix所有者具有可读性,可写性和可执行性。
使所有文件可读,可写。