diff options
author | Olivier Lamy <olamy@apache.org> | 2012-03-01 10:28:30 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-03-01 10:28:30 +0000 |
commit | 7aa49fd4ed5540cb44a3ce834a1d85388f38d81b (patch) | |
tree | e22679625250b510c857ed31f4c9e92a17b5ea3b | |
parent | 9b37010349781fc3cec59789c913f76706a85759 (diff) | |
download | archiva-7aa49fd4ed5540cb44a3ce834a1d85388f38d81b.tar.gz archiva-7aa49fd4ed5540cb44a3ce834a1d85388f38d81b.zip |
[MRM-1611] Uploading fail on window server.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295497 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java index 60cfc49c8..0e7464caa 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java @@ -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 ); |