Author: helenxu
Date: Tue Nov 20 19:55:51 2012
New Revision: 1411826

URL: http://svn.apache.org/viewvc?rev=1411826&view=rev
Log:
wiki convertion

Modified:
    openjpa/site/trunk/content/enhancement-with-ant.mdtext

Modified: openjpa/site/trunk/content/enhancement-with-ant.mdtext
URL: 
http://svn.apache.org/viewvc/openjpa/site/trunk/content/enhancement-with-ant.mdtext?rev=1411826&r1=1411825&r2=1411826&view=diff
==============================================================================
--- openjpa/site/trunk/content/enhancement-with-ant.mdtext (original)
+++ openjpa/site/trunk/content/enhancement-with-ant.mdtext Tue Nov 20 19:55:51 
2012
@@ -15,8 +15,7 @@ The final step is to call the enhance ta
        <path id="jpa.enhancement.classpath">
            <pathelement location="bin"/>
     
-           <!-- lib contains all of the jars that came with the OpenJPA
-binary download -->
+           <!-- lib contains all of the jars that came with the OpenJPA binary 
download -->
            <fileset dir="lib">
                <include name="**/*.jar"/>
            </fileset>
@@ -24,8 +23,7 @@ binary download -->
     
     
        <target name="enhance" depends="build">
-       <!-- This is a bit of a hack, but I needed to copy the
-persistence.xml file from my src dir
+       <!-- This is a bit of a hack, but I needed to copy the persistence.xml 
file from my src dir
            to the build dir when we run enhancement -->
        <copy includeemptydirs="false" todir="bin">
            <fileset dir="src" excludes="**/*.launch, **/*.java"/>
@@ -33,8 +31,7 @@ persistence.xml file from my src dir
     
     
        <!-- define the openjpac task -->
-       <taskdef name="openjpac"
-classname="org.apache.openjpa.ant.PCEnhancerTask">
+       <taskdef name="openjpac" 
classname="org.apache.openjpa.ant.PCEnhancerTask">
            <classpath refid="jpa.enhancement.classpath"/>
        </taskdef>
                 
@@ -50,16 +47,16 @@ the persistence-unit (any legal name wil
 to identify openjpa). You can identify the classes to be enhanced either in
 this file or in the enhancer task ant project.
 
-    <?xml version="1.0" encoding="UTF-8"?>
-    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"; 
-        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
-        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
-        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";>
-      <persistence-unit name="enhance" transaction-type="RESOURCE_LOCAL">
+        <?xml version="1.0" encoding="UTF-8"?>
+        <persistence version="1.0" 
xmlns="http://java.sun.com/xml/ns/persistence"; 
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
+            xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
+            http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";>
+            <persistence-unit name="enhance" transaction-type="RESOURCE_LOCAL">
        
-<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
-        <class>com.egg.sample.model.Employee</class>
-      </persistence-unit>
-    </persistence>
+                
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+                <class>com.egg.sample.model.Employee</class>
+            </persistence-unit>
+       </persistence>
 
 


Reply via email to