
org.codehaus.mojo.wagon.shared.WagonUtils Maven / Gradle / Ivy
Go to download
Maven plugin that can be used to access various operations on a given URL using a supported maven wagon. Supports
recursive upload, download, and list directory content functionality.
The newest version!
package org.codehaus.mojo.wagon.shared;
import org.codehaus.plexus.util.StringUtils;
public class WagonUtils
{
public static WagonFileSet getWagonFileSet( String fromDir, String includes, String excludes,
boolean isCaseSensitive, String toDir )
{
WagonFileSet fileSet = new WagonFileSet();
fileSet.setDirectory( fromDir );
if ( !StringUtils.isBlank( includes ) )
{
fileSet.setIncludes( StringUtils.split( includes, "," ) );
}
if ( !StringUtils.isBlank( excludes ) )
{
fileSet.setExcludes( StringUtils.split( excludes, "," ) );
}
fileSet.setCaseSensitive( isCaseSensitive );
fileSet.setOutputDirectory( toDir );
return fileSet;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy