Merge remote-tracking branch 'origin/main' into refactor_setting_of_root_cookie
This commit is contained in:
commit
a2e96cc1fa
3 changed files with 9 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue