ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8847] New: - filter token properties as values not expanded
Date Tue, 07 May 2002 02:49:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8847>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8847

filter token properties as values not expanded

           Summary: filter token properties as values not expanded
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: pauls@classware.com.au


In the target below, YEAR and VERSION are properties set using the tstamp task.

The echo task correctly expands the ${VERSION} in the message but they are left
unexpanded in the copy operations.  The tokens are replaced with the literal 
filter values, not the expanded versions.

-------
	<target name="newversion" depends="prepare">
		<echo message="version ${VERSION}"/>
		<filter token="YEAR" value="${YEAR}"/>
		<filter token="VERSION" value="${VERSION}"/>
		<copy filtering="yes"
	            file="${src}/com/neurosim/bsim/FBsim_AboutBox.java.template"
		    tofile="${src}/com/neurosim/bsim/FBsim_AboutBox.java"
		/>
	</target>
  
--- Ant output ---
C:\src\neurosim\bsim>ant newversion
Buildfile: build.xml

prepare:

newversion:
     [echo] version 020507

BUILD SUCCESSFUL

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message