Author: echatellier Date: 2011-06-08 16:05:35 +0200 (Wed, 08 Jun 2011) New Revision: 2149 Url: http://nuiton.org/repositories/revision/nuiton-utils/2149 Log: Add comment about grep and sed methods on windows Modified: trunk/nuiton-utils/src/main/java/org/nuiton/util/FileUtil.java Modified: trunk/nuiton-utils/src/main/java/org/nuiton/util/FileUtil.java =================================================================== --- trunk/nuiton-utils/src/main/java/org/nuiton/util/FileUtil.java 2011-06-07 20:09:12 UTC (rev 2148) +++ trunk/nuiton-utils/src/main/java/org/nuiton/util/FileUtil.java 2011-06-08 14:05:35 UTC (rev 2149) @@ -1181,6 +1181,9 @@ * * http://java.sun.com/javase/6/docs/technotes/guides/io/example/Grep.java * + * May fail on windows with error : + * The requested operation cannot be performed on a file with a user-mapped section open + * * @param searchRegex regex to search into file * @param f file to search into * @param encoding encoding to use @@ -1230,6 +1233,9 @@ /** * Java implementation for the unix grep command. * + * May fail on windows with error : + * The requested operation cannot be performed on a file with a user-mapped section open + * * @param searchRegex regex to search into file * @param rootDirectory directory to seacrh into * @param fileRegex regex for file to find in {@code rootDirectory} @@ -1257,6 +1263,9 @@ /** * Search for files matching regex in current directory. * + * May fail on windows with error : + * The requested operation cannot be performed on a file with a user-mapped section open + * * @param searchRegex regex to search into file * @param fileRegex regex for file to find in current dir * @param encoding encoding to use @@ -1279,6 +1288,9 @@ * * Oginal source code from http://kickjava.com/src/org/apache/lenya/util/SED.java.htm. * + * May fail on windows with error : + * The requested operation cannot be performed on a file with a user-mapped section open + * * @param searchRegex Prefix which shall be replaced * @param replace Prefix which is going to replace the original * @param file File which sed shall be applied @@ -1328,6 +1340,9 @@ /** * Java implementation for the unix sed command. * + * May fail on windows with error : + * The requested operation cannot be performed on a file with a user-mapped section open + * * @param searchRegex regex to search into file * @param replace string to replace matching patterns * @param rootDirectory directory to search into @@ -1350,6 +1365,9 @@ /** * Java implementation for the unix sed command. * + * May fail on windows with error : + * The requested operation cannot be performed on a file with a user-mapped section open + * * @param searchRegex regex to search into file * @param replace string to replace matching patterns * @param fileRegex regex for file to find in current dir