mirror of https://github.com/apache/archiva.git
[MRM-1611] Uploading fail on window server.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9b37010349
commit
7aa49fd4ed
|
@ -306,7 +306,7 @@ public class UploadAction
|
||||||
|
|
||||||
String artifactPath = repository.toPath( artifactReference );
|
String artifactPath = repository.toPath( artifactReference );
|
||||||
|
|
||||||
int lastIndex = artifactPath.lastIndexOf( '/' );
|
int lastIndex = artifactPath.lastIndexOf( File.separatorChar );
|
||||||
|
|
||||||
String path = artifactPath.substring( 0, lastIndex );
|
String path = artifactPath.substring( 0, lastIndex );
|
||||||
File targetPath = new File( repoConfig.getLocation(), path );
|
File targetPath = new File( repoConfig.getLocation(), path );
|
||||||
|
|
Loading…
Reference in New Issue