1 | void setFactoryPathRef(Reference ref) {↵ | | 1 | void ↵
|
2 | createFactoryPath().setRefid(ref↵ | | 2 | addFileset(FileSet fs) {↵
|
3 | );↵ | | 3 | createAttachments().add(fs);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Add a path to the factoryPath attribute↵ | | 6 | * Creates a Path as container for attachments. Supports any↵
|
7 | .↵ | | 7 | * filesystem resource-collections that way.↵
|
8 | * @return a path to be configured.↵ | | 8 | * @return the path to be configured.↵
|
| | | 9 | * @since Ant 1.7↵
|
9 | */↵ | | 10 | */↵
|
10 | public Path createFactoryPath() {↵ | | 11 | public Path createAttachments() {↵
|
11 | if (factoryPath == null) {↵ | | 12 | if (attachments == null) {↵
|
12 | factoryPath = new Path(getProject());↵ | | 13 | attachments = new Path(getProject());↵
|
13 | }↵ | | 14 | }↵
|
14 | return factoryPath.createPath();↵ | | 15 | return attachments.createPath();↵
|
15 | } | | 16 | }
|