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

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -