|
Ant example source code file (scriptmapper.xml)
The scriptmapper.xml source code<project name="scriptmapper"> <import file="define.mapperresult.xml"/> <target name="testSetSingle"> <mapperresult input="" output="a"> <scriptmapper language="javascript"> self.addMappedName("a"); </scriptmapper> </mapperresult> </target> <target name="testClear"> <mapperresult input="" output="${no-results}"> <scriptmapper language="javascript"> self.addMappedName("a"); self.clear(); </scriptmapper> </mapperresult> </target> <target name="testSetMultiple"> <mapperresult input="" output="a|b"> <scriptmapper language="javascript"> self.addMappedName("a"); self.addMappedName("b"); </scriptmapper> </mapperresult> </target> <target name="testPassthrough"> <mapperresult input="a" output="A|a"> <scriptmapper language="javascript"> //relying on "a" to map to "A" on all locales. self.addMappedName(source.toUpperCase()); self.addMappedName(source.toLowerCase()); </scriptmapper> </mapperresult> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant scriptmapper.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.