/** Returns the mapper to use based on nested elements or the flatten attribute. */
 private FileNameMapper getMapper() {
   FileNameMapper mapper;
   if (mapperElement != null) {
     mapper = mapperElement.getImplementation();
   } else {
     mapper = new IdentityMapper();
   }
   return mapper;
 }
Exemple #2
0
  protected void checkConfiguration() {
    super.checkConfiguration();
    if (mapperElement == null) {
      throw new BuildException("no mapper specified", location);
    }
    if (destDir == null) {
      throw new BuildException("no dest attribute specified", location);
    }

    mapper = mapperElement.getImplementation();
  }