sanders 02/02/01 18:19:34
Modified: proposal/vindico/src/java/org/apache/alexandria/om Ant.java
Log:
Support for ant builds in projects
Revision Changes Path
1.4 +29 -6
jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Ant.java
Index: Ant.java
===================================================================
RCS file:
/home/cvs/jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Ant.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Ant.java 31 Jan 2002 16:56:22 -0000 1.3
+++ Ant.java 2 Feb 2002 02:19:34 -0000 1.4
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Ant.java,v
1.3 2002/01/31 16:56:22 sanders Exp $
- * $Revision: 1.3 $
- * $Date: 2002/01/31 16:56:22 $
+ * $Header:
/home/cvs/jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Ant.java,v
1.4 2002/02/02 02:19:34 sanders Exp $
+ * $Revision: 1.4 $
+ * $Date: 2002/02/02 02:19:34 $
*
* ====================================================================
*
@@ -71,12 +71,13 @@
* Ant provides ...
*
* @author <a href="mailto:[EMAIL PROTECTED]">Scott Sanders</a>
- * @version $Revision: 1.3 $ $Date: 2002/01/31 16:56:22 $
+ * @version $Revision: 1.4 $ $Date: 2002/02/02 02:19:34 $
*/
public class Ant implements IScript {
private String target;
private String basedir;
+ private String buildfile;
private HashMap properties = new HashMap();
@@ -96,6 +97,14 @@
this.basedir = basedir;
}
+ public String getBuildfile() {
+ return buildfile;
+ }
+
+ public void setBuildfile(String buildfile) {
+ this.buildfile = buildfile;
+ }
+
public void addProperty(Property property) {
properties.put(property.getName(), property);
}
@@ -115,8 +124,22 @@
}
public void build(XMLHelper helper) {
-// helper.attribute("executable", name);
-// helper.element("exec", true);
+ if (basedir != null) {
+ helper.attribute("dir", "${build.home}/" + basedir);
+ } else {
+ helper.attribute("dir", "${build.home}");
+ }
+ if (target != null) {
+ helper.attribute("target", target);
+ }
+ if (buildfile != null) {
+ helper.attribute("antfile", buildfile);
+ }
+ helper.element("ant");
+
+ //FIXME - need to pass properties here
+
+ helper.popElement();
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>