diff --git a/src/main/java/org/codehaus/plexus/archiver/AbstractArchiver.java b/src/main/java/org/codehaus/plexus/archiver/AbstractArchiver.java index 239cb4b7..1de46e10 100755 --- a/src/main/java/org/codehaus/plexus/archiver/AbstractArchiver.java +++ b/src/main/java/org/codehaus/plexus/archiver/AbstractArchiver.java @@ -298,6 +298,7 @@ public void addFileSet( @Nonnull final FileSet fileSet ) collection.setCaseSensitive( fileSet.isCaseSensitive() ); collection.setUsingDefaultExcludes( fileSet.isUsingDefaultExcludes() ); collection.setStreamTransformer( fileSet.getStreamTransformer() ); + collection.setFileSuffix( fileSet.getFileSuffix() ); if ( getOverrideDirectoryMode() > -1 || getOverrideFileMode() > -1 ) { diff --git a/src/main/java/org/codehaus/plexus/archiver/BaseFileSet.java b/src/main/java/org/codehaus/plexus/archiver/BaseFileSet.java index 7eb21c1b..a43fdf91 100644 --- a/src/main/java/org/codehaus/plexus/archiver/BaseFileSet.java +++ b/src/main/java/org/codehaus/plexus/archiver/BaseFileSet.java @@ -64,6 +64,10 @@ public interface BaseFileSet */ InputStreamTransformer getStreamTransformer(); - + + /** + * Returns the suffix + */ + String getFileSuffix(); } diff --git a/src/main/java/org/codehaus/plexus/archiver/util/AbstractFileSet.java b/src/main/java/org/codehaus/plexus/archiver/util/AbstractFileSet.java index c948a53a..9b93a7f8 100644 --- a/src/main/java/org/codehaus/plexus/archiver/util/AbstractFileSet.java +++ b/src/main/java/org/codehaus/plexus/archiver/util/AbstractFileSet.java @@ -45,7 +45,8 @@ public abstract class AbstractFileSet private boolean includingEmptyDirectories = true; private InputStreamTransformer streamTransformer = null; - + + private String fileSuffix; /** * Sets a string of patterns, which excluded files @@ -178,4 +179,14 @@ public InputStreamTransformer getStreamTransformer() { return streamTransformer; } + + public void setFileSuffix(String fileSuffix) + { + this.fileSuffix = fileSuffix; + } + + public String getFileSuffix() + { + return fileSuffix; + } }