CloudStack CS-14475

Atomatic addition of Apache license header broke lots of mysql files

fix DB upgrade cleanup script not get executed issue.

add "#" as comment signature in ScriptRunner.java
This commit is contained in:
frank 2012-04-13 15:32:14 -07:00
parent 88d6562dac
commit bd47cd104c

View File

@ -118,6 +118,8 @@ public class ScriptRunner {
// Do nothing
} else if (trimmedLine.length() < 1 || trimmedLine.startsWith("--")) {
// Do nothing
} else if (trimmedLine.length() < 1 || trimmedLine.startsWith("#")) {
// Do nothing
} else if (!fullLineDelimiter && trimmedLine.endsWith(getDelimiter()) || fullLineDelimiter && trimmedLine.equals(getDelimiter())) {
command.append(line.substring(0, line.lastIndexOf(getDelimiter())));
command.append(" ");