ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Lacoste <jerome.laco...@smartcardsystem.com>
Subject [SUBMIT] Attr, a chmod equivalent for Windows
Date Tue, 12 Jun 2001 13:34:35 GMT
Mostly based on Shiraz work, I added the change proposed by Glenn.

Here is a summary of ideas from the original mails:
- attr is a Windows only task
- attr breaks the consistency with the chmod by using specific boolean
parameters for each permissions (readonly archive system hidden)

---
I noted a little problem that may come from the ExecuteOn parent class: if
the task file argument refers to a directory, the task will do nothing and
won't complain.
I don't know if this is an expected behavior and I didn't investigate it
further yet.
---


Here's a diff versus the 1.3 version of the Ant tree.

diff -u Ant1.3/jakarta-ant-1.3/docs/manual/coretasklist.html
jakarta-ant-1.3/docs/manual/coretasklist.html
--- Ant1.3/jakarta-ant-1.3/docs/manual/coretasklist.html	Fri Mar  2 23:46:34
2001
+++ jakarta-ant-1.3/docs/manual/coretasklist.html	Tue Jun 12 15:20:54 2001
@@ -21,6 +21,7 @@
 <a href="CoreTasks/antcall.html">AntCall</a><br>
 <a href="CoreTasks/antstructure.html">AntStructure</a><br>
 <a href="CoreTasks/apply.html">Apply</a><br>
+<a href="CoreTasks/attrib.html">Attrib</a><br>
 <a href="CoreTasks/available.html">Available</a><br>
 <a href="CoreTasks/chmod.html">Chmod</a><br>
 <a href="CoreTasks/copy.html">Copy</a><br>

diff -u
Ant1.3/jakarta-ant-1.3/src/main/org/apache/tools/ant/taskdefs/defaults.prope
rties
jakarta-ant-1.3/src/main/org/apache/tools/ant/taskdefs/defaults.properties
---
Ant1.3/jakarta-ant-1.3/src/main/org/apache/tools/ant/taskdefs/defaults.prope
rties	Fri Mar  2 23:46:26 2001
+++
jakarta-ant-1.3/src/main/org/apache/tools/ant/taskdefs/defaults.properties
Tue Jun 12 14:22:22 2001
@@ -1,6 +1,7 @@
 # standard ant tasks
 mkdir=org.apache.tools.ant.taskdefs.Mkdir
 javac=org.apache.tools.ant.taskdefs.Javac
+attrib=org.apache.tools.ant.taskdefs.Attrib
 chmod=org.apache.tools.ant.taskdefs.Chmod
 delete=org.apache.tools.ant.taskdefs.Delete
 copy=org.apache.tools.ant.taskdefs.Copy

New files attached:
- jakarta-ant-1.3/docs/manual/CoreTasks/attrib.html
- jakarta-ant-1.3/src/main/org/apache/tools/ant/taskdefs/Attrib.java

Cheers,

Jerome

Mime
View raw message