开发者

java ant: does ant build files have a @var@ parameters and how to handle them?

I downloaded a red5 ant sample project. (http://osflash.org/red5) the project contains several XML files that contain @new.project.name@ parameter:

build.xml
ivy.xml
src/logback.xml
www/WEB-INF/red5-web.properties
www/开发者_StackOverflowWEB-INF/web.xml

now.. should i edit and manually replace @new.project.name@ with the actual project name or is there something that automatically does this for me?


Ant copy task has the ability to replace those strings while running the ant build. Here for example I can replace a @BRANCH@ token:

<copy file="${basedir}/.project.base" tofile="${basedir}/.project">
<filterchain>
    <replacetokens>
        <token key="BRANCH" value="${branch}"/>
    </replacetokens>
</filterchain>
</copy>


Those look like they're meant to be replaced by the Ant <replace> task. Is it possible that build.xml contains the logic for this (and therefore also the string to be replaced)? There should also be something about this in the project documentation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜