Changeset 20204


Ignore:
Timestamp:
2009-08-11T10:54:32+12:00 (15 years ago)
Author:
oranfry
Message:

added more tests to dcff task

Location:
other-projects/trunk/anttasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/anttasks/build.xml

    r20047 r20204  
    4040        <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="test.classpath"/>
    4141        <typedef name="gpv" classname="org.greenstone.anttasks.GetPropertyValue" classpathref="test.classpath"/>
    42         <typedef name="sevenzip" classname="org.greenstone.anttasks.WindowsSevenZipWrapper" classpathref="test.classpath"/>
    4342        <mkdir dir="test"/>
    4443    </target>
     
    114113        <dcff file="test/dcff4.txt" startTag="&lt;!--start--&gt;" endTag="&lt;!--end--&gt;"/>
    115114
     115        <!-- test 5 -->
     116        <copy file="src/test/dcff.txt" tofile="test/dcff5.txt"/>
     117        <dcff file="test/dcff5.txt" startTag="&lt;!--\s*if\s*(?!.*linux)[^ ]+\s*--&gt;" endTag="&lt;!--\s*/if\s*--&gt;" />
     118
     119
    116120        </target>
    117121
  • other-projects/trunk/anttasks/src/test/dcff.txt

    r20047 r20204  
    1616more text
    1717b<!--start-->row<!--end-->n
     18
     19<!-- if linux -->
     20linux stuff
     21<!-- /if -->
     22<!-- if windows -->
     23windows stuff -->
     24<!-- /if -->
     25<!-- if mac|windows -->
     26mac and windows stuff
     27<!-- /if -->
     28
    1829even more text
Note: See TracChangeset for help on using the changeset viewer.