1 | public void setTargetdir(File targetdir) {↵ | | 1 | public void setTargetdir(File targetdir) {↵
|
2 | this.targetdir = targetdir;↵ | | 2 | this.targetdir = targetdir;↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Defines the FileNameMapper to use (nested mapper element).↵ | | 5 | * Defines the FileNameMapper to use (nested mapper element).↵
|
6 | * @return a mapper to be configured↵ | | 6 | * @return a mapper to be configured↵
|
7 | * @throws BuildException if more that one mapper defined↵ | | 7 | * @throws BuildException if more that one mapper defined↵
|
8 | */↵ | | 8 | */↵
|
9 | public Mapper createMapper() throws BuildException {↵ | | 9 | public Mapper createMapper() throws BuildException {↵
|
10 | if (mapperElement != null) {↵ | | 10 | if (mapperElement != null) {↵
|
11 | throw new BuildException("Cannot define more than one mapper");↵ | | 11 | throw new BuildException("Cannot define more than one mapper");↵
|
12 | }↵ | | 12 | }↵
|
13 | mapperElement = new Mapper(getProject());↵ | | 13 | mapperElement = new Mapper(getProject());↵
|
14 | return mapperElement | | 14 | return mapperElement
|