summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java
diff options
context:
space:
mode:
authorcarnold <[email protected]>2008-02-06 18:20:58 +0000
committercarnold <[email protected]>2008-02-06 18:20:58 +0000
commit77601bd19b2aa119c0ba42e7452f16297fc9a5fd (patch)
tree8df387639eb3aaec922f4ce570f56d1075eefe9f /src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java
parentf3766103c1d4635d42f9947457f6cd4a6584d339 (diff)
Bug 980130: Add comments to generated project files
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/cpptasks/trunk@150 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java')
-rw-r--r--src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java
index 77c0cb3..2942134 100644
--- a/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java
+++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java
@@ -87,7 +87,12 @@ public final class ProjectDef
/**
* List of dependency definitions.
*/
- private List dependencies = new ArrayList();
+ private List dependencies = new ArrayList();
+
+ /**
+ * List of comments.
+ */
+ private List comments = new ArrayList();
/**
* Constructor.
@@ -330,9 +335,8 @@ public final class ProjectDef
}
/**
- * FileSet containing project files that should be imported
- * as dependencies
- * @param dependency dependency.
+ * Add a dependency definition to the project.
+ * @param dependency dependency.
*/
public void addDependency(final DependencyDef dependency) {
dependencies.add(dependency);
@@ -343,6 +347,19 @@ public final class ProjectDef
return new ArrayList(dependencies);
}
+
+ /**
+ * Add comment for the generated project file.
+ * @param comment comment, may not be null.
+ */
+ public void addComment(final CommentDef comment) {
+ comments.add(comment);
+
+ }
+
+ public List getComments() {
+ return new ArrayList(comments);
+ }
/**
* Required by documentation generator.