in src/main/org/apache/ant/vss/MSVSS.java [464:495]
protected String getVersionLabel() {
if (fromLabel == null && toLabel == null) {
return "";
}
if (fromLabel != null && toLabel != null) {
if (fromLabel.length() > 31) {
fromLabel = fromLabel.substring(0, 30);
log("FromLabel is longer than 31 characters, truncated to: "
+ fromLabel, Project.MSG_WARN);
}
if (toLabel.length() > 31) {
toLabel = toLabel.substring(0, 30);
log("ToLabel is longer than 31 characters, truncated to: "
+ toLabel, Project.MSG_WARN);
}
return FLAG_VERSION_LABEL + toLabel + VALUE_FROMLABEL + fromLabel;
} else if (fromLabel != null) {
if (fromLabel.length() > 31) {
fromLabel = fromLabel.substring(0, 30);
log("FromLabel is longer than 31 characters, truncated to: "
+ fromLabel, Project.MSG_WARN);
}
return FLAG_VERSION + VALUE_FROMLABEL + fromLabel;
} else {
if (toLabel.length() > 31) {
toLabel = toLabel.substring(0, 30);
log("ToLabel is longer than 31 characters, truncated to: "
+ toLabel, Project.MSG_WARN);
}
return FLAG_VERSION_LABEL + toLabel;
}
}