karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [31/35] karaf-boot git commit: Use pretty printing
Date Mon, 09 May 2016 14:48:50 GMT
Use pretty printing


Project: http://git-wip-us.apache.org/repos/asf/karaf-boot/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-boot/commit/a55895f5
Tree: http://git-wip-us.apache.org/repos/asf/karaf-boot/tree/a55895f5
Diff: http://git-wip-us.apache.org/repos/asf/karaf-boot/diff/a55895f5

Branch: refs/heads/master
Commit: a55895f532d5c3dcabb4b1d98b10449734c42ec0
Parents: af6327c
Author: Christian Schneider <chris@die-schneider.net>
Authored: Tue Apr 26 09:05:03 2016 +0200
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Tue Apr 26 09:05:03 2016 +0200

----------------------------------------------------------------------
 samples/jpa/.gitignore                                          | 1 +
 starters/karaf-boot-starter-jpa/pom.xml                         | 2 --
 .../main/java/org/apache/karaf/boot/jpa/impl/JpaProcessor.java  | 5 +++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-boot/blob/a55895f5/samples/jpa/.gitignore
----------------------------------------------------------------------
diff --git a/samples/jpa/.gitignore b/samples/jpa/.gitignore
new file mode 100644
index 0000000..c71ea97
--- /dev/null
+++ b/samples/jpa/.gitignore
@@ -0,0 +1 @@
+/.apt_generated/

http://git-wip-us.apache.org/repos/asf/karaf-boot/blob/a55895f5/starters/karaf-boot-starter-jpa/pom.xml
----------------------------------------------------------------------
diff --git a/starters/karaf-boot-starter-jpa/pom.xml b/starters/karaf-boot-starter-jpa/pom.xml
index 734714b..7a89d90 100644
--- a/starters/karaf-boot-starter-jpa/pom.xml
+++ b/starters/karaf-boot-starter-jpa/pom.xml
@@ -30,7 +30,6 @@
             <artifactId>geronimo-jpa_2.0_spec</artifactId>
             <version>1.1</version>
         </dependency>
-        <!-- 
         <dependency>
             <groupId>net.java.dev.stax-utils</groupId>
             <artifactId>stax-utils</artifactId>
@@ -42,7 +41,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-         -->
 
         <dependency>
             <groupId>junit</groupId>

http://git-wip-us.apache.org/repos/asf/karaf-boot/blob/a55895f5/starters/karaf-boot-starter-jpa/src/main/java/org/apache/karaf/boot/jpa/impl/JpaProcessor.java
----------------------------------------------------------------------
diff --git a/starters/karaf-boot-starter-jpa/src/main/java/org/apache/karaf/boot/jpa/impl/JpaProcessor.java
b/starters/karaf-boot-starter-jpa/src/main/java/org/apache/karaf/boot/jpa/impl/JpaProcessor.java
index ed52850..f257238 100644
--- a/starters/karaf-boot-starter-jpa/src/main/java/org/apache/karaf/boot/jpa/impl/JpaProcessor.java
+++ b/starters/karaf-boot-starter-jpa/src/main/java/org/apache/karaf/boot/jpa/impl/JpaProcessor.java
@@ -25,6 +25,8 @@ import org.apache.karaf.boot.jpa.PersistentUnit;
 import org.apache.karaf.boot.jpa.Property;
 import org.apache.karaf.boot.jpa.Provider;
 
+import javanet.staxutils.IndentingXMLStreamWriter;
+
 public class JpaProcessor extends AbstractProcessor {
 
     public JpaProcessor() {
@@ -60,8 +62,7 @@ public class JpaProcessor extends AbstractProcessor {
     public void process(Writer writer, Map<PersistentUnit, List<? extends AnnotationMirror>>
units) throws Exception {
         Set<String> puNames = new HashSet<String>();
         XMLOutputFactory xof =  XMLOutputFactory.newInstance();
-        //XMLStreamWriter w = new IndentingXMLStreamWriter(xof.createXMLStreamWriter(writer));
-        XMLStreamWriter w = xof.createXMLStreamWriter(writer);
+        XMLStreamWriter w = new IndentingXMLStreamWriter(xof.createXMLStreamWriter(writer));
         w.setDefaultNamespace("http://java.sun.com/xml/ns/persistence");
         w.writeStartDocument();
         w.writeStartElement("persistence");


Mime
View raw message