Permalink
Browse files

Adding a bookId to the parameter list for this mojo

  • Loading branch information...
1 parent 9564b4a commit d42dddfa52f11a8c306e0b5e08af60e52f82f251 @tobrien tobrien committed May 31, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/main/java/org/sonatype/book/MeshVelocityMojo.java
@@ -45,6 +45,14 @@
*/
private String bookTitle;
+ /**
+ * Book ID
+ *
+ * @parameter
+ * @required
+ */
+ private String bookId;
+
public void execute() throws MojoExecutionException {
// Create a filter for Non-hidden directories
@@ -54,6 +62,7 @@ public void execute() throws MojoExecutionException {
Properties properties = new Properties();
properties.put( "bookTitle", bookTitle);
+ properties.put( "bookId", bookId);
ContentHandler handler = new ContentHandler(fooDirFilter,
FileFilterUtils.suffixFileFilter(".html"), -1,

0 comments on commit d42dddf

Please sign in to comment.