diff options
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.java | 25 |
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. |