make paths work on windows

git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2010-02-12 13:12:13 +00:00
parent c63e762e55
commit 1e4e84e15e
1 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,6 @@
package org.apache.archiva.web.test.parent;
import java.io.File;
import java.io.*;
public abstract class AbstractArtifactManagementTest
extends AbstractArchivaTest
@ -32,9 +32,15 @@ public abstract class AbstractArtifactManagementTest
public String getArtifactFilePath()
{
File f = new File( "" );
String artifactFilePath = f.getAbsolutePath();
return artifactFilePath + "/src/test/it-resources/snapshots/org/apache/maven/archiva/web/test/foo-bar/1.0-SNAPSHOT/foo-bar-1.0-SNAPSHOT.jar" ;
File f = new File( "src/test/it-resources/snapshots/org/apache/maven/archiva/web/test/foo-bar/1.0-SNAPSHOT/foo-bar-1.0-SNAPSHOT.jar" );
try
{
return f.getCanonicalPath();
}
catch ( IOException e )
{
return f.getAbsolutePath();
}
}
public String getRepositoryId()