Author: tchemit Date: 2008-06-05 20:20:27 +0000 (Thu, 05 Jun 2008) New Revision: 85 Modified: trunk/lutinrss/pom.xml trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java trunk/lutinrss/src/test/java/org/codelutin/rss/RSSGeneratorHelperTest.java Log: lutinrss-2.3.2 : ajout methode dans RSSGenerator getFeedFile Modified: trunk/lutinrss/pom.xml =================================================================== --- trunk/lutinrss/pom.xml 2008-06-05 15:36:29 UTC (rev 84) +++ trunk/lutinrss/pom.xml 2008-06-05 20:20:27 UTC (rev 85) @@ -24,7 +24,7 @@ <packaging>war</packaging> <!--Version--> - <version>2.3.1</version> + <version>2.3.2</version> <!--Description--> <description>Servlet pouvant etre appeler depuis du JS pour recuperer un Modified: trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java =================================================================== --- trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java 2008-06-05 15:36:29 UTC (rev 84) +++ trunk/lutinrss/src/main/java/org/codelutin/rss/RSSGenerator.java 2008-06-05 20:20:27 UTC (rev 85) @@ -200,7 +200,12 @@ public FeedType getFormat() { return format; - } + } + + public File getFeedFile(String name) { + return new File(getGeneratorDirectory(),name+".xml"); + } + /** * Obtain the file from his url location. * Modified: trunk/lutinrss/src/test/java/org/codelutin/rss/RSSGeneratorHelperTest.java =================================================================== --- trunk/lutinrss/src/test/java/org/codelutin/rss/RSSGeneratorHelperTest.java 2008-06-05 15:36:29 UTC (rev 84) +++ trunk/lutinrss/src/test/java/org/codelutin/rss/RSSGeneratorHelperTest.java 2008-06-05 20:20:27 UTC (rev 85) @@ -187,7 +187,7 @@ } protected File getFeedFile() { - return new File(helper.getGeneratorDirectory(), getClass().getSimpleName() + "-" + System.nanoTime() + ".xml"); + return helper.getFeedFile(getClass().getSimpleName() + "-" + System.nanoTime()); } protected Map<Field, Object> createEntry(int number) throws MalformedURLException {