Clone a project reference (presumably for augmentation).
Attribute | Description | Required |
cloneref | What to clone, given as a reference to an object with a publicly accessible clone() implementation. | Yes |
Assuming the clone operation is successful, the clone invocation supports any attributes and nested elements supported by the cloned type (the obvious exception is the "cloneref" attribute). Please note that modifications to cloned objects may yield unpredictable results depending on the internals of the cloned class.
Given a fileset foo:
<clone id="foo.txt" cloneref="foo"> <filename name="**/*.txt"/> </clone> <clone id="foo.nontxt" cloneref="foo"> <filename name="**/*.txt" negate="true"/> </clone>Creates filesets foo.txt and foo.nontxt, which could be put to such uses as filtering some files and not others when copying.
Copyright © 2005 The Apache Software Foundation. All rights Reserved.