From 6b620609589cb17174a434758b3c92d05be3b2f9 Mon Sep 17 00:00:00 2001 From: sebplorenz Date: Tue, 1 Jul 2014 12:58:55 +0200 Subject: [PATCH] Added formatter to trim class names in jqassistant-plugin.xml --- core/plugin/pom.xml | 4 +++ .../core/plugin/impl/ClassNameFormatter.java | 14 ++++++++ .../resources/META-INF/bindings/bindings.xjb | 33 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 core/plugin/src/main/java/com/buschmais/jqassistant/core/plugin/impl/ClassNameFormatter.java create mode 100644 core/plugin/src/main/resources/META-INF/bindings/bindings.xjb diff --git a/core/plugin/pom.xml b/core/plugin/pom.xml index 6bb4ecfd53..863ad9cd0b 100644 --- a/core/plugin/pom.xml +++ b/core/plugin/pom.xml @@ -14,6 +14,10 @@ org.jvnet.jaxb2.maven2 maven-jaxb2-plugin + + src/main/resources/META-INF/xsd + src/main/resources/META-INF/bindings + diff --git a/core/plugin/src/main/java/com/buschmais/jqassistant/core/plugin/impl/ClassNameFormatter.java b/core/plugin/src/main/java/com/buschmais/jqassistant/core/plugin/impl/ClassNameFormatter.java new file mode 100644 index 0000000000..34602ce59b --- /dev/null +++ b/core/plugin/src/main/java/com/buschmais/jqassistant/core/plugin/impl/ClassNameFormatter.java @@ -0,0 +1,14 @@ +package com.buschmais.jqassistant.core.plugin.impl; + +public class ClassNameFormatter { + + /** + * Trim class names read from xml jqassistant-plugin.xml. + * + * @param value + * @return + */ + public static String parseClassName(String value) { + return value.trim(); + } +} \ No newline at end of file diff --git a/core/plugin/src/main/resources/META-INF/bindings/bindings.xjb b/core/plugin/src/main/resources/META-INF/bindings/bindings.xjb new file mode 100644 index 0000000000..79321c3a4c --- /dev/null +++ b/core/plugin/src/main/resources/META-INF/bindings/bindings.xjb @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file