Support for custom build data
This commit is contained in:
parent
0b5d9a3518
commit
10339686bc
|
@ -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()
|
||||
|
||||
|
||||
|
|
12
build.xml
12
build.xml
|
@ -993,18 +993,6 @@
|
|||
</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">
|
||||
<exec executable="git" outputproperty="revision" failonerror="true">
|
||||
<arg line="rev-list --count master" />
|
||||
|
|
Loading…
Reference in New Issue