From 52f468bf3b75b0ad0e5243cdc9c1f65a54e43ce7 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Fri, 27 Aug 2010 16:58:37 +0000 Subject: [PATCH] Use generalized environment variables instead of hard-coded paths git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@990208 13f79535-47bb-0310-9956-ffa450edef68 --- scripts/mmg.bat | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/mmg.bat b/scripts/mmg.bat index 5e265fecc..cb5bad245 100644 --- a/scripts/mmg.bat +++ b/scripts/mmg.bat @@ -39,16 +39,17 @@ set JAVAC=%JAVA_HOME%\bin\javac @rem --------------------------------------------------------------------------- @rem Compiler classpath shown for a typical OpenJPA development environment in Windows. @rem The essential aspect is openjpa libraries must be in the compiler's classpath. -set M_REPO="C:\Documents and Settings\Administrator\.m2\repository" +set M_REPO="%USERPROFILE%\.m2\repository" set SPEC=geronimo-jpa_2.0_spec set VERSION=1.0-EA9-SNAPSHOT set JPA_LIB=%M_REPO%\org\apache\geronimo\specs\%SPEC%\%VERSION%\%SPEC%-%VERSION%.jar set CLASSPATH=%JPA_LIB% -set CLASSPATH=%CLASSPATH%;..\openjpa\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%;%~dp0\..\openjpa\src\main\resources +set CLASSPATH=%CLASSPATH%;%~dp0\..\openjpa-persistence\target\classes +set CLASSPATH=%CLASSPATH%;%~dp0\..\openjpa-persistence\src\main\resources +set CLASSPATH=%CLASSPATH%;%~dp0\..\openjpa-kernel\target\classes +set CLASSPATH=%CLASSPATH%;%~dp0\..\openjpa-lib\target\classes @rem --------------------------------------------------------------------------- echo Using Java Compiler %JAVAC% @@ -56,7 +57,7 @@ echo Using Java Compiler %JAVAC% @rem --------------------------------------------------------------------------- @rem Root directory for of the generated source files. Specified as -s option -set GEN_DIR=../openjpa-persistence-jdbc/src/test/java +set GEN_DIR=%~dp0\..\openjpa-persistence-jdbc\src\test\java @rem Only one option is shown for logging. Other available options are documented in @rem OpenJPA User Manual and JavaDoc