Hi to all,
I was very pleased to see the symlink task added to ant head, but notice that you only consider Unix to have the ability to make symlinks.
You should also add iSeries (as/400) which has a file system, named IFS, which support symlink.
Also a caracteristic of this OS is that it's IFS file system is case unsensitive (� la Mac or Windows)
AntFile = antfile = ANTFILE....
Here's the patch ;)
Index: docs/manual/CoreTasks/chmod.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/chmod.html,v
retrieving revision 1.9
diff -u -r1.9 chmod.html
--- docs/manual/CoreTasks/chmod.html 22 Jun 2002 23:38:27 -0000 1.9
+++ docs/manual/CoreTasks/chmod.html 7 Nov 2002 10:17:44 -0000
@@ -9,7 +9,7 @@
<h2><a name="chmod">Chmod</a></h2>
<h3>Description</h3>
-<p>Changes the permissions of a file or all files inside specified
directories. Right now it has effect only under Unix.
+<p>Changes the permissions of a file or all files inside specified
directories. Right now it has effect only under Unix and iSeries (OS/400).
The permissions are also UNIX style, like the argument for the chmod
command.</p>
<p>See the section on <a href="../dirtasks.html#directorybasedtasks">directory
based
tasks</a>, on how the inclusion/exclusion of files works, and how to
Index: docs/manual/CoreTasks/copy.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/copy.html,v
retrieving revision 1.13
diff -u -r1.13 copy.html
--- docs/manual/CoreTasks/copy.html 4 Sep 2002 11:05:16 -0000 1.13
+++ docs/manual/CoreTasks/copy.html 7 Nov 2002 10:17:44 -0000
@@ -171,7 +171,7 @@
</copy>
</pre>
-<p><strong>Unix Note:</strong> File permissions are not retained when files
+<p><strong>Unix and iSeries Note:</strong> File permissions are not retained
when files
are copied; they end up with the default <code>UMASK</code> permissions
instead. This
is caused by the lack of any means to query or set file permissions in the
Index: docs/manual/CoreTypes/fileset.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTypes/fileset.html,v
retrieving revision 1.15
diff -u -r1.15 fileset.html
--- docs/manual/CoreTypes/fileset.html 4 Sep 2002 11:05:17 -0000 1.15
+++ docs/manual/CoreTypes/fileset.html 7 Nov 2002 10:17:44 -0000
@@ -78,7 +78,7 @@
<p><a name="symlink"><b>Note</b></a>: All files/directories for which
the canonical path is different from its path are considered symbolic
-links. On Unix systems this usually means the file really is a
+links. On Unix and iSeries (OS/400) systems this usually means the file
really is a
symbolic links but it may lead to false results on other
platforms.</p>
Index: docs/manual/OptionalTasks/ftp.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/ftp.html,v
retrieving revision 1.15
diff -u -r1.15 ftp.html
--- docs/manual/OptionalTasks/ftp.html 31 Oct 2002 07:29:31 -0000 1.15
+++ docs/manual/OptionalTasks/ftp.html 7 Nov 2002 10:17:44 -0000
@@ -113,7 +113,7 @@
<tr>
<td valign="top">umask</td>
<td valign="top">sets the default file permissions for new files,
- unix only.</td>
+ unix and iSeries (OS/400) only.</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
Index: docs/manual/OptionalTasks/symlink.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/symlink.html,v
retrieving revision 1.1
diff -u -r1.1 symlink.html
--- docs/manual/OptionalTasks/symlink.html 6 Nov 2002 15:07:23 -0000
1.1
+++ docs/manual/OptionalTasks/symlink.html 7 Nov 2002 10:17:44 -0000
@@ -9,7 +9,7 @@
<h2><a name="symlink">Symlink</a></h2>
<h3>Description</h3>
-<p> Manages symbolic links on Unix based platforms. Can be used to
+<p> Manages symbolic links on Unix based platforms and iSeries (OS/400). Can
be used to
make an individual link, delete a link, create multiple links from properties
files,
or create properties files describing links in the specified directories.
Existing links are not overwritten by default.
Index: testcases/org/apache/tools/ant/DirectoryScannerTest.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/DirectoryScannerTest.java,v
retrieving revision 1.6
diff -u -r1.6 DirectoryScannerTest.java
--- testcases/org/apache/tools/ant/DirectoryScannerTest.java 9 Jul 2002
21:06:15 -0000 1.6
+++ testcases/org/apache/tools/ant/DirectoryScannerTest.java 7 Nov 2002
10:42:51 -0000
@@ -72,7 +72,7 @@
public DirectoryScannerTest(String name) {super(name);}
// keep track of what operating systems are supported here.
- private boolean supportsSymlinks = Os.isFamily("unix")
+ private boolean supportsSymlinks = (Os.isFamily("unix") ||
Os.isFamily("os/400"))
&& !JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1);
/**
Index: testcases/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java,v
retrieving revision 1.1
diff -u -r1.1 SymlinkTest.java
--- testcases/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java
6 Nov 2002 15:07:23 -0000 1.1
+++ testcases/org/apache/tools/ant/taskdefs/optional/unix/SymlinkTest.java
7 Nov 2002 10:42:51 -0000
@@ -84,7 +84,7 @@
public class SymlinkTest extends BuildFileTest {
private Project p;
- private boolean supportsSymlinks = Os.isFamily("unix");
+ private boolean supportsSymlinks = (Os.isFamily("unix") ||
Os.isFamily("os/400"));
private boolean testfail = false;
public SymlinkTest(String name) {
Index: main/org/apache/tools/ant/taskdefs/Chmod.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Chmod.java,v
retrieving revision 1.32
diff -u -r1.32 Chmod.java
--- main/org/apache/tools/ant/taskdefs/Chmod.java 25 Jul 2002 15:21:04
-0000 1.32
+++ main/org/apache/tools/ant/taskdefs/Chmod.java 7 Nov 2002 10:42:52
-0000
@@ -256,6 +256,6 @@
}
protected boolean isValidOs() {
- return Os.isFamily("unix") && super.isValidOs();
+ return (Os.isFamily("unix") || Os.isFamily("os/400")) &&
super.isValidOs();
}
}-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
