From 10339686bcfe0c3076b76838ff772cdb377d27a1 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 12 Mar 2018 16:15:21 +0700 Subject: [PATCH] Support for custom build data --- build-data/BuildData.groovy | 8 ++++---- build.xml | 12 ------------ 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/build-data/BuildData.groovy b/build-data/BuildData.groovy index fce0e267..f91b99e2 100755 --- a/build-data/BuildData.groovy +++ b/build-data/BuildData.groovy @@ -7,9 +7,9 @@ import org.tukaani.xz.* // ------------------------------ UPDATE LISTS ------------------------------ // -def dir_root = project as File -def dir_website = dir_root.resolve('website') -def dir_data = dir_website.resolve('data') +def dir_root = project as File +def dir_data = data as File + // sort and check shared regex collections def dir_data_master = System.getProperty('net.filebot.data.master', 'https://raw.githubusercontent.com/filebot/data/master') @@ -46,7 +46,7 @@ reviews = reviews.sort{ it.date } def json = new groovy.json.JsonBuilder() json.call(reviews as List) -json.toPrettyString().saveAs(dir_website.resolve('reviews.json')) +json.toPrettyString().saveAs(dir_root.resolve('website/reviews.json')) log.info "Reviews: " + reviews.size() diff --git a/build.xml b/build.xml index 99a073ac..3e70dfc6 100644 --- a/build.xml +++ b/build.xml @@ -993,18 +993,6 @@ - - - - - - - - - - - -