Skip to content

Commit 52c2cda

Browse files
committed
[SCM-980] Remove code duplication in ListMojo
This closes #138
1 parent d7107da commit 52c2cda

File tree

1 file changed

+0
-15
lines changed
  • maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin

1 file changed

+0
-15
lines changed

maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ListMojo.java

-15
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
* under the License.
2020
*/
2121

22-
import java.io.File;
2322
import java.io.IOException;
2423

2524
import org.apache.maven.plugin.MojoExecutionException;
2625
import org.apache.maven.plugins.annotations.Mojo;
2726
import org.apache.maven.plugins.annotations.Parameter;
2827
import org.apache.maven.scm.ScmException;
2928
import org.apache.maven.scm.ScmFile;
30-
import org.apache.maven.scm.ScmFileSet;
3129
import org.apache.maven.scm.command.list.ListScmResult;
3230
import org.apache.maven.scm.repository.ScmRepository;
3331

@@ -86,18 +84,5 @@ public void execute()
8684
}
8785
}
8886

89-
public ScmFileSet getFileSet()
90-
throws IOException
91-
{
92-
if ( getIncludes() != null || getExcludes() != null )
93-
{
94-
return new ScmFileSet( getWorkingDirectory(), getIncludes(), getExcludes() );
95-
}
96-
else
97-
{
98-
return new ScmFileSet( getWorkingDirectory(), new File( "." ) );
99-
}
100-
}
101-
10287
}
10388

0 commit comments

Comments
 (0)