You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2002/02/24 18:28:16 UTC
cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/project BaseObject.java Build.java
jvanzyl 02/02/24 09:28:16
Modified: src/java/org/apache/maven/project BaseObject.java Build.java
Log:
- adding javadoc
Revision Changes Path
1.4 +34 -11 jakarta-turbine-maven/src/java/org/apache/maven/project/BaseObject.java
Index: BaseObject.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/BaseObject.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BaseObject.java 21 Feb 2002 21:04:38 -0000 1.3
+++ BaseObject.java 24 Feb 2002 17:28:16 -0000 1.4
@@ -1,4 +1,5 @@
package org.apache.maven.project;
+
/* ====================================================================
* The Apache Software License, Version 1.1
*
@@ -53,37 +54,59 @@
* <http://www.apache.org/>.
*/
-/**
+ /**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
- * @version $Id: BaseObject.java,v 1.3 2002/02/21 21:04:38 jvanzyl Exp $
+ * @version $Id: BaseObject.java,v 1.4 2002/02/24 17:28:16 jvanzyl Exp $
*/
public class BaseObject
{
+ /**
+ * Display name to use for this object.
+ */
private String name;
+
+ /**
+ * Id to use for this object.
+ */
private String id;
+ /**
+ * Sets the name attribute of the BaseObject object
+ */
public void setName(String name)
- {
+ {
this.name = name;
}
-
+
+ /**
+ * Gets the name attribute of the BaseObject object
+ */
public String getName()
- {
+ {
return name;
- }
+ }
+ /**
+ * Sets the id attribute of the BaseObject object
+ */
public void setId(String id)
- {
+ {
this.id = id;
}
-
+
+ /**
+ * Gets the id attribute of the BaseObject object
+ */
public String getId()
- {
+ {
return id;
- }
+ }
+ /**
+ * Description of the Method
+ */
public String toString()
{
return name;
- }
+ }
}
1.3 +98 -19 jakarta-turbine-maven/src/java/org/apache/maven/project/Build.java
Index: Build.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Build.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Build.java 21 Feb 2002 14:09:23 -0000 1.2
+++ Build.java 24 Feb 2002 17:28:16 -0000 1.3
@@ -1,4 +1,5 @@
package org.apache.maven.project;
+
/* ====================================================================
* The Apache Software License, Version 1.1
*
@@ -58,19 +59,56 @@
/**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
- * @version $Id: Build.java,v 1.2 2002/02/21 14:09:23 jvanzyl Exp $
+ * @version $Id: Build.java,v 1.3 2002/02/24 17:28:16 jvanzyl Exp $
*/
public class Build
- extends BaseObject
+ extends BaseObject
{
+ /**
+ * Pattern set entries used to control which
+ * resources in the project's module should be placed in
+ * the distribution JAR.
+ */
private List jarResources;
+
+ /**
+ * Pattern set entries used to control which classes
+ * participate in unit testing.
+ */
private List unitTestClassEntries;
+
+ /**
+ * Pattern set entries used to control which classes
+ * participate in runtime testing.
+ */
private List runtimeTestClassEntries;
+
+ /**
+ * Path entries that control which source directories are used
+ * to compile the project.
+ */
private List sourceDirectories;
+
+ /**
+ * Path entries that control which source directories are used
+ * to compile the classes needed for unit testing.
+ */
private List testSourceDirectories;
+
+ /**
+ * Path entries that control which source directories contain
+ * aspectj sources to be compiled.
+ */
private List aspectSourceDirectories;
+
+ /**
+ * JAR files that are produced by this project.
+ */
private List jars;
-
+
+ /**
+ * Constructor for the Build object
+ */
public Build()
{
jarResources = new ArrayList();
@@ -80,76 +118,117 @@
testSourceDirectories = new ArrayList();
aspectSourceDirectories = new ArrayList();
jars = new ArrayList();
- }
+ }
+ /**
+ * Adds a feature to the JarResource attribute of the Build object
+ */
public void addJarResource(String jarResource)
{
jarResources.add(jarResource);
}
-
+
+ /**
+ * Gets the jarResources attribute of the Build object
+ */
public List getJarResources()
{
return jarResources;
- }
+ }
+ /**
+ * Adds a feature to the UnitTestClassEntry attribute of the Build object
+ */
public void addUnitTestClassEntry(String unitTestClassEntry)
{
unitTestClassEntries.add(unitTestClassEntry);
}
-
+
+ /**
+ * Gets the unitTestClassEntries attribute of the Build object
+ */
public List getUnitTestClassEntries()
{
return unitTestClassEntries;
- }
+ }
+ /**
+ * Adds a feature to the RuntimeTestClassEntry attribute of the Build object
+ */
public void addRuntimeTestClassEntry(String runtimeTestClassEntry)
{
runtimeTestClassEntries.add(runtimeTestClassEntry);
}
-
+
+ /**
+ * Gets the runtimeTestClassEntries attribute of the Build object
+ */
public List getRuntimeTestClassEntries()
{
return runtimeTestClassEntries;
- }
+ }
+ /**
+ * Adds a feature to the SourceDirectory attribute of the Build object
+ */
public void addSourceDirectory(String sourceDirectory)
{
sourceDirectories.add(sourceDirectory);
}
-
+
+ /**
+ * Gets the sourceDirectories attribute of the Build object
+ */
public List getSourceDirectories()
{
return sourceDirectories;
- }
+ }
+ /**
+ * Adds a feature to the TestSourceDirectory attribute of the Build object
+ */
public void addTestSourceDirectory(String testSourceDirectory)
{
testSourceDirectories.add(testSourceDirectory);
}
-
+
+ /**
+ * Gets the testSourceDirectories attribute of the Build object
+ */
public List getTestSourceDirectories()
{
return testSourceDirectories;
- }
+ }
+ /**
+ * Adds a feature to the AspectSourceDirectory attribute of the Build object
+ */
public void addAspectSourceDirectory(String aspectSourceDirectory)
{
aspectSourceDirectories.add(aspectSourceDirectory);
}
-
+
+ /**
+ * Gets the aspectSourceDirectories attribute of the Build object
+ */
public List getAspectSourceDirectories()
{
return aspectSourceDirectories;
- }
+ }
+ /**
+ * Adds a feature to the Jar attribute of the Build object
+ */
public void addJar(String jar)
{
jars.add(jar);
}
-
+
+ /**
+ * Gets the jars attribute of the Build object
+ */
public List getJars()
{
return jars;
- }
-
+ }
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>