Peek inside the StingText.properties to make sure the version in the properties matches the build version.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5185 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
kshakir 2011-02-03 18:07:55 +00:00
parent 5c3198520c
commit b1ff371c8f
1 changed files with 18 additions and 4 deletions

View File

@ -263,13 +263,27 @@
</scalac>
</target>
<target name="init.extracthelp" depends="init,gatk.compile">
<target name="init.extracthelp" depends="gatk.compile">
<loadfile property="properties.version" srcfile="${basedir}/${resource.path}" failonerror="false" quiet="true">
<filterchain>
<linecontains>
<contains value="org.broadinstitute.sting.gatk.CommandLineGATK.version"/>
</linecontains>
<tokenfilter>
<replaceregex pattern="^.*\.(.*?)$" replace="\1"/>
</tokenfilter>
<striplinebreaks/>
</filterchain>
</loadfile>
<condition property="uptodate.extracthelp">
<or>
<isset property="disable.help"/>
<uptodate targetfile="${basedir}/${resource.path}">
<srcfiles refid="java.class.files"/>
</uptodate>
<and>
<uptodate targetfile="${basedir}/${resource.path}">
<srcfiles refid="java.class.files"/>
</uptodate>
<equals arg1="${properties.version}" arg2="${build.version}" />
</and>
</or>
</condition>
</target>