本文主要是介绍昨天配置WANT配置了半天,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
配置文件配置了半天才弄明白 :( 读代码是件比较累的活。。。有的时候享受,有的时候 诶。。。。
以下是配置文件 没有加打包功能 只加了一个版本控制功能和编译和清除功能
<project name = "compilecode" basedir = "." default = "buildbin" >
<property name="want.master" value="%{want_master}" />
<property name="old.version" value="?{release.ini:releases:current}" />
<regexp property="old.build" text="${old.version}" pattern="^.*/.*/.([0-9]+)$" subst ="/1" />
<property name="build" value="={1 + ${old.build}}" />
<regexp property="version" text="${old.version}" pattern="/.[0-9]*$" subst=".${build}" />
<regexp property="comma.version" pattern="/." subst="," text="${version}" />
<tstamp>
<format property="when" pattern="yyyy,mm,dd,HH,nn,ss" />
<format property="date.tag" pattern="yyyy-mm-dd" />
</tstamp>
<property name="bin" value="${basedir}/bin" />
<property name="dcu" value="${basedir}/out" />
<patternset id = "sources" >
<include name = "Class/Common" />
<include name = "Class/Jedi" />
<include name = "Class/Indy" />
<include name = "../thirdParty/bsf" />
</patternset>
<target name = "compile" depends="resources" >
<dcc basedir = "." source = "bikkyclient.dpr" >
<build value = "True" />
<exeoutput path = "Bin" />
<dcuoutput path = "Out" />
<DefinitionInfo value = "False" />
<warnings value = "True" />
<map value = "none" />
<console value = "False" />
<unitPath refid = "sources" />
<includePath refid = "sources" />
<resourcePath refid = "sources" />
</dcc>
</target>
<target name="resources" depends="prepare,versioninfo" >
<brcc file="BikkyClient.rc" output="BikkyClient.res" />
</target>
<target name="clean" >
<delete dir="${dcu}/*.dcu" />
</target>
<target name="prepare" >
<echo message="version=${version}" />
<echo message="build=${build}" />
</target>
<target name="versioninfo" >
<echo message="version=${version}" />
<echo input="BikkyClient.template.rc" file="BikkyClient.rc" />
</target>
<target name="buildbin" depends="clean,compile">
<ini file="release.ini">
<write section="releases" key="current" value="${version}" />
<write section="releases" key="last_date" value="${date.tag}" />
</ini>
</target>
</project>
这篇关于昨天配置WANT配置了半天的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!