]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1611] Uploading fail on window server.
authorOlivier Lamy <olamy@apache.org>
Thu, 1 Mar 2012 10:28:30 +0000 (10:28 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 1 Mar 2012 10:28:30 +0000 (10:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295497 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java

index 60cfc49c8a801551274a0cca3ac673f206b9dfc3..0e7464caab946b486bb7a749100cacac972d9813 100644 (file)
@@ -306,7 +306,7 @@ public class UploadAction
 
             String artifactPath = repository.toPath( artifactReference );
 
-            int lastIndex = artifactPath.lastIndexOf( '/' );
+            int lastIndex = artifactPath.lastIndexOf( File.separatorChar );
 
             String path = artifactPath.substring( 0, lastIndex );
             File targetPath = new File( repoConfig.getLocation(), path );