/** * Create a merge mapper pointing to the specified destination file. * @param destfile <code>File</code> * @return <code>Mapper</code>. */ protected Mapper createMergeMapper(File destfile) { Mapper result = new Mapper(getProject()); result.setClassname(MergingMapper.class.getName()); result.setTo(destfile.getAbsolutePath()); return result; }
/** * Set a mapper to change property names. * @param type mapper type. * @param from source pattern. * @param to output pattern. */ public void setMapper(String type, String from, String to) { Mapper m = createMapper(); Mapper.MapperType mapperType = new Mapper.MapperType(); mapperType.setValue(type); m.setType(mapperType); m.setFrom(from); m.setTo(to); }
me.setType(globType); me.setFrom("*" + fromExtension); me.setTo("*" + toExtension);