mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
17.56.2021 812f12a69468d5b20fef7afc6cd82c130481e9ad
borgbutler-webapp/build.gradle
@@ -2,7 +2,24 @@
task npmBuild(type: Exec) {
    workingDir '.'
    executable 'sh'
    commandLine 'npm', 'run', 'build'
}
}
task packageWebApp(type: Zip) {
    dependsOn npmBuild
    baseName 'borgbutler-webapp'
    extension 'jar'
    destinationDir file("${projectDir}")
    from('build') {
        // optional path under which output will be visible in Java classpath, e.g. static resources path
        into 'webapp'
    }
    doLast {
        //println "**** projectDir=${projectDir}, buildDir=${buildDir}"
        mkdir "${buildDir}/libs"
        def jarFile = archiveFileName.get()
        ant.move file: "${projectDir}/${jarFile}",
                toDir: "${buildDir}/libs"
    }
}