continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r389230 - /maven/continuum/branches/continuum-1.0.x/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
Date Mon, 27 Mar 2006 19:36:21 GMT
Author: evenisse
Date: Mon Mar 27 11:36:19 2006
New Revision: 389230

URL: http://svn.apache.org/viewcvs?rev=389230&view=rev
Log:
Load application.xml from jar instead of file system path

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java

Modified: maven/continuum/branches/continuum-1.0.x/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java?rev=389230&r1=389229&r2=389230&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
Mon Mar 27 11:36:19 2006
@@ -95,15 +95,7 @@
     protected InputStream getConfiguration()
         throws Exception
     {
-        Reader reader = new FileReader( getTestFile( "../continuum-plexus-application/src/conf/application.xml"
) );
-
-        Properties properties = new Properties();
-
-        properties.load( new FileInputStream( getTestFile( "../continuum-plexus-application/test.properties"
) ) );
-
-        String s = IOUtil.toString( new InterpolationFilterReader( reader, properties, "@",
"@" ) );
-
-        return new ByteArrayInputStream( s.getBytes() );
+        return getClass().getResourceAsStream( "/conf/application.xml" );
     }
 
     protected void customizeContext( Context context )



Mime
View raw message