1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Use version-independent cache file to speed up release updates

This commit is contained in:
Reinhard Pointner 2017-01-04 03:46:30 +08:00
parent bd7eceb0a2
commit 839557ee27

View File

@ -18,7 +18,7 @@
<property name="version" value="${application.version}" /> <property name="version" value="${application.version}" />
<!-- define output paths --> <!-- define output paths -->
<property name="dir.cache" location="${basedir}/cache/${release}" /> <property name="dir.cache" location="${basedir}/cache" />
<property name="dir.release" location="${basedir}/release/${release}" /> <property name="dir.release" location="${basedir}/release/${release}" />
<property name="path.fatjar" location="${dir.dist}/${release}.jar" /> <property name="path.fatjar" location="${dir.dist}/${release}.jar" />
@ -791,12 +791,12 @@
</fileset> </fileset>
</copy> </copy>
<checksum algorithm="SHA-256" pattern="{0} {1}" todir="${dir.cache}" fileext=".sha256"> <checksum algorithm="SHA-256" pattern="{0} {1}" todir="${dir.cache}/${release}" fileext=".sha256">
<fileset dir="${dir.release}" /> <fileset dir="${dir.release}" />
</checksum> </checksum>
<concat destfile="${dir.release}/README.md" overwrite="true" eol="unix" outputencoding="utf-8"> <concat destfile="${dir.release}/README.md" overwrite="true" eol="unix" outputencoding="utf-8">
<fileset file="${dir.installer}/ant/digest.head.md" /> <fileset file="${dir.installer}/ant/digest.head.md" />
<fileset dir="${dir.cache}" includes="*.sha256" /> <fileset dir="${dir.cache}/${release}" includes="*.sha256" />
<fileset file="${dir.installer}/ant/digest.tail.md" /> <fileset file="${dir.installer}/ant/digest.tail.md" />
</concat> </concat>
</target> </target>
@ -859,7 +859,7 @@
<scp todir="${deploy.website}" trust="yes" verbose="true" sftp="true" keyfile="${deploy.keyfile}"> <scp todir="${deploy.website}" trust="yes" verbose="true" sftp="true" keyfile="${deploy.keyfile}">
<fileset dir="${dir.dist}/website"> <fileset dir="${dir.dist}/website">
<modified> <modified>
<param name="cache.cachefile" value="${dir.cache}/../scp.cache" /> <param name="cache.cachefile" value="${dir.cache}/scp.cache" />
</modified> </modified>
</fileset> </fileset>
</scp> </scp>
@ -920,7 +920,7 @@
<include name="data/*.txt" /> <include name="data/*.txt" />
<include name="data/*.xz" /> <include name="data/*.xz" />
<modified> <modified>
<param name="cache.cachefile" value="${dir.cache}/../scp.cache" /> <param name="cache.cachefile" value="${dir.cache}/scp.cache" />
</modified> </modified>
</fileset> </fileset>
</scp> </scp>