aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-converter/src
diff options
context:
space:
mode:
authorMartin Stockhammer <martin.stockhammer@ars.de>2017-09-08 17:12:01 +0200
committerMartin Stockhammer <martin.stockhammer@ars.de>2017-09-08 17:12:01 +0200
commit413b6d7f1a1a65974ea04f14b48be53e439de936 (patch)
tree0343b1bd683202b27aeb57ef97983cbe054f6d2b /archiva-modules/archiva-base/archiva-converter/src
parent9148a900ee09096aa24a674687912574e6cc16f3 (diff)
downloadarchiva-413b6d7f1a1a65974ea04f14b48be53e439de936.tar.gz
archiva-413b6d7f1a1a65974ea04f14b48be53e439de936.zip
Migrating transaction module to java.nio
Diffstat (limited to 'archiva-modules/archiva-base/archiva-converter/src')
-rw-r--r--archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java b/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java
index 9e0c49c59..f6a17a661 100644
--- a/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java
+++ b/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java
@@ -215,7 +215,7 @@ public class LegacyToDefaultConverter
}
if ( force || !matching )
{
- transaction.createFile( contents, targetFile.toFile( ), digesters );
+ transaction.createFile( contents, targetFile, digesters );
}
}
else
@@ -247,7 +247,7 @@ public class LegacyToDefaultConverter
MavenXpp3Writer xpp3Writer = new MavenXpp3Writer();
xpp3Writer.write( writer, v4Model );
- transaction.createFile( writer.toString(), targetFile.toFile(), digesters );
+ transaction.createFile( writer.toString(), targetFile, digesters );
List<String> warnings = translator.getWarnings();
@@ -359,7 +359,7 @@ public class LegacyToDefaultConverter
{
if ( testChecksums( artifact, sourceFile ) )
{
- transaction.copyFile( sourceFile.toFile(), targetFile.toFile(), digesters );
+ transaction.copyFile( sourceFile, targetFile, digesters );
}
else
{
@@ -557,7 +557,7 @@ public class LegacyToDefaultConverter
mappingWriter.write( writer, metadata );
- transaction.createFile( writer.toString(), file.toFile(), digesters );
+ transaction.createFile( writer.toString(), file, digesters );
}
catch ( IOException e )
{
@@ -645,7 +645,7 @@ public class LegacyToDefaultConverter
MavenXpp3Writer pomWriter = new MavenXpp3Writer();
pomWriter.write( strWriter, pom );
- transaction.createFile( strWriter.toString(), pomFile.toFile(), digesters );
+ transaction.createFile( strWriter.toString(), pomFile, digesters );
}
private void addWarning( Artifact artifact, String message )