jvanzyl 2002/07/17 14:31:59
Modified: src/java/org/apache/maven/project Project.java
Log:
o Add write methods for most properties so that new child<extends>parent
mechanism works.
Revision Changes Path
1.31 +58 -17
jakarta-turbine-maven/src/java/org/apache/maven/project/Project.java
Index: Project.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Project.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- Project.java 28 Jun 2002 01:59:35 -0000 1.30
+++ Project.java 17 Jul 2002 21:31:59 -0000 1.31
@@ -175,7 +175,12 @@
* with the distribution objects.
*/
private HashMap versionMap;
-
+
+ /**
+ * POM to extend.
+ */
+ private String pomToExtend;
+
/**
* Default constructor.
*/
@@ -188,14 +193,24 @@
versions = new ArrayList();
//distributionMap = new HashMap();
}
-
+
+ public void setExtend(String pomToExtend)
+ {
+ this.pomToExtend = pomToExtend;
+ }
+
+ public String getExtend()
+ {
+ return pomToExtend;
+ }
+
/**
* Set the site address where the documentation lives.
*
* @param siteAddress the hostname of the web server that hosts the
* project's web site (ex: "jakarta.apache.org")
*/
- public void setSiteAddress(String siteAddress)
+ public void setSiteAddress(String siteAddress)
{
this.siteAddress = siteAddress;
}
@@ -258,6 +273,14 @@
{
dependencies.add(dependency);
}
+
+ /**
+ * Set dependencies.
+ */
+ public void setDependencies(List dependencies)
+ {
+ this.dependencies = dependencies;
+ }
/**
* @return the dependencies for this project
@@ -294,6 +317,14 @@
{
mailingLists.add(mailingList);
}
+
+ /**
+ * Set mailing lists.
+ */
+ public void setMailingLists(List mailingLists)
+ {
+ this.mailingLists = mailingLists;
+ }
/**
* Return the mailing lists for this project.
@@ -303,7 +334,7 @@
public List getMailingLists()
{
return mailingLists;
- }
+ }
/**
* Add a developer to this project.
@@ -315,6 +346,11 @@
developers.add(developer);
}
+ public void setDevelopers(List developers)
+ {
+ this.developers = developers;
+ }
+
/**
* Return the developers for this project.
*
@@ -324,6 +360,14 @@
{
return developers;
}
+
+ /**
+ * Set contributors.
+ */
+ public void setContributors(List contributors)
+ {
+ this.contributors = contributors;
+ }
/**
* Add a contributor to this project.
@@ -531,17 +575,6 @@
return pomVersion;
}
- /**
- * A helper method for various clients.
- * @return the pom version as an integer.
- * @throws NumberFormatException if {@link #getPomVersion} doesn't return
- * a well formatted number
- */
- public int getPomVersionAsInt()
- {
- return Integer.parseInt(getPomVersion());
- }
-
/**
* Is the pom up to date?
*
@@ -551,7 +584,7 @@
*/
public boolean isPomCurrent()
{
- return getPomVersionAsInt() == MavenConstants.POM_VERSION;
+ return Integer.parseInt(getPomVersion()) == MavenConstants.POM_VERSION;
}
/**
@@ -595,6 +628,14 @@
{
versions.add(version);
}
+
+ /**
+ * Set the versions.
+ */
+ public void setVersions(List versions)
+ {
+ this.versions = versions;
+ }
/**
* Return the distributions for this project.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>