110111112113114115116117
public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapperElement = new Mapper(getProject()); return mapperElement; }
104105106107108109110111
public Mapper createMapper() throws BuildException { if (mapper != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapper = new Mapper(getProject()); return mapper; }
225226227228229230231232
129130131132133134135136
469470471472473474475476477478479
references.add(reference); } public Mapper createMapper() { if (mapper == null) { return mapper = new Mapper(getProject()); } else { throw new BuildException("Only one mapper element is allowed" + " per referenceSet", getLocation()); } }
478479480481482483484485486487488489490
} } /** configure a single mapper to translate reference IDs */ public void setMapper(String typeName, String from, String to) { Mapper mapper = createMapper(); Mapper.MapperType type = new Mapper.MapperType(); type.setValue(typeName); mapper.setType(type); mapper.setFrom(from); mapper.setTo(to); }
416417418419420421422423424
* Add a nested filenamemapper. * @param fileNameMapper the mapper to add. * @since Ant 1.6.3 */ public void add(FileNameMapper fileNameMapper) { Mapper m = new Mapper(getProject()); m.add(fileNameMapper); addMapper(m); }
8990919293949596
*/ public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException("Cannot define more than one mapper"); } mapperElement = new Mapper(getProject()); return mapperElement; }
6162636465666768
352353354355356357358359