You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2013/09/26 17:51:16 UTC

git commit: MARMOTTA-317: normalizing description of modules during refpack generation.

Updated Branches:
  refs/heads/develop 7de7ffe1e -> 5978d1f97


MARMOTTA-317: normalizing description of modules during refpack generation.


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/5978d1f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/5978d1f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/5978d1f9

Branch: refs/heads/develop
Commit: 5978d1f972a53f73066c7544063bedb52c61d65b
Parents: 7de7ffe
Author: Jakob Frank <ja...@apache.org>
Authored: Thu Sep 26 17:50:16 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Thu Sep 26 17:50:16 2013 +0200

----------------------------------------------------------------------
 .../org/apache/marmotta/maven/plugins/refpack/RefPackMojo.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5978d1f9/build/plugins/refpack-maven-plugin/src/main/java/org/apache/marmotta/maven/plugins/refpack/RefPackMojo.java
----------------------------------------------------------------------
diff --git a/build/plugins/refpack-maven-plugin/src/main/java/org/apache/marmotta/maven/plugins/refpack/RefPackMojo.java b/build/plugins/refpack-maven-plugin/src/main/java/org/apache/marmotta/maven/plugins/refpack/RefPackMojo.java
index b0c3c48..4b7d96d 100644
--- a/build/plugins/refpack-maven-plugin/src/main/java/org/apache/marmotta/maven/plugins/refpack/RefPackMojo.java
+++ b/build/plugins/refpack-maven-plugin/src/main/java/org/apache/marmotta/maven/plugins/refpack/RefPackMojo.java
@@ -42,6 +42,7 @@ import org.apache.maven.project.ProjectBuilder;
 import org.apache.maven.project.ProjectBuildingException;
 import org.apache.maven.project.ProjectBuildingResult;
 import org.jdom2.Element;
+import org.jdom2.Text;
 import org.jdom2.output.Format;
 import org.jdom2.output.XMLOutputter;
 import org.sonatype.aether.RepositorySystem;
@@ -284,7 +285,7 @@ public class RefPackMojo extends AbstractMojo {
 
         if(pom != null && pom.getDescription() != null) {
             Element description = new Element("description");
-            description.addContent(pom.getDescription());
+            description.setText(Text.normalizeString(pom.getDescription()));
             pack.addContent(description);
         }