in src/main/java/org/apache/maven/plugins/ear/AbstractEarModule.java [412:435]
static String cleanArchivePath( String path )
{
if ( path == null )
{
return null;
}
// Using slashes
path = path.replace( '\\', '/' );
// Remove '/' prefix if any so that path is a relative path
if ( path.startsWith( "/" ) )
{
path = path.substring( 1, path.length() );
}
if ( path.length() > 0 && !path.endsWith( "/" ) )
{
// Adding '/' suffix to specify a path structure if it is not empty
path = path + "/";
}
return path;
}