diff options
author | Jean-Marie Henaff <jmhenaff@google.com> | 2015-06-24 10:24:07 +0200 |
---|---|---|
committer | Jean-Marie Henaff <jmhenaff@google.com> | 2015-06-25 11:32:25 +0200 |
commit | 7aaebee57c764df1b453ede1e1979dc5c551ca99 (patch) | |
tree | ba5b65398ed9e8aec06645cf5dcfe803b37a7780 /build.xml | |
parent | d1e46970dcc7f463b5432826c6c02d6e10c13647 (diff) | |
download | toolchain_jill-7aaebee57c764df1b453ede1e1979dc5c551ca99.zip toolchain_jill-7aaebee57c764df1b453ede1e1979dc5c551ca99.tar.gz toolchain_jill-7aaebee57c764df1b453ede1e1979dc5c551ca99.tar.bz2 |
Add version update in property files and scripts in build.xml
- Use jill-version.properties and package it in distributed jars.
- Use -Ddist.sha and -Ddist.build-id to set SHA and build ID in
those property files before packaging.
(cherry picked from commit 2cde77db74e7ae6cdac399bd068ae37b7d5ad6f3)
Change-Id: I84584c4cd8cf06c4ec50606dedaba968568370b2
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -58,6 +58,27 @@ <file name="${jill-api.dist.dir}/${jill-api-src.name}" /> </filelist> </copy> + + <mkdir dir="${jill-top-dist.dir}/tmp"/> + + <copy file="${jill-project.dir}/version.properties" tofile="${jill-top-dist.dir}/tmp/version.properties"/> + <propertyfile file="${jill-top-dist.dir}/tmp/version.properties"> + <entry key="version.sha" value="${dist.sha}"/> + <entry key="version.buildid" value="${dist.build-id}"/> + </propertyfile> + + <copy file="${jill-top-dist.dir}/tmp/version.properties" tofile="${jill-top-dist.dir}/tmp/jill-version.properties"/> + <jar destfile="${jill-top-dist.dir}/${jill.execname}" update="true" + basedir="${jill-top-dist.dir}/tmp" + includes="jill-version.properties"/> + + <copy file="${jill-top-dist.dir}/tmp/version.properties" tofile="${jill-top-dist.dir}/tmp/jill-api-version.properties"/> + <jar destfile="${jill-top-dist.dir}/${jill-api.name}" update="true" + basedir="${jill-top-dist.dir}/tmp" + includes="jill-api-version.properties"/> + + <delete dir="${jill-top-dist.dir}/tmp"/> + </target> <!-- ******************* --> |