ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A Stephen" <stephen.tec...@attbi.com>
Subject New File filter
Date Sat, 01 Feb 2003 18:47:08 GMT
Example Usage:<filterreader classname="org.apache.tools.ant.filters.BeginReadFromToken">
  <param name="readfrom" value="Foo"/>
 </filterreader>Sample Original file
-------------------------Begin 3.4.1.R1--------------------------------------------
CREATE TABLE [CUSTOMER] ( 
[CUSTOMER_ID] [int] NOT NULL ,
[NAME] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[CITY] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
)
-------------------------End 3.4.1.R1-----------------------------------------------
-------------------------Begin 3.4.1.R2--------------------------------------------
ALTER TABLE CUSTOMER ADD CONSTRAINT 
PK_CUSTOMER PRIMARY KEY CLUSTERED 
( 
CUSTOMER_ID 
) ON [PRIMARY] 
-------------------------End 3.4.1.R2-----------------------------------------------
Result File using "3.4.1.R2" as token
-------------------------Begin 3.4.1.R2--------------------------------------------
ALTER TABLE CUSTOMER ADD CONSTRAINT 
PK_CUSTOMER PRIMARY KEY CLUSTERED 
( 
CUSTOMER_ID 
) ON [PRIMARY] 
-------------------------End 3.4.1.R2-----------------------------------------------

File:
src/main/org/apache/tools/ant/filters/BeginReadFromToken.java
TestCase:  
src/testcases/org/apache/tools/ant/filters/BeginReadFromTokenTest.java

Test data files: 
   src/etc/testcases/filters/expected/beginreadfrom.test (196 bytes)
   src/etc/testcases/filters/input/beginreadfrom.test (655 bytes)




Modified file:
cvs diff -w (in directory D:\Projects\Apache\jakarta-ant\src\etc\testcases\filters\)

cvs server: Diffing .

Index: build.xml

===================================================================

RCS file: /home/cvspublic/jakarta-ant/src/etc/testcases/filters/build.xml,v

retrieving revision 1.1

diff -w -r1.1 build.xml

13c13

< <copy todir="result">

---

> <copy todir="result" overwrite="true">

22a23,32

> <target name="testBeginReadFrom" depends="init">

> <copy todir="result" overwrite="true">

> <fileset dir="input"/>

> <filterchain>

> <filterreader classname="org.apache.tools.ant.filters.BeginReadFromToken">

> <param name="readfrom" value="3.4.1.R2"/>

> </filterreader>

> </filterchain>

> </copy>

> </target>

cvs server: Diffing expected

cvs server: Diffing input



Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message