On Jun 29, 2009, at 12:04 PM, asiri (SVN) wrote:
Author: asiri
Date: 2009-06-29 12:04:41 +0200 (Mon, 29 Jun 2009)
New Revision: 21686
Modified:
platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-
rendering-macro-chart/src/test/java/org/xwiki/rendering/macro/chart/
TestChartMacro.java
Log:
[misc] Removing the hard-coded directory.
Modified: platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/
xwiki-rendering-macro-chart/src/test/java/org/xwiki/rendering/macro/
chart/TestChartMacro.java
===================================================================
--- platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-
rendering-macro-chart/src/test/java/org/xwiki/rendering/macro/chart/
TestChartMacro.java 2009-06-29 09:29:03 UTC (rev 21685)
+++ platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-
rendering-macro-chart/src/test/java/org/xwiki/rendering/macro/chart/
TestChartMacro.java 2009-06-29 10:04:41 UTC (rev 21686)
@@ -38,6 +38,6 @@
*/
protected File getChartImageFile(ChartMacroParameters
parameters, String content)
{
- return new File("./target/chart.png");
+ return new File(System.getProperty("java.io.tmpdir") + "/
chart.png");
This is still bad.
Thanks
-Vincent