From 70a0b7b1db04e45b2bc2b69bec031afd97a0b0f3 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Tue, 16 Jun 2009 19:38:38 +0000 Subject: [PATCH] new header option git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785355 13f79535-47bb-0310-9956-ffa450edef68 --- scripts/domain-class.list | 32 ++++++++++---------------------- scripts/mmg.bat | 20 +++++++++++++------- scripts/mmg.options | 2 +- 3 files changed, 24 insertions(+), 30 deletions(-) diff --git a/scripts/domain-class.list b/scripts/domain-class.list index 5d1ca0dad..758da2ae7 100644 --- a/scripts/domain-class.list +++ b/scripts/domain-class.list @@ -1,22 +1,10 @@ -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Account.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Address.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Contact.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Contractor.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Course.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/CreditCard.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Customer.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Department.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Employee.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Exempt.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/FrequentFlierPlan.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Item.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/LineItem.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Manager.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Order.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Person.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Phone.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Photo.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/StringComparison.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Student.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Transaction.java -../openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/VideoStore.java \ No newline at end of file +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ArrayMember.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/Embed0.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/Embed1.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ExplicitFieldAccess.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ExplicitFieldAccessMixed.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ExplicitPropertyAccess.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ExplicitPropertyAccessMixed.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ImplicitFieldAccessBase.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ImplicitFieldAccessMappedSuperclass.java +./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/meta/ImplicitFieldAccessSubclass.java \ No newline at end of file diff --git a/scripts/mmg.bat b/scripts/mmg.bat index f3674573b..58e642f3f 100644 --- a/scripts/mmg.bat +++ b/scripts/mmg.bat @@ -19,9 +19,15 @@ @rem --------------------------------------------------------------------------- @rem Example Batch script to generate canonical meta-model classes +@rem +@rem Usage +@rem $ mmg.bat @rem -@rem The canonical meta-model classes are generated during compilation of -@rem domain classes. +@rem The canonical meta-model classes can be generated during compilation of +@rem domain classes. This batch file compiles a set of classes (X.java) listed +@rem in file. The compiler is invoked with an annotation +@rem processor which generates a meta-model class X_.java for each X.java. +@rem The options for annotation processor is specified in . @rem @rem See also @rem mmg.options : The options to Javac compiler @@ -38,11 +44,11 @@ set VERSION=1.0-EA2-SNAPSHOT set JPA_LIB=%M_REPO%\org\apache\geronimo\specs\%SPEC%\%VERSION%\%SPEC%-%VERSION%.jar set CLASSPATH=%JPA_LIB% -set CLASSPATH=%CLASSPATH%;..\openjpa-lib\target\classes -set CLASSPATH=%CLASSPATH%;..\openjpa-persistence\src\main\resources -set CLASSPATH=%CLASSPATH%;..\openjpa-persistence\target\classes -set CLASSPATH=%CLASSPATH%;..\openjpa-kernel\target\classes +set CLASSPATH=%CLASSPATH%;.\openjpa-lib\target\classes +set CLASSPATH=%CLASSPATH%;.\openjpa-persistence\src\main\resources +set CLASSPATH=%CLASSPATH%;.\openjpa-persistence\target\classes +set CLASSPATH=%CLASSPATH%;.\openjpa-kernel\target\classes -%JAVAC% -cp %CLASSPATH% @mmg.options @domain-class.list +%JAVAC% -cp %CLASSPATH% @%1 @%2 endlocal diff --git a/scripts/mmg.options b/scripts/mmg.options index 7e93b7ec4..558f652f8 100644 --- a/scripts/mmg.options +++ b/scripts/mmg.options @@ -1,4 +1,4 @@ -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 -Alog=TRACE -Aout=..\openjpa-persistence-jdbc\src\test\java\ --Asource=5 \ No newline at end of file +-Asource=5