ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r882418 - /ant/sandbox/javafront/src/main/org/apache/ant/javafront/helper/JavaFrontHelper.java
Date Fri, 20 Nov 2009 05:25:12 GMT
Author: bodewig
Date: Fri Nov 20 05:25:11 2009
New Revision: 882418

URL: http://svn.apache.org/viewvc?rev=882418&view=rev
Log:
Add support for Ant trunk's ProjectHelper extensions

Modified:
    ant/sandbox/javafront/src/main/org/apache/ant/javafront/helper/JavaFrontHelper.java

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=882418&r1=882417&r2=882418&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
Nov 20 05:25:11 2009
@@ -36,6 +36,7 @@
 import org.apache.tools.ant.ProjectHelper;
 import org.apache.tools.ant.taskdefs.Javac;
 import org.apache.tools.ant.types.Path;
+import org.apache.tools.ant.types.Resource;
 import org.apache.tools.ant.util.FileUtils;
 
 /**
@@ -52,6 +53,14 @@
     private static final Pattern CLASS_NAME =
         Pattern.compile(".*?class\\s+(\\S+)\\s.*", Pattern.DOTALL);
 
+    public boolean canParseBuildFile(Resource buildFile) {
+        return buildFile.getName().endsWith(".java");
+    }
+
+    public String getDefaultBuildFile() {
+        return "Build.java";
+    }
+
     @Override
     public void parse(Project project, Object source) throws BuildException {
         if (source instanceof File) {



Mime
View raw message