Support for custom build data

This commit is contained in:
Reinhard Pointner 2018-03-12 16:15:21 +07:00
parent 0b5d9a3518
commit 10339686bc
2 changed files with 4 additions and 16 deletions

View File

@ -7,9 +7,9 @@ import org.tukaani.xz.*
// ------------------------------ UPDATE LISTS ------------------------------ // // ------------------------------ UPDATE LISTS ------------------------------ //
def dir_root = project as File def dir_root = project as File
def dir_website = dir_root.resolve('website') def dir_data = data as File
def dir_data = dir_website.resolve('data')
// sort and check shared regex collections // sort and check shared regex collections
def dir_data_master = System.getProperty('net.filebot.data.master', 'https://raw.githubusercontent.com/filebot/data/master') 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() def json = new groovy.json.JsonBuilder()
json.call(reviews as List) 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() log.info "Reviews: " + reviews.size()

View File

@ -993,18 +993,6 @@
</target> </target>
<target name="upload-data" description="Upload data files" depends="init">
<release-deploy todir="${deploy.website}">
<fileset dir="${dir.website}">
<include name="data/*.xz" />
<modified>
<param name="cache.cachefile" value="${dir.cache}/scp.cache" />
</modified>
</fileset>
</release-deploy>
</target>
<target name="eclipse-properties-builder"> <target name="eclipse-properties-builder">
<exec executable="git" outputproperty="revision" failonerror="true"> <exec executable="git" outputproperty="revision" failonerror="true">
<arg line="rev-list --count master" /> <arg line="rev-list --count master" />