openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r772472 - in /openjpa/trunk/scripts: ./ branchdiff.bat docit.bat domain-class.list mmg.bat mmg.options rollback.bat status.bat test.bat user.dict
Date Thu, 07 May 2009 00:17:14 GMT
Author: ppoddar
Date: Thu May  7 00:17:14 2009
New Revision: 772472

URL: http://svn.apache.org/viewvc?rev=772472&view=rev
Log:
Add example windows command script for meta-model generation and few common svn operation

Added:
    openjpa/trunk/scripts/
    openjpa/trunk/scripts/branchdiff.bat   (with props)
    openjpa/trunk/scripts/docit.bat   (with props)
    openjpa/trunk/scripts/domain-class.list
    openjpa/trunk/scripts/mmg.bat   (with props)
    openjpa/trunk/scripts/mmg.options
    openjpa/trunk/scripts/rollback.bat   (with props)
    openjpa/trunk/scripts/status.bat   (with props)
    openjpa/trunk/scripts/test.bat   (with props)
    openjpa/trunk/scripts/user.dict

Added: openjpa/trunk/scripts/branchdiff.bat
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/branchdiff.bat?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/branchdiff.bat (added)
+++ openjpa/trunk/scripts/branchdiff.bat Thu May  7 00:17:14 2009
@@ -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

Propchange: openjpa/trunk/scripts/branchdiff.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/scripts/docit.bat
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/docit.bat?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/docit.bat (added)
+++ openjpa/trunk/scripts/docit.bat Thu May  7 00:17:14 2009
@@ -0,0 +1,2 @@
+set MAVEN_OPTS=-Xmx512m
+mvn -f openjpa-project/pom.xml process-resources -Pdocbook-profile
\ No newline at end of file

Propchange: openjpa/trunk/scripts/docit.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/scripts/domain-class.list
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/domain-class.list?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/domain-class.list (added)
+++ openjpa/trunk/scripts/domain-class.list Thu May  7 00:17:14 2009
@@ -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

Added: openjpa/trunk/scripts/mmg.bat
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/mmg.bat?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/mmg.bat (added)
+++ openjpa/trunk/scripts/mmg.bat Thu May  7 00:17:14 2009
@@ -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

Propchange: openjpa/trunk/scripts/mmg.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/scripts/mmg.options
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/mmg.options?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/mmg.options (added)
+++ openjpa/trunk/scripts/mmg.options Thu May  7 00:17:14 2009
@@ -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

Added: openjpa/trunk/scripts/rollback.bat
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/rollback.bat?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/rollback.bat (added)
+++ openjpa/trunk/scripts/rollback.bat Thu May  7 00:17:14 2009
@@ -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

Propchange: openjpa/trunk/scripts/rollback.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/scripts/status.bat
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/status.bat?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/status.bat (added)
+++ openjpa/trunk/scripts/status.bat Thu May  7 00:17:14 2009
@@ -0,0 +1 @@
+svn status | grep -v ?

Propchange: openjpa/trunk/scripts/status.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/scripts/test.bat
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/test.bat?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/test.bat (added)
+++ openjpa/trunk/scripts/test.bat Thu May  7 00:17:14 2009
@@ -0,0 +1,5 @@
+@setlocal
+pushd openjpa-persistence-jdbc
+mvn test -Dtest=%1 %2 %3 %4
+popd
+@endlocal

Propchange: openjpa/trunk/scripts/test.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openjpa/trunk/scripts/user.dict
URL: http://svn.apache.org/viewvc/openjpa/trunk/scripts/user.dict?rev=772472&view=auto
==============================================================================
--- openjpa/trunk/scripts/user.dict (added)
+++ openjpa/trunk/scripts/user.dict Thu May  7 00:17:14 2009
@@ -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



Mime
View raw message