SF.net SVN: ant-contrib: [101] branches/ant-1.7.0-upgrade

[email protected]
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Revision: 101
          http://svn.sourceforge.net/ant-contrib/?rev=101&view=rev
Author:   mattinger
Date:     2007-03-08 07:36:53 -0800 (Thu, 08 Mar 2007)

Log Message:
-----------


Modified Paths:
--------------
    branches/ant-1.7.0-upgrade/ant1.6/src/java/net/sf/antcontrib/logic/ant16/ForTask.java
    branches/ant-1.7.0-upgrade/ant1.7/.classpath
    branches/ant-1.7.0-upgrade/ant1.7/src/java/net/sf/antcontrib/logic/ant17/ForTask.java

Modified: branches/ant-1.7.0-upgrade/ant1.6/src/java/net/sf/antcontrib/logic/ant16/ForTask.java
===================================================================
--- branches/ant-1.7.0-upgrade/ant1.6/src/java/net/sf/antcontrib/logic/ant16/ForTask.java	2007-03-07 21:39:57 UTC (rev 100)
+++ branches/ant-1.7.0-upgrade/ant1.6/src/java/net/sf/antcontrib/logic/ant16/ForTask.java	2007-03-08 15:36:53 UTC (rev 101)
@@ -30,6 +30,7 @@
 import org.apache.tools.ant.taskdefs.MacroDef;
 import org.apache.tools.ant.taskdefs.MacroInstance;
 import org.apache.tools.ant.taskdefs.Parallel;
+import org.apache.tools.ant.taskdefs.Sequential;
 import org.apache.tools.ant.types.DirSet;
 import org.apache.tools.ant.types.FileSet;
 import org.apache.tools.ant.types.Path;
@@ -40,7 +41,8 @@
  * instead of a target and only works for ant >= 1.6Beta3
  * @author Peter Reilly
  * @author Matt Inger
- * @ant.task name="for"
+ * @ant.task name="for" category="logic"
+ * @since Ant 1.6
  */
 public class ForTask extends Task {
 
@@ -171,9 +173,13 @@
     }
 
     /**
+     * Defines the macro which will be executed for each loop iteration.
+     * The macro parameter indicated by the <code>param</code> attribute
+     * will be set with the current loop value.
+     * @ant.attribute group="required"
      * @return a MacroDef#NestedSequential object to be configured
      */
-    public Object createSequential() {
+    public MacroDef.NestedSequential createSequential() {
         macroDef = new MacroDef();
         macroDef.setProject(getProject());
         return macroDef.createSequential();
@@ -197,6 +203,7 @@
 
     /**
      * Set step attribute.
+     * @param stemp The increment step when using begin and end attributes.
      *
      */
     public void setStep(int step) {

Modified: branches/ant-1.7.0-upgrade/ant1.7/.classpath
===================================================================
--- branches/ant-1.7.0-upgrade/ant1.7/.classpath	2007-03-07 21:39:57 UTC (rev 100)
+++ branches/ant-1.7.0-upgrade/ant1.7/.classpath	2007-03-08 15:36:53 UTC (rev 101)
@@ -3,6 +3,7 @@
 	<classpathentry kind="src" path="src/java"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry combineaccessrules="false" kind="src" path="/ant1.6"/>
-	<classpathentry kind="lib" path="../lib/ant/jars/ant-1.7.0.jar"/>
+	<classpathentry kind="lib" path="/lib/ant/jars/ant-1.7.0.jar"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/ant1.5"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: branches/ant-1.7.0-upgrade/ant1.7/src/java/net/sf/antcontrib/logic/ant17/ForTask.java
===================================================================
--- branches/ant-1.7.0-upgrade/ant1.7/src/java/net/sf/antcontrib/logic/ant17/ForTask.java	2007-03-07 21:39:57 UTC (rev 100)
+++ branches/ant-1.7.0-upgrade/ant1.7/src/java/net/sf/antcontrib/logic/ant17/ForTask.java	2007-03-08 15:36:53 UTC (rev 101)
@@ -38,7 +38,8 @@
  * instead of a target and only works for ant >= 1.7.0
  * @author Peter Reilly
  * @author Matt Inger
- * @ant.task name="for"
+ * @ant.task name="for" category="logic"
+ * @since Ant 1.6
  */
 public class ForTask extends Task {
 
@@ -66,6 +67,11 @@
     public ForTask() {
     }
 
+    /***
+     * Add a resource collection
+     * @param resourceCollection The resource collection to add
+     * @since Ant 1.7
+     */
     public void add(ResourceCollection resourceCollection) {
     	this.resourceCollections.add(resourceCollection);
     }
@@ -142,9 +148,13 @@
     }
 
     /**
+     * Defines the macro which will be executed for each loop iteration.
+     * The macro parameter indicated by the <code>param</code> attribute
+     * will be set with the current loop value.
+     * @ant.attribute group="required"
      * @return a MacroDef#NestedSequential object to be configured
      */
-    public Object createSequential() {
+    public MacroDef.NestedSequential createSequential() {
         macroDef = new MacroDef();
         macroDef.setProject(getProject());
         return macroDef.createSequential();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.