ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xav...@apache.org
Subject svn commit: r689046 - /ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyReportTest.java
Date Tue, 26 Aug 2008 12:21:54 GMT
Author: xavier
Date: Tue Aug 26 05:21:53 2008
New Revision: 689046

URL: http://svn.apache.org/viewvc?rev=689046&view=rev
Log:
enable again xsl transformation for test with circular dependency

Modified:
    ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyReportTest.java

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyReportTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyReportTest.java?rev=689046&r1=689045&r2=689046&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyReportTest.java (original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyReportTest.java Tue Aug 26 05:21:53
2008
@@ -185,21 +185,26 @@
     }
 
     public void testRegularCircular() throws Exception {
-        project.setProperty("ivy.dep.file", "test/repositories/2/mod11.1/ivy-1.0.xml");
-        IvyResolve res = new IvyResolve();
-        res.setProject(project);
-        res.execute();
+        Locale oldLocale = Locale.getDefault();
+        
+        try {
+            // set the locale to UK as workaround for SUN bug 6240963
+            Locale.setDefault(Locale.UK);
 
-        report.setTodir(new File(cache, "report"));
-        report.setXml(true);
-
-        // do not test any xsl transformation here, because of problems of build in our continuous
-        // integration server
-        report.setXsl(false);
-        report.setGraph(false);
-
-        report.execute();
-
-        assertTrue(new File(cache, "report/org11-mod11.1-compile.xml").exists());
+            project.setProperty("ivy.dep.file", "test/repositories/2/mod11.1/ivy-1.0.xml");
+            IvyResolve res = new IvyResolve();
+            res.setProject(project);
+            res.execute();
+    
+            report.setTodir(new File(cache, "report"));
+            report.setXml(true);
+    
+            report.execute();
+    
+            assertTrue(new File(cache, "report/org11-mod11.1-compile.xml").exists());
+            assertTrue(new File(cache, "report/org11-mod11.1-compile.html").exists());
+        } finally {
+            Locale.setDefault(oldLocale);
+        }
     }
 }



Mime
View raw message