Update buildjar scripts to version 1.3.
This commit is contained in:
parent
8a8001e427
commit
d7c3248f9c
2 changed files with 29 additions and 2 deletions
5
buildandgit.xml
Normal file
5
buildandgit.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||||
|
<project default="buildandgit" name="sikevadb">
|
||||||
|
<!-- -->
|
||||||
|
<import file="buildjar.xml" />
|
||||||
|
</project>
|
26
buildjar.xml
26
buildjar.xml
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||||
<project default="dist" name="jarbuild">
|
<project default="dist" name="jarbuild">
|
||||||
<!--ANT 1.7 is required -->
|
<!--ANT 1.7 is required -->
|
||||||
<property name="buildjar.version" value="1.1" />
|
<property name="buildjar.version" value="1.3" />
|
||||||
<property file="build.properties" />
|
<property file="build.properties" />
|
||||||
<property name="build.dir" value="${basedir}/build" />
|
<property name="build.dir" value="${basedir}/build" />
|
||||||
<property name="build.src" value="${basedir}/src" />
|
<property name="build.src" value="${basedir}/src" />
|
||||||
|
@ -124,6 +124,28 @@
|
||||||
<copy todir="${dist.dir}/lib" overwrite="true">
|
<copy todir="${dist.dir}/lib" overwrite="true">
|
||||||
<fileset dir="lib" excludes="hamcrest-core*,junit*" />
|
<fileset dir="lib" excludes="hamcrest-core*,junit*" />
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- ***** Dist ***** -->
|
||||||
|
<target name="buildandgit" depends="dist">
|
||||||
|
<!-- GIT actions-->
|
||||||
|
<echo message="Commit build.num"/>
|
||||||
|
<exec executable="git" outputproperty="git.commit.out" failifexecutionfails="true">
|
||||||
|
<arg line="commit -m 'Build ${dist.version}' build.num"/>
|
||||||
|
</exec>
|
||||||
|
<echo message="${git.commit.out}" />
|
||||||
|
|
||||||
|
<echo message="Tag"/>
|
||||||
|
<exec executable="git" outputproperty="git.tag.out" failifexecutionfails="true">
|
||||||
|
<arg line="tag -a ${dist.version} -m 'Build ${dist.version}'"/>
|
||||||
|
</exec>
|
||||||
|
<echo message="${git.tag.out}" />
|
||||||
|
|
||||||
|
<echo message="Push"/>
|
||||||
|
<exec executable="git" outputproperty="git.push.out" failifexecutionfails="true">
|
||||||
|
<arg line="push"/>
|
||||||
|
</exec>
|
||||||
|
<echo message="${git.push.out}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in a new issue