diff --git a/code/Skin/Skin.js b/code/Skin/Skin.js index c7b18bf3..ef395a41 100644 --- a/code/Skin/Skin.js +++ b/code/Skin/Skin.js @@ -223,6 +223,9 @@ Skin.prototype.compare_action = function() { res.push(); var param = {}, leftLineNumber = rightLineNumber = 0; for (let line of diff) { + if (!line) { + continue; + } if (line.deleted) { param.right = encode(line.value); param.leftStatus = 'added'; @@ -249,7 +252,7 @@ Skin.prototype.compare_action = function() { this.renderSkin('$Skin#difference', param); } } - if (line.value !== null) { + if (line.value !== null && typeof line.value !== 'undefined') { leftLineNumber += 1; rightLineNumber += 1; param.leftLineNumber = leftLineNumber; diff --git a/db/h2.compat/db.properties b/db/h2.compat/db.properties index 7223f5bf..b1f054d0 100644 --- a/db/h2.compat/db.properties +++ b/db/h2.compat/db.properties @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -antville.url = jdbc:h2:./db/antville;ifexists=true;mode=postgresql +antville.url = jdbc:h2:./db/antville;ifexists=true;mode=postgresql;non_keywords=value antville.driver = org.h2.Driver antville.user = antville antville.password = antville diff --git a/tools/antclick/build.gradle b/tools/antclick/build.gradle index 760fcf68..d60f57df 100644 --- a/tools/antclick/build.gradle +++ b/tools/antclick/build.gradle @@ -11,7 +11,7 @@ clean { } dependencies { - implementation 'com.h2database:h2:1.4.200' + implementation 'com.h2database:h2:2.2.220' } configurations { @@ -112,9 +112,8 @@ tasks.register('installJars', Copy) { tasks.register('buildDatabase', JavaExec) { description 'Builds the H2 SQL database file.' group 'build' - dependsOn ':assemble' - def inputFile = "$antvilleInstallDir/db/postgre.sql" + def inputFile = "${project.rootDir}/db/postgre.sql" def outputDir = "$helmaInstallDir/db" inputs.file inputFile @@ -130,7 +129,7 @@ tasks.register('buildDatabase', JavaExec) { args = [ '-continueOnError', '-script', inputFile, - '-url', "jdbc:h2:$outputDir/antville", + '-url', "jdbc:h2:$outputDir/antville;mode=postgresql;non_keywords=value", '-user', 'antville', '-password', 'antville' ] @@ -165,7 +164,7 @@ task assembleDist { tasks.register('runH2Console', JavaExec) { description 'Runs the H2 SQL database console.' group 'Help' - dependsOn 'installJars' + dependsOn 'buildDatabase' def h2Jar = configurations.library.files.find { jar -> jar.name.startsWith('h2') @@ -178,9 +177,6 @@ tasks.register('runH2Console', JavaExec) { '-user', 'antville', '-password', 'antville' ] - - // standardOutput = new ByteArrayOutputStream() - // ignoreExitValue true } tasks.register('distZip', Zip) {