summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-03-16 23:32:49 +0000
committerOlivier Lamy <olamy@apache.org>2012-03-16 23:32:49 +0000
commit59e77fb4d6d299de2cfe6a54ef3f810d6f212c96 (patch)
treef5bacc684fd1a979c5d501e28dd16baa9a78e48e /archiva-modules/archiva-web/archiva-webapp
parent3e389d5e5f2da1bdf3a23a6796563443caea08e8 (diff)
downloadarchiva-59e77fb4d6d299de2cfe6a54ef3f810d6f212c96.tar.gz
archiva-59e77fb4d6d299de2cfe6a54ef3f810d6f212c96.zip
fix windauze unit test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1301822 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java6
1 files changed, 3 insertions, 3 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 15380233f..fccc0ffd0 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,13 +306,13 @@ public class UploadAction
String artifactPath = repository.toPath( artifactReference );
- log.debug( "artifactPath:{}", artifactPath );
-
- int lastIndex = artifactPath.lastIndexOf( File.separatorChar );
+ int lastIndex = artifactPath.lastIndexOf( '/' );
String path = artifactPath.substring( 0, lastIndex );
File targetPath = new File( repoConfig.getLocation(), path );
+ log.debug( "artifactPath: {} found targetPath: {}", artifactPath, targetPath );
+
Date lastUpdatedTimestamp = Calendar.getInstance().getTime();
int newBuildNumber = -1;
String timestamp = null;