diff --git a/tasklist/plugin.jelly b/tasklist/plugin.jelly
index 1f8f2282..b38c47dc 100644
--- a/tasklist/plugin.jelly
+++ b/tasklist/plugin.jelly
@@ -30,6 +30,8 @@
+
@@ -40,6 +42,7 @@
destDir="${genDocs}"
template="plugin-resources/templates/tasklist.vm"
outputFile="task-list.xml"
+ encoding="${encoding}"
/>
diff --git a/tasklist/src/plugin-resources/templates/tasklist.vm b/tasklist/src/plugin-resources/templates/tasklist.vm
index 3ad137c7..e4a91954 100644
--- a/tasklist/src/plugin-resources/templates/tasklist.vm
+++ b/tasklist/src/plugin-resources/templates/tasklist.vm
@@ -1,4 +1,4 @@
-
+
diff --git a/vdoclet/plugin.jelly b/vdoclet/plugin.jelly
index d8b79f20..55653c35 100644
--- a/vdoclet/plugin.jelly
+++ b/vdoclet/plugin.jelly
@@ -16,6 +16,7 @@
destDir="${destDir}"
template="${template}"
outputFile="${outputFile}"
+ encoding="${encoding}"
/>
diff --git a/vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java b/vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java
index 98068a79..3d525ae1 100644
--- a/vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java
+++ b/vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java
@@ -25,9 +25,12 @@ public class VDocletBean
/** control template */
String template;
+ /** encoding */
+ String encoding;
+
/** verbose flag */
boolean verbose = false;
-
+
/** docinfo */
DocInfo docInfo;
@@ -62,6 +65,14 @@ public class VDocletBean
{
this.template = template;
}
+
+ /**
+ * encoding attribute
+ */
+ public void setEncoding(String encoding)
+ {
+ this.encoding = encoding;
+ }
/**
* Description of the Method
@@ -114,6 +125,10 @@ public class VDocletBean
Generator generator = new Generator(destDir);
generator.setAttribute("docInfo", docInfo);
+ if (encoding != null)
+ {
+ generator.setAttribute("encoding", encoding);
+ }
generator.eval(template, new FileWriter(new File(destDir, outputFile)));
}
}