peterreilly 2005/01/20 06:30:07
Modified: src/main/org/apache/tools/ant/taskdefs Sync.java
Log:
javadoc
Revision Changes Path
1.20 +13 -2 ant/src/main/org/apache/tools/ant/taskdefs/Sync.java
Index: Sync.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Sync.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Sync.java 20 Jan 2005 13:50:56 -0000 1.19
+++ Sync.java 20 Jan 2005 14:30:07 -0000 1.20
@@ -306,7 +306,7 @@
* are not present in any source directory.
*
* <p>You must not invoke this method more than once.</p>
- *
+ * @param s a deletefromtarget nested element
* @since Ant 1.7
*/
public void addDeleteFromTarget(SyncTarget s) {
@@ -374,11 +374,22 @@
*/
public static class SyncTarget extends AbstractFileSet {
+ /**
+ * Constructor for SyncTarget.
+ * This just changes the default value of "defaultexcludes" from
+ * true to false.
+ */
public SyncTarget() {
super();
setDefaultexcludes(false);
}
+ /**
+ * Override AbstractFileSet#setDir(File) to disallow
+ * setting the directory. This is now set by #setTargetDir(File).
+ * @param dir ignored
+ * @throws BuildException always
+ */
public void setDir(File dir) throws BuildException {
throw new BuildException("synctarget doesn't support the dir "
+ "attribute");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]