Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

[MASSEMBLY-617] add ability to give a fileSuffix to an AbstractFileSet #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/org/codehaus/plexus/archiver/BaseFileSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public interface BaseFileSet
*/

InputStreamTransformer getStreamTransformer();


/**
* Returns the suffix
*/
String getFileSuffix();

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public abstract class AbstractFileSet<T extends AbstractFileSet>
private boolean includingEmptyDirectories = true;

private InputStreamTransformer streamTransformer = null;


private String fileSuffix;

/**
* Sets a string of patterns, which excluded files
Expand Down Expand Up @@ -178,4 +179,14 @@ public InputStreamTransformer getStreamTransformer()
{
return streamTransformer;
}

public void setFileSuffix(String fileSuffix)
{
this.fileSuffix = fileSuffix;
}

public String getFileSuffix()
{
return fileSuffix;
}
}