How do I delete read-only file in Gradle? -
How do I delete read-only files in Gradel? The following code silently ignores read-only files in the "C: \ Temp" directory:
Task cleanTempDir (type: delete) {delete the fileTree (dir: "C: \ \ Temp ")}
You can remove the flag to read before being deleted Are there.
Tasks CleanTempDir & lt; & Lt; {Ent.Trub (only: incorrect) {fileset (dir: 'C: / Temp')} Delete fileTree ('C: / Temp')}
Will work . If you want to work on Unix, then you want to use the anti's chmod
function.
ant.chmod (dir: '/ tmp', perm: 'ugo + w')
Comments
Post a Comment