1 package org.codehaus.mojo.wagon;
2
3 import java.util.List;
4
5 import org.apache.maven.plugins.annotations.Mojo;
6 import org.apache.maven.wagon.Wagon;
7 import org.apache.maven.wagon.WagonException;
8
9
10
11
12 @Mojo( name = "list" , requiresProject = false)
13 public class ListMojo
14 extends AbstractWagonListMojo
15 {
16
17 @Override
18 protected void execute( Wagon wagon )
19 throws WagonException
20 {
21 List files = wagonDownload.getFileList( wagon, this.getWagonFileSet(), this.getLog() );
22
23 for ( Object file1 : files )
24 {
25 String file = (String) file1;
26 getLog().info( "\t" + file );
27 }
28 }
29 }