1 | public Mapper createMapper() throws BuildException {↵ | | 1 | public Mapper createMapper() throws BuildException {↵
|
2 | if (mapperElement != null) {↵ | | 2 | if (mapperElement != null) {↵
|
3 | throw new BuildException("Cannot define more than one mapper",↵ | | 3 | throw new BuildException(ERROR_MULTIPLE_MAPPERS,↵
|
4 | getLocation());↵ | | 4 | getLocation());↵
|
5 | }↵ | | 5 | }↵
|
6 | mapperElement = new Mapper(getProject());↵ | | 6 | mapperElement = new Mapper(getProject());↵
|
7 | return mapperElement;↵ | | 7 | return mapperElement;↵
|
8 | }↵ | | 8 | }↵
|
|
9 | /**↵ | | 9 | /**↵
|
10 | * Add a nested filenamemapper.↵ | | 10 | * A nested filenamemapper↵
|
11 | * @param fileNameMapper the mapper to add.↵ | | 11 | * @param fileNameMapper the mapper to add↵
|
12 | * @since Ant 1.6.3↵ | | 12 | * @since Ant 1.6.3↵
|
13 | */↵ | | 13 | */↵
|
14 | public void add(FileNameMapper fileNameMapper) {↵ | | 14 | public void add(FileNameMapper fileNameMapper) {↵
|
15 | createMapper().add(fileNameMapper) | | 15 | createMapper().add(fileNameMapper)
|