/** * Defines the FileNameMapper to use (nested mapper element). * @return a mapper to be configured * @throws BuildException if more than one mapper defined */ public Mapper createMapper() throws BuildException { if (map != null || mapperElement != null) { throw new BuildException("Cannot define more than one mapper"); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Defines the FileNameMapper to use (nested mapper element). * @return a mapper to be configured * @throws BuildException if more than one mapper defined */ public Mapper createMapper() throws BuildException { if (map != null || mapperElement != null) { throw new BuildException("Cannot define more than one mapper"); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Define the mapper to map source to destination files. * @return a mapper to be configured. * @exception BuildException if more than one mapper is defined. */ public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Defines the FileNameMapper to use (nested mapper element). * @return a mapper to be configured * @throws BuildException if more than one mapper is defined */ public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Create a nested Mapper element to use for mapping * source files to target files. * @return <code>Mapper</code>. * @throws BuildException if more than one mapper is defined. */ public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Define the mapper to map source to destination files. * @return a mapper to be configured. * @exception BuildException if more than one mapper is defined. * @since Ant 1.8.0 */ public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Defines the mapper to map source entries to destination files. * @return a mapper to be configured * @exception BuildException if more than one mapper is defined * @since Ant1.7 */ public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException(ERROR_MULTIPLE_MAPPERS, getLocation()); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Defines the FileNameMapper to use (nested mapper element). * * @return the mapper to use for file name translations. * @throws BuildException if more than one mapper is defined. */ public Mapper createMapper() throws BuildException { if (mapper != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapper = new Mapper(getProject()); return mapper; }
/** * 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; }
/** * Create a mapper to map the property names. * @return a mapper to be configured. */ public Mapper createMapper() { assertNotReference(); if (mapper != null) { throw new BuildException("Too many <mapper>s!"); } mapper = new Mapper(getProject()); setChecked(false); return mapper; }
/** * Adds a nested filenamemapper. * @param fileNameMapper the mapper to add * @exception BuildException if more than one mapper is defined * @since Ant 1.7.0 */ public void add(final FileNameMapper fileNameMapper) throws BuildException { final Mapper mapper = new Mapper(getProject()); mapper.add(fileNameMapper); addMapper(mapper); }
/** * 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); }
/** * Define the mapper to map source to destination files. * @return a mapper to be configured. * @exception BuildException if more than one mapper is defined. */ public Mapper createMapper() throws BuildException { if (isReference()) { throw noChildrenAllowed(); } if (mapper != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } setChecked(false); mapper = new Mapper(getProject()); cachedColl = null; return mapper; }
public Mapper createMapper() throws BuildException { if (mapperElement != null) { throw new BuildException("Cannot define more than one mapper", getLocation()); } mapperElement = new Mapper(getProject()); return mapperElement; }
/** * Add a nested filenamemapper. * * @param fileNameMapper * the mapper to add. */ public void add(FileNameMapper fileNameMapper) { Mapper m = new Mapper(getProject()); m.add(fileNameMapper); addMapper(m); }