mirror of https://github.com/FreeCol/freecol.git
Extract svn info for svn.properties with git, BR#3564452.
This commit is contained in:
parent
2a4c4d7909
commit
7f649c5298
18
build.xml
18
build.xml
|
@ -141,13 +141,29 @@
|
|||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="manifest" description="Creates the Manifest file.">
|
||||
<target name="svnproperties" unless="svn.Revision"
|
||||
description="Creates the svn properties file using svn">
|
||||
<exec executable="svn" failifexecutionfails="false"
|
||||
output="${basedir}/build/svn.properties">
|
||||
<arg value="info"/>
|
||||
<arg value="."/>
|
||||
</exec>
|
||||
<property prefix="svn" file="build/svn.properties"/>
|
||||
</target>
|
||||
|
||||
<target name="gitproperties" unless="svn.Revision"
|
||||
description="Creates the svn properties file using git">
|
||||
<exec executable="git" failifexecutionfails="false"
|
||||
output="${basedir}/build/svn.properties">
|
||||
<arg value="svn"/>
|
||||
<arg value="info"/>
|
||||
<arg value="."/>
|
||||
</exec>
|
||||
<property prefix="svn" file="build/svn.properties"/>
|
||||
</target>
|
||||
|
||||
<target name="manifest" depends="svnproperties,gitproperties"
|
||||
description="Creates the Manifest file.">
|
||||
<manifest file="${basedir}/src/MANIFEST.MF">
|
||||
<attribute name="Created-By" value="FreeCol Team"/>
|
||||
<attribute name="Main-Class" value="net.sf.freecol.FreeCol"/>
|
||||
|
|
Loading…
Reference in New Issue