aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-consumers
diff options
context:
space:
mode:
authorEric Barboni <skygo@apache.org>2020-02-17 15:25:42 +0100
committerMartin <m.stockhammer@web.de>2020-02-17 22:49:18 +0100
commit23737aaa3d19a79eb9471e4e9d3e67b92b4594ef (patch)
treede802f13063d86cc35ad3b8dbff1e99eb5c60c50 /archiva-modules/archiva-base/archiva-consumers
parentb06b167a847a04b5136e9d7b6a9fa4c04d776894 (diff)
downloadarchiva-23737aaa3d19a79eb9471e4e9d3e67b92b4594ef.tar.gz
archiva-23737aaa3d19a79eb9471e4e9d3e67b92b4594ef.zip
Change configuration to handle windows path restriction
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers')
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java
index 625c4574a..8dfcdb22d 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java
@@ -19,6 +19,7 @@ package org.apache.archiva.consumers.core.repository;
* under the License.
*/
+import java.io.File;
import org.apache.archiva.metadata.model.ArtifactMetadata;
import org.apache.archiva.metadata.repository.MetadataRepository;
import org.apache.archiva.metadata.repository.RepositorySession;
@@ -163,7 +164,8 @@ public abstract class AbstractRepositoryPurgeTest
atf.setRetentionPeriod( Period.ofDays( TEST_DAYS_OLDER) );
String path = AbstractRepositoryPurgeTest.fixPath(
basePath.resolve( repoId ).toAbsolutePath().toString() );
- config.setLocation( new URI( path ) );
+ File file = new File( path );
+ config.setLocation( file.toURI() );
atf.setDeleteReleasedSnapshots( true );
atf.setRetentionCount( TEST_RETENTION_COUNT );