Further improvement of fccdf5a37b

addint properties file as input
pull/461/head
reger24 3 years ago
parent fccdf5a37b
commit 535636551a

@ -157,7 +157,7 @@ shadowJar.zip64 = true // saw build error: Execution failed for task ':shadowJar
// read values from property file generated by storeGitComInf tool // read values from property file generated by storeGitComInf tool
import org.apache.tools.ant.filters.ReplaceTokens import org.apache.tools.ant.filters.ReplaceTokens
task prepYaCyProperties (type: Copy) { task prepYaCyProperties (type: Copy) {
inputs.files(fileTree(sourceSets.main.java.srcDirs[0].name + "/net/yacy/peers/operation/yacyBuildProperties.java.template")) inputs.files('gitbuildnumber.properties', sourceSets.main.java.srcDirs[0].name + "/net/yacy/peers/operation/yacyBuildProperties.java.template")
def propfile = "gitbuildnumber.properties"; def propfile = "gitbuildnumber.properties";
if (project.file(propfile).exists()) { // must check otherwise any action may stop after clean on this error if (project.file(propfile).exists()) { // must check otherwise any action may stop after clean on this error

Loading…
Cancel
Save