mirror of https://github.com/apache/openjpa.git
Add example windows command script for meta-model generation and few common svn operation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772472 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
09a77eeae3
commit
8321d31c89
|
@ -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%
|
|
@ -0,0 +1,2 @@
|
|||
set MAVEN_OPTS=-Xmx512m
|
||||
mvn -f openjpa-project/pom.xml process-resources -Pdocbook-profile
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
-processor org.apache.openjpa.persistence.meta.AnnotationProcessor6
|
||||
-Alog=TRACE
|
||||
-Aout=.\openjpa-persistence-jdbc\src\test\java\
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
svn status | grep -v ?
|
|
@ -0,0 +1,5 @@
|
|||
@setlocal
|
||||
pushd openjpa-persistence-jdbc
|
||||
mvn test -Dtest=%1 %2 %3 %4
|
||||
popd
|
||||
@endlocal
|
|
@ -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
|
Loading…
Reference in New Issue