You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by xa...@apache.org on 2008/02/29 12:52:39 UTC

svn commit: r632299 - in /ant/ivy/core/trunk: CHANGES.txt test/java/org/apache/ivy/core/publish/PublishEventsTest.java

Author: xavier
Date: Fri Feb 29 03:52:22 2008
New Revision: 632299

URL: http://svn.apache.org/viewvc?rev=632299&view=rev
Log:
FIX: PublishEventsTest fails when Ivy sources are located in a directory with a + (IVY-755)

Modified:
    ant/ivy/core/trunk/CHANGES.txt
    ant/ivy/core/trunk/test/java/org/apache/ivy/core/publish/PublishEventsTest.java

Modified: ant/ivy/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=632299&r1=632298&r2=632299&view=diff
==============================================================================
--- ant/ivy/core/trunk/CHANGES.txt (original)
+++ ant/ivy/core/trunk/CHANGES.txt Fri Feb 29 03:52:22 2008
@@ -61,6 +61,10 @@
 	John Williams
 	Jaroslaw Wypychowski
 
+   trunk version
+=====================================
+- FIX: PublishEventsTest fails when Ivy sources are located in a directory with a + (IVY-755)
+
    2.0.0-beta2
 =====================================
 - NEW: Introduce RepositoryManagementEngine (IVY-665)

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/core/publish/PublishEventsTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/core/publish/PublishEventsTest.java?rev=632299&r1=632298&r2=632299&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/core/publish/PublishEventsTest.java (original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/core/publish/PublishEventsTest.java Fri Feb 29 03:52:22 2008
@@ -89,10 +89,8 @@
         //setup dummy ivy and data files to test publishing.  since we're testing the engine and not the resolver,
         //we don't really care whether the file actually gets published.  we just want to make sure
         //that the engine calls the correct methods in the correct order, and fires required events.
-        String resourcePath = PublishEventsTest.class.getResource("ivy-1.0-dev.xml").getPath();
-        resourcePath = URLDecoder.decode(resourcePath, System.getProperty("file.encoding"));
-        ivyFile = new File(resourcePath);
-        assertTrue("path to ivy file found in test environment", ivyFile.exists());
+        ivyFile = new File("test/java/org/apache/ivy/core/publish/ivy-1.0-dev.xml");
+        assertTrue("path to ivy file not found in test environment", ivyFile.exists());
         //the contents of the data file don't matter.
         dataFile = File.createTempFile("ivydata", ".jar");
         dataFile.deleteOnExit();