ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r709385 - in /ant/sandbox/javafront/src: etc/examples/EchoExamples.java main/org/apache/ant/javafront/annotations/AntProject.java main/org/apache/ant/javafront/helper/JavaFrontHelper.java
Date Fri, 31 Oct 2008 11:03:06 GMT
Author: bodewig
Date: Fri Oct 31 04:03:05 2008
New Revision: 709385

URL: http://svn.apache.org/viewvc?rev=709385&view=rev
Log:
support project descriptions

Modified:
    ant/sandbox/javafront/src/etc/examples/EchoExamples.java
    ant/sandbox/javafront/src/main/org/apache/ant/javafront/annotations/AntProject.java
    ant/sandbox/javafront/src/main/org/apache/ant/javafront/helper/JavaFrontHelper.java

Modified: ant/sandbox/javafront/src/etc/examples/EchoExamples.java
URL: http://svn.apache.org/viewvc/ant/sandbox/javafront/src/etc/examples/EchoExamples.java?rev=709385&r1=709384&r2=709385&view=diff
==============================================================================
--- ant/sandbox/javafront/src/etc/examples/EchoExamples.java (original)
+++ ant/sandbox/javafront/src/etc/examples/EchoExamples.java Fri Oct 31 04:03:05 2008
@@ -26,14 +26,14 @@
 
 import static org.apache.ant.javafront.builder.EchoBuilder.echoMessage;
 
-@AntProject(Name="lists all build files in the current directory",
+@AntProject(Description="lists all build files in the current directory",
             DefaultTarget="list")
 public class EchoExamples extends BuildFileBase {
     public EchoExamples(Project p) {
         super(p);
     }
 
-    @AntTarget
+    @AntTarget(Description="list the files in the example dir")
     public void list() {
         FileSet fs = (FileSet)
             build().tag("fileset")

Modified: ant/sandbox/javafront/src/main/org/apache/ant/javafront/annotations/AntProject.java
URL: http://svn.apache.org/viewvc/ant/sandbox/javafront/src/main/org/apache/ant/javafront/annotations/AntProject.java?rev=709385&r1=709384&r2=709385&view=diff
==============================================================================
--- ant/sandbox/javafront/src/main/org/apache/ant/javafront/annotations/AntProject.java (original)
+++ ant/sandbox/javafront/src/main/org/apache/ant/javafront/annotations/AntProject.java Fri
Oct 31 04:03:05 2008
@@ -31,4 +31,5 @@
     String Name() default "";
     String DefaultTarget() default "";
     String BaseDir() default ".";
+    String Description() default "";
 }

Modified: ant/sandbox/javafront/src/main/org/apache/ant/javafront/helper/JavaFrontHelper.java
URL: http://svn.apache.org/viewvc/ant/sandbox/javafront/src/main/org/apache/ant/javafront/helper/JavaFrontHelper.java?rev=709385&r1=709384&r2=709385&view=diff
==============================================================================
--- ant/sandbox/javafront/src/main/org/apache/ant/javafront/helper/JavaFrontHelper.java (original)
+++ ant/sandbox/javafront/src/main/org/apache/ant/javafront/helper/JavaFrontHelper.java Fri
Oct 31 04:03:05 2008
@@ -208,6 +208,9 @@
             if (projectAttributes.Name().length() > 0) {
                 targetProject.setName(projectAttributes.Name());
             }
+            if (projectAttributes.Description().length() > 0) {
+                targetProject.setDescription(projectAttributes.Description());
+            }
             if (projectAttributes.DefaultTarget().length() > 0) {
                 targetProject.setDefault(projectAttributes.DefaultTarget());
             }



Mime
View raw message