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.
精彩评论