Ignore:
Timestamp:
2008-11-12T16:08:04+13:00 (15 years ago)
Author:
oranfry
Message:

tests for the get property value task

Location:
other-projects/trunk/anttasks
Files:
1 added
1 edited

Legend:

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

    r17554 r17836  
    4040        <typedef name="dcff" classname="org.greenstone.anttasks.DeleteChunkFromFile" classpathref="test.classpath"/>
    4141        <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="test.classpath"/>
     42        <typedef name="gpv" classname="org.greenstone.anttasks.GetPropertyValue" classpathref="test.classpath"/>
    4243        <mkdir dir="test"/>
    4344    </target>
     
    4647        <antcall target="test-rsr"/>
    4748        <antcall target="test-dcff"/>
     49        <antcall target="test-gpv"/>
    4850    </target>
    4951
     
    9193    </target>
    9294
     95    <target name="test-gpv" depends="test-setup">
     96
     97        <!-- test 1 -->
     98        <gpv propertiesFile="src/test/gpv.txt"  propertyName="startmenu.path" outputProperty="gpv.startmenu.path"/>
     99        <echo>startmenu.path =  '${gpv.startmenu.path}'</echo>
     100
     101        <gpv propertiesFile="src/test/gpv.txt"  propertyName="my.second.property" outputProperty="gpv.my.second.property"/>
     102        <echo>my.second.property = '${gpv.my.second.property}'</echo>
     103
     104
     105    </target>
    93106
    94107    <target name="test-clean">
Note: See TracChangeset for help on using the changeset viewer.