in src/main/java/org/apache/maven/plugins/assembly/utils/AssemblyFormatUtils.java [385:421]
public static String getOutputDirectory(
final String output,
final String finalName,
final AssemblerConfigurationSource configSource,
FixedStringSearchInterpolator moduleProjectIntrpolator,
FixedStringSearchInterpolator artifactProjectInterpolator)
throws AssemblyFormattingException {
String value = output;
if (value == null) {
value = "";
}
final FixedStringSearchInterpolator interpolator = FixedStringSearchInterpolator.create(
finalNameInterpolator(finalName),
moduleProjectIntrpolator,
artifactProjectInterpolator,
executionPropertiesInterpolator(configSource),
configSource.getMainProjectInterpolator(),
configSource.getCommandLinePropsInterpolator(),
configSource.getEnvInterpolator());
value = interpolator.interpolate(value);
if ((value.length() > 0) && !value.endsWith("/") && !value.endsWith("\\")) {
value += "/";
}
if ((value.length() > 0) && (value.startsWith("/") || value.startsWith("\\"))) {
value = value.substring(1);
}
value = StringUtils.replace(value, "//", "/");
value = StringUtils.replace(value, "\\\\", "\\");
value = fixRelativeRefs(value);
return value;
}