Skip to content

Commit

Permalink
[SCM-980] Remove code duplication in ListMojo
Browse files Browse the repository at this point in the history
This closes #138
  • Loading branch information
michael-o committed May 22, 2022
1 parent d7107da commit 52c2cda
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
* under the License.
*/

import java.io.File;
import java.io.IOException;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.scm.ScmException;
import org.apache.maven.scm.ScmFile;
import org.apache.maven.scm.ScmFileSet;
import org.apache.maven.scm.command.list.ListScmResult;
import org.apache.maven.scm.repository.ScmRepository;

Expand Down Expand Up @@ -86,18 +84,5 @@ public void execute()
}
}

public ScmFileSet getFileSet()
throws IOException
{
if ( getIncludes() != null || getExcludes() != null )
{
return new ScmFileSet( getWorkingDirectory(), getIncludes(), getExcludes() );
}
else
{
return new ScmFileSet( getWorkingDirectory(), new File( "." ) );
}
}

}

0 comments on commit 52c2cda

Please sign in to comment.