diff --git a/scripts/branchdiff.bat b/scripts/branchdiff.bat new file mode 100644 index 000000000..c56abca4b --- /dev/null +++ b/scripts/branchdiff.bat @@ -0,0 +1,15 @@ +@echo off +@rem -------------------------------------------------------------------------------------------------- +@rem Finds the difference between versions on different branch +@rem -------------------------------------------------------------------------------------------------- +set REPOS=https://svn.apache.org/repos/asf/openjpa/trunk +set BRANCH=1.0.x +set OLD_ROOT=https://svn.apache.org/repos/asf/openjpa/trunk +set NEW_ROOT=https://svn.apache.org/repos/asf/openjpa/branches/%BRANCH% +rem set FILE=openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java +set FILE=%1 +@rem openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/RelationToManyInverseKeyFieldStrategy.java +set NEW_URL=%NEW_ROOT%/%FILE% +set OLD_URL=%OLD_ROOT%/%FILE% +@echo svn diff %1% between trunk AND %BRANCH% +svn diff --old=%OLD_URL% --new=%NEW_URL% \ No newline at end of file diff --git a/scripts/docit.bat b/scripts/docit.bat new file mode 100644 index 000000000..b07261761 --- /dev/null +++ b/scripts/docit.bat @@ -0,0 +1,2 @@ +set MAVEN_OPTS=-Xmx512m +mvn -f openjpa-project/pom.xml process-resources -Pdocbook-profile \ No newline at end of file diff --git a/scripts/domain-class.list b/scripts/domain-class.list new file mode 100644 index 000000000..d1e00df6b --- /dev/null +++ b/scripts/domain-class.list @@ -0,0 +1,22 @@ +./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 diff --git a/scripts/mmg.bat b/scripts/mmg.bat new file mode 100644 index 000000000..d822da483 --- /dev/null +++ b/scripts/mmg.bat @@ -0,0 +1,29 @@ +@rem --------------------------------------------------------------------------- +@rem Example Batch script to generate canonical meta-model classes +@rem +@rem The canonical meta-model classes are generated during compilation of +@rem domain classes. +@rem +@rem See also +@rem mmg.options : The options to Javac compiler +@rem domain-class.list : The domain classes to be compiled +@rem --------------------------------------------------------------------------- +@echo off +setlocal +set JAVA_HOME=c:\java\jdk1.6.0_10 +set JAVAC=%JAVA_HOME%\bin\javac + +set M_REPO="C:\Documents and Settings\Administrator\.m2\repository" +set SPEC=geronimo-jpa_2.0_spec +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 + +%JAVAC% -cp %CLASSPATH% @mmg.options @domain-class.list + +endlocal \ No newline at end of file diff --git a/scripts/mmg.options b/scripts/mmg.options new file mode 100644 index 000000000..649a6e040 --- /dev/null +++ b/scripts/mmg.options @@ -0,0 +1,3 @@ +-processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 +-Alog=TRACE +-Aout=.\openjpa-persistence-jdbc\src\test\java\ \ No newline at end of file diff --git a/scripts/rollback.bat b/scripts/rollback.bat new file mode 100644 index 000000000..882de347b --- /dev/null +++ b/scripts/rollback.bat @@ -0,0 +1,7 @@ +set REPOS=%1 +set FILE=%2 +set VERSION=%3 +set URL=%1/%2 +svn merge %URL%@HEAD %URL%@%VERSION% %FILE% + +@REM merge svn://domain.com/repo/trunk/folder/changedFile.txt@HEAD svn://domain.com/repo/trunk/folder/changedFile.txt@215 ./folder/changedFile.txt \ No newline at end of file diff --git a/scripts/status.bat b/scripts/status.bat new file mode 100644 index 000000000..56aae5ce8 --- /dev/null +++ b/scripts/status.bat @@ -0,0 +1 @@ +svn status | grep -v ? diff --git a/scripts/test.bat b/scripts/test.bat new file mode 100644 index 000000000..2ec38caae --- /dev/null +++ b/scripts/test.bat @@ -0,0 +1,5 @@ +@setlocal +pushd openjpa-persistence-jdbc +mvn test -Dtest=%1 %2 %3 %4 +popd +@endlocal diff --git a/scripts/user.dict b/scripts/user.dict new file mode 100644 index 000000000..b03374dcd --- /dev/null +++ b/scripts/user.dict @@ -0,0 +1,23 @@ +metadata +datastore +transactional +lifecycle +oid +hashcode +superclasses +commentable +openjpa +runtimes +unenhanced +classloader +callbacks +apache +org +serializable +proxy +externalizable +externalizer +externalized +lrs +plugin +embeddable