jvanzyl 01/09/02 14:10:29
Modified: proposal/maven/src/java/org/apache/maven/bean Project.java
proposal/maven/src/java/org/apache/maven/digester
ModuleDigester.java
Log:
- pick off the name of jar produced by building a project
Revision Changes Path
1.4 +26 -1
jakarta-alexandria/proposal/maven/src/java/org/apache/maven/bean/Project.java
Index: Project.java
===================================================================
RCS file:
/home/cvs/jakarta-alexandria/proposal/maven/src/java/org/apache/maven/bean/Project.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Project.java 2001/09/02 19:44:28 1.3
+++ Project.java 2001/09/02 21:10:29 1.4
@@ -7,7 +7,7 @@
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: Project.java,v 1.3 2001/09/02 19:44:28 jvanzyl Exp $
+ * @version $Id: Project.java,v 1.4 2001/09/02 21:10:29 jvanzyl Exp $
*/
public class Project
extends BaseMavenBean
@@ -17,6 +17,7 @@
private Module parentModule;
private String buildFile = "build.xml";
private Map properties;
+ private String jar;
public Project()
{
@@ -25,6 +26,30 @@
properties = new HashMap();
}
+ /**
+ * Set the name of the JAR produced by building
+ * this project. This includes path information
+ * that is relative to the root of the projects'
+ * CVS layout.
+ *
+ * @param String name of jar
+ */
+ public void setJar(String jar)
+ {
+ this.jar = jar;
+ }
+
+ /**
+ * Get the name of the JAR produced by building
+ * this project.
+ *
+ * @return String name of jar
+ */
+ public String getJar()
+ {
+ return jar;
+ }
+
public void addProperty(String property)
{
properties.put(property, property);
1.3 +6 -2
jakarta-alexandria/proposal/maven/src/java/org/apache/maven/digester/ModuleDigester.java
Index: ModuleDigester.java
===================================================================
RCS file:
/home/cvs/jakarta-alexandria/proposal/maven/src/java/org/apache/maven/digester/ModuleDigester.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ModuleDigester.java 2001/09/02 19:41:11 1.2
+++ ModuleDigester.java 2001/09/02 21:10:29 1.3
@@ -11,7 +11,7 @@
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: ModuleDigester.java,v 1.2 2001/09/02 19:41:11 jvanzyl Exp $
+ * @version $Id: ModuleDigester.java,v 1.3 2001/09/02 21:10:29 jvanzyl Exp $
*/
public class ModuleDigester
extends Digester
@@ -157,7 +157,11 @@
addCallMethod("module/project/ant/depend", "addProperty", 1);
addCallParam("module/project/ant/depend", 0, "property");
-
+
+ // Jar: relative to the root of the project directory.
+ addCallMethod("module/project/jar", "setJar", 1);
+ addCallParam("module/project/jar", 0, "name");
+
// Mark this digester as having been configured
configured = true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]