Author: echatellier Date: 2011-05-10 10:12:36 +0200 (Tue, 10 May 2011) New Revision: 2136 Url: http://nuiton.org/repositories/revision/nuiton-utils/2136 Log: Fix since Modified: trunk/nuiton-utils/src/main/java/org/nuiton/util/Resource.java Modified: trunk/nuiton-utils/src/main/java/org/nuiton/util/Resource.java =================================================================== --- trunk/nuiton-utils/src/main/java/org/nuiton/util/Resource.java 2011-05-10 08:06:26 UTC (rev 2135) +++ trunk/nuiton-utils/src/main/java/org/nuiton/util/Resource.java 2011-05-10 08:12:36 UTC (rev 2136) @@ -629,7 +629,7 @@ * Return true is str is a pattern (contains * or ?). * * @param str str to test - * @since 2.3 + * @since 2.2 */ static protected boolean isPattern(String str) { return str.indexOf('*') != -1 || str.indexOf('?') != -1; @@ -641,7 +641,7 @@ * @param pattern java regex style pattern to find * @return url list found * @throws IOException - * @since 2.3 + * @since 2.2 */ static public List<URL> getResources(String pattern) throws IOException { return getResources(pattern, null); @@ -654,7 +654,7 @@ * @param classLoader classLoader * @return url list found * @throws IOException - * @since 2.3 + * @since 2.2 */ static public List<URL> getResources(String pattern, ClassLoader classLoader) throws IOException { if (classLoader == null) { @@ -684,7 +684,7 @@ * @param classLoader * @return * @throws IOException - * @since 2.3 + * @since 2.2 */ static protected List<URL> getPatternRessources(String pattern, ClassLoader classLoader) throws IOException { @@ -733,7 +733,7 @@ * * @param url url to test * @return true if url denote a jar file - * @since 2.3 + * @since 2.2 */ public static boolean isJarUrl(URL url) { String protocol = url.getProtocol(); @@ -754,7 +754,7 @@ * @return the Set of matching Resource instances * @throws IOException in case of I/O errors * @see JarURLConnection - * @since 2.3 + * @since 2.2 */ protected static List<URL> doFindPathMatchingJarResources(URL rootDirResource, String subPattern) throws IOException { @@ -843,7 +843,7 @@ * @return the Set of matching Resource instances * @throws IOException in case of I/O errors * @see #retrieveMatchingFiles - * @since 2.3 + * @since 2.2 */ protected static List<URL> doFindMatchingFileSystemResources(URL rootDirResource, String subPattern) throws IOException { @@ -871,7 +871,7 @@ * relative to the root directory * @return the Set of matching File instances * @throws IOException if directory contents could not be retrieved - * @since 2.3 + * @since 2.2 */ protected static List<URL> retrieveMatchingFiles(File rootDir, String pattern) throws IOException { if (!rootDir.exists()) { @@ -907,7 +907,7 @@ * @param dir the current directory * @param result the Set of matching File instances to add to * @throws IOException if directory contents could not be retrieved - * @since 2.3 + * @since 2.2 */ protected static void doRetrieveMatchingFiles(String fullPattern, File dir, List<URL> result) throws IOException { if (log.isDebugEnabled()) {
participants (1)
-
echatellier@users.nuiton.org