Author: tchemit Date: 2009-05-12 11:24:39 +0000 (Tue, 12 May 2009) New Revision: 1532 Modified: maven-nuiton-project-helper-plugin/trunk/pom.xml maven-nuiton-project-helper-plugin/trunk/src/main/java/org/nuiton/util/FileUtil.java Log: todo Modified: maven-nuiton-project-helper-plugin/trunk/pom.xml =================================================================== --- maven-nuiton-project-helper-plugin/trunk/pom.xml 2009-05-12 10:43:54 UTC (rev 1531) +++ maven-nuiton-project-helper-plugin/trunk/pom.xml 2009-05-12 11:24:39 UTC (rev 1532) @@ -10,7 +10,7 @@ <groupId>org.nuiton</groupId> <artifactId>maven-helper-plugin</artifactId> - <version>1.0.0</version> + <version>1.0.0-SNAPSHOT</version> <dependencies> @@ -38,6 +38,10 @@ <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>1.5.5</version> + <!-- + devrait etre en provided mais cela ne fonctionne pas + car enforcer-api embarque une version 1.4.2 non compatible... + --> <!--scope>provided</scope--> </dependency> Modified: maven-nuiton-project-helper-plugin/trunk/src/main/java/org/nuiton/util/FileUtil.java =================================================================== --- maven-nuiton-project-helper-plugin/trunk/src/main/java/org/nuiton/util/FileUtil.java 2009-05-12 10:43:54 UTC (rev 1531) +++ maven-nuiton-project-helper-plugin/trunk/src/main/java/org/nuiton/util/FileUtil.java 2009-05-12 11:24:39 UTC (rev 1532) @@ -29,7 +29,13 @@ import java.nio.channels.FileChannel; import org.codehaus.plexus.util.IOUtil; -/** @author chemit */ +/** + * Methodes utiles pour le traitement de fichiers. + * + * TODO utiliser l'api offert de maven : plexus-utils par exemple... + * + * @author chemit + */ public class FileUtil { /** @@ -61,7 +67,7 @@ */ static public String readAsString(File file, String encoding) throws IOException { FileInputStream inf = new FileInputStream(file); - BufferedReader in = new BufferedReader(new InputStreamReader(inf, encoding)); + BufferedReader in = new BufferedReader(new InputStreamReader(inf, encoding)); try { return IOUtil.toString(in); // return FileUtil.readAsString(r); @@ -105,5 +111,4 @@ out.write(content); out.close(); } - }