Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2185 - in development/main/metro: composition/test/src/main/net/dpml/composition/test unit/src/main/net/dpml/metro/unit

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2185 - in development/main/metro: composition/test/src/main/net/dpml/composition/test unit/src/main/net/dpml/metro/unit
  • Date: Fri, 01 Apr 2005 03:02:07 -0500

Author: mcconnell AT dpml.net
Date: Fri Apr 1 03:02:01 2005
New Revision: 2185

Modified:

development/main/metro/composition/test/src/main/net/dpml/composition/test/CompositionTestCase.java

development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
Log:
Resolved METRO-1 with the intermidiate application of URI uri = file.toURI();
URL url = uri.toURL();


Modified:
development/main/metro/composition/test/src/main/net/dpml/composition/test/CompositionTestCase.java
==============================================================================
---
development/main/metro/composition/test/src/main/net/dpml/composition/test/CompositionTestCase.java
(original)
+++
development/main/metro/composition/test/src/main/net/dpml/composition/test/CompositionTestCase.java
Fri Apr 1 03:02:01 2005
@@ -20,6 +20,7 @@

import java.io.File;
import java.net.URI;
+import java.net.URL;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;
@@ -121,7 +122,9 @@
try
{
File source = new File( WORK, path );
- return root.addContainmentModel( source.toURL() );
+ URI uri = source.toURI();
+ URL url = uri.toURL();
+ return root.addContainmentModel( url );
}
catch( Throwable e )
{

Modified:
development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
==============================================================================
---
development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
(original)
+++
development/main/metro/unit/src/main/net/dpml/metro/unit/CompositionTestCase.java
Fri Apr 1 03:02:01 2005
@@ -150,7 +150,8 @@
throws Exception
{
File source = new File( WORK, path );
- URL url = source.toURL();
+ URI uri = source.toURI();
+ URL url = uri.toURL();
return createContainmentModel( url );
}




  • svn commit: r2185 - in development/main/metro: composition/test/src/main/net/dpml/composition/test unit/src/main/net/dpml/metro/unit, mcconnell, 03/31/2005

Archive powered by MHonArc 2.6.24.

Top of Page