maven 0.8.pre.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. data/LICENSE.txt +202 -0
  2. data/NOTICE.txt +20 -0
  3. data/README.txt +77 -0
  4. data/bin/m2.conf +8 -0
  5. data/bin/maven +21 -0
  6. data/bin/mvn +164 -0
  7. data/bin/mvn.bat +190 -0
  8. data/bin/mvnDebug +169 -0
  9. data/bin/mvnDebug.bat +193 -0
  10. data/bin/mvnyjp +168 -0
  11. data/bin/translate +148 -0
  12. data/bin/translate.bat +190 -0
  13. data/bin/translate.conf +8 -0
  14. data/boot/plexus-classworlds-2.2.3.jar +0 -0
  15. data/conf/settings.xml +257 -0
  16. data/ext/jruby-complete-1.5.1.jar +0 -0
  17. data/ext/pmaven-jruby-0.8-SNAPSHOT.jar +0 -0
  18. data/lib/commons-cli-1.2.jar +0 -0
  19. data/lib/google-collections-1.0.jar +0 -0
  20. data/lib/maven-artifact-3.0-beta-1.jar +0 -0
  21. data/lib/maven-compat-3.0-beta-1.jar +0 -0
  22. data/lib/maven-core-3.0-beta-1.jar +0 -0
  23. data/lib/maven-embedder-3.0-beta-1.jar +0 -0
  24. data/lib/maven-model-3.0-beta-1.jar +0 -0
  25. data/lib/maven-model-builder-3.0-beta-1.jar +0 -0
  26. data/lib/maven-plugin-api-3.0-beta-1.jar +0 -0
  27. data/lib/maven-settings-3.0-beta-1.jar +0 -0
  28. data/lib/nekohtml-1.9.6.2.jar +0 -0
  29. data/lib/plexus-cipher-1.4.jar +0 -0
  30. data/lib/plexus-component-annotations-1.5.4.jar +0 -0
  31. data/lib/plexus-container-default-1.5.4.jar +0 -0
  32. data/lib/plexus-interpolation-1.11.jar +0 -0
  33. data/lib/plexus-sec-dispatcher-1.3.jar +0 -0
  34. data/lib/plexus-utils-2.0.3.jar +0 -0
  35. data/lib/pmaven-cli-0.8.pre.0.jar +0 -0
  36. data/lib/pmaven-common-0.8-SNAPSHOT.jar +0 -0
  37. data/lib/wagon-file-1.0-beta-6.jar +0 -0
  38. data/lib/wagon-http-lightweight-1.0-beta-6.jar +0 -0
  39. data/lib/wagon-http-shared-1.0-beta-6.jar +0 -0
  40. data/lib/wagon-provider-api-1.0-beta-6.jar +0 -0
  41. data/lib/xbean-reflect-3.4.jar +0 -0
  42. data/lib/xercesMinimal-1.9.6.2.jar +0 -0
  43. metadata +110 -0
@@ -0,0 +1,190 @@
1
+ @REM ----------------------------------------------------------------------------
2
+ @REM Licensed to the Apache Software Foundation (ASF) under one
3
+ @REM or more contributor license agreements. See the NOTICE file
4
+ @REM distributed with this work for additional information
5
+ @REM regarding copyright ownership. The ASF licenses this file
6
+ @REM to you under the Apache License, Version 2.0 (the
7
+ @REM "License"); you may not use this file except in compliance
8
+ @REM with the License. You may obtain a copy of the License at
9
+ @REM
10
+ @REM http://www.apache.org/licenses/LICENSE-2.0
11
+ @REM
12
+ @REM Unless required by applicable law or agreed to in writing,
13
+ @REM software distributed under the License is distributed on an
14
+ @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ @REM KIND, either express or implied. See the License for the
16
+ @REM specific language governing permissions and limitations
17
+ @REM under the License.
18
+ @REM ----------------------------------------------------------------------------
19
+
20
+ @REM ----------------------------------------------------------------------------
21
+ @REM Maven2 Start Up Batch script
22
+ @REM
23
+ @REM Required ENV vars:
24
+ @REM JAVA_HOME - location of a JDK home dir
25
+ @REM
26
+ @REM Optional ENV vars
27
+ @REM M2_HOME - location of maven2's installed home dir
28
+ @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+ @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
+ @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+ @REM e.g. to debug Maven itself, use
32
+ @REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+ @REM ----------------------------------------------------------------------------
34
+
35
+ @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
36
+ @echo off
37
+ @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
38
+ @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
39
+
40
+ @REM set %HOME% to equivalent of $HOME
41
+ if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
42
+
43
+ @REM Execute a user defined script before this one
44
+ if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
45
+
46
+ set ERROR_CODE=0
47
+
48
+ @REM set local scope for the variables with windows NT shell
49
+ if "%OS%"=="Windows_NT" @setlocal
50
+ if "%OS%"=="WINNT" @setlocal
51
+
52
+ @REM ==== START VALIDATION ====
53
+ if not "%JAVA_HOME%" == "" goto OkJHome
54
+
55
+ echo.
56
+ echo ERROR: JAVA_HOME not found in your environment.
57
+ echo Please set the JAVA_HOME variable in your environment to match the
58
+ echo location of your Java installation
59
+ echo.
60
+ goto error
61
+
62
+ :OkJHome
63
+ if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
64
+
65
+ echo.
66
+ echo ERROR: JAVA_HOME is set to an invalid directory.
67
+ echo JAVA_HOME = "%JAVA_HOME%"
68
+ echo Please set the JAVA_HOME variable in your environment to match the
69
+ echo location of your Java installation
70
+ echo.
71
+ goto error
72
+
73
+ :chkMHome
74
+ if not "%M2_HOME%"=="" goto valMHome
75
+
76
+ if "%OS%"=="Windows_NT" SET "M2_HOME=%~dp0.."
77
+ if "%OS%"=="WINNT" SET "M2_HOME=%~dp0.."
78
+ if not "%M2_HOME%"=="" goto valMHome
79
+
80
+ echo.
81
+ echo ERROR: M2_HOME not found in your environment.
82
+ echo Please set the M2_HOME variable in your environment to match the
83
+ echo location of the Maven installation
84
+ echo.
85
+ goto error
86
+
87
+ :valMHome
88
+
89
+ :stripMHome
90
+ if not "_%M2_HOME:~-1%"=="_\" goto checkMBat
91
+ set "M2_HOME=%M2_HOME:~0,-1%"
92
+ goto stripMHome
93
+
94
+ :checkMBat
95
+ if exist "%M2_HOME%\bin\mvn.bat" goto init
96
+
97
+ echo.
98
+ echo ERROR: M2_HOME is set to an invalid directory.
99
+ echo M2_HOME = "%M2_HOME%"
100
+ echo Please set the M2_HOME variable in your environment to match the
101
+ echo location of the Maven installation
102
+ echo.
103
+ goto error
104
+ @REM ==== END VALIDATION ====
105
+
106
+ :init
107
+ @REM Decide how to startup depending on the version of windows
108
+
109
+ @REM -- Windows NT with Novell Login
110
+ if "%OS%"=="WINNT" goto WinNTNovell
111
+
112
+ @REM -- Win98ME
113
+ if NOT "%OS%"=="Windows_NT" goto Win9xArg
114
+
115
+ :WinNTNovell
116
+
117
+ @REM -- 4NT shell
118
+ if "%@eval[2+2]" == "4" goto 4NTArgs
119
+
120
+ @REM -- Regular WinNT shell
121
+ set MAVEN_CMD_LINE_ARGS=%*
122
+ goto endInit
123
+
124
+ @REM The 4NT Shell from jp software
125
+ :4NTArgs
126
+ set MAVEN_CMD_LINE_ARGS=%$
127
+ goto endInit
128
+
129
+ :Win9xArg
130
+ @REM Slurp the command line arguments. This loop allows for an unlimited number
131
+ @REM of agruments (up to the command line limit, anyway).
132
+ set MAVEN_CMD_LINE_ARGS=
133
+ :Win9xApp
134
+ if %1a==a goto endInit
135
+ set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
136
+ shift
137
+ goto Win9xApp
138
+
139
+ @REM Reaching here means variables are defined and arguments have been captured
140
+ :endInit
141
+ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
142
+
143
+ @REM -- 4NT shell
144
+ if "%@eval[2+2]" == "4" goto 4NTCWJars
145
+
146
+ @REM -- Regular WinNT shell
147
+ for %%i in ("%M2_HOME%"\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
148
+ goto runm2
149
+
150
+ @REM The 4NT Shell from jp software
151
+ :4NTCWJars
152
+ for %%i in ("%M2_HOME%\boot\plexus-classworlds-*") do set CLASSWORLDS_JAR="%%i"
153
+ goto runm2
154
+
155
+ @REM Start MAVEN2
156
+ :runm2
157
+ set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
158
+ %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" %CLASSWORLDS_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
159
+ if ERRORLEVEL 1 goto error
160
+ goto end
161
+
162
+ :error
163
+ if "%OS%"=="Windows_NT" @endlocal
164
+ if "%OS%"=="WINNT" @endlocal
165
+ set ERROR_CODE=1
166
+
167
+ :end
168
+ @REM set local scope for the variables with windows NT shell
169
+ if "%OS%"=="Windows_NT" goto endNT
170
+ if "%OS%"=="WINNT" goto endNT
171
+
172
+ @REM For old DOS remove the set variables from ENV - we assume they were not set
173
+ @REM before we started - at least we don't leave any baggage around
174
+ set MAVEN_JAVA_EXE=
175
+ set MAVEN_CMD_LINE_ARGS=
176
+ goto postExec
177
+
178
+ :endNT
179
+ @endlocal & set ERROR_CODE=%ERROR_CODE%
180
+
181
+ :postExec
182
+ if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
183
+ @REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
184
+ if "%MAVEN_BATCH_PAUSE%" == "on" pause
185
+
186
+ if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
187
+
188
+ cmd /C exit /B %ERROR_CODE%
189
+
190
+
@@ -0,0 +1,169 @@
1
+ #!/bin/sh
2
+ # ----------------------------------------------------------------------------
3
+ # Licensed to the Apache Software Foundation (ASF) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The ASF licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+ # ----------------------------------------------------------------------------
20
+
21
+ # ----------------------------------------------------------------------------
22
+ # Maven2 Start Up Batch script
23
+ #
24
+ # Required ENV vars:
25
+ # ------------------
26
+ # JAVA_HOME - location of a JDK home dir
27
+ #
28
+ # Optional ENV vars
29
+ # -----------------
30
+ # M2_HOME - location of maven2's installed home dir
31
+ # MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
+ # e.g. to debug Maven itself, use
33
+ # set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
+ # ----------------------------------------------------------------------------
35
+
36
+ MAVEN_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
37
+
38
+ echo Preparing to Execute Maven in Debug Mode
39
+
40
+ QUOTED_ARGS=""
41
+ while [ "$1" != "" ] ; do
42
+
43
+ QUOTED_ARGS="$QUOTED_ARGS \"$1\""
44
+ shift
45
+
46
+ done
47
+
48
+ if [ -f /etc/mavenrc ] ; then
49
+ . /etc/mavenrc
50
+ fi
51
+
52
+ if [ -f "$HOME/.mavenrc" ] ; then
53
+ . "$HOME/.mavenrc"
54
+ fi
55
+
56
+ # OS specific support. $var _must_ be set to either true or false.
57
+ cygwin=false;
58
+ darwin=false;
59
+ mingw=false
60
+ case "`uname`" in
61
+ CYGWIN*) cygwin=true ;;
62
+ MINGW*) mingw=true;;
63
+ Darwin*) darwin=true
64
+ if [ -z "$JAVA_VERSION" ] ; then
65
+ JAVA_VERSION="CurrentJDK"
66
+ else
67
+ echo "Using Java version: $JAVA_VERSION"
68
+ fi
69
+ if [ -z "$JAVA_HOME" ] ; then
70
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
71
+ fi
72
+ ;;
73
+ esac
74
+
75
+ if [ -z "$JAVA_HOME" ] ; then
76
+ if [ -r /etc/gentoo-release ] ; then
77
+ JAVA_HOME=`java-config --jre-home`
78
+ fi
79
+ fi
80
+
81
+ if [ -z "$M2_HOME" ] ; then
82
+ ## resolve links - $0 may be a link to maven's home
83
+ PRG="$0"
84
+
85
+ # need this for relative symlinks
86
+ while [ -h "$PRG" ] ; do
87
+ ls=`ls -ld "$PRG"`
88
+ link=`expr "$ls" : '.*-> \(.*\)$'`
89
+ if expr "$link" : '/.*' > /dev/null; then
90
+ PRG="$link"
91
+ else
92
+ PRG="`dirname "$PRG"`/$link"
93
+ fi
94
+ done
95
+
96
+ saveddir=`pwd`
97
+
98
+ M2_HOME=`dirname "$PRG"`/..
99
+
100
+ # make it fully qualified
101
+ M2_HOME=`cd "$M2_HOME" && pwd`
102
+
103
+ cd "$saveddir"
104
+ # echo Using m2 at $M2_HOME
105
+ fi
106
+
107
+ # For Cygwin, ensure paths are in UNIX format before anything is touched
108
+ if $cygwin ; then
109
+ [ -n "$M2_HOME" ] &&
110
+ M2_HOME=`cygpath --unix "$M2_HOME"`
111
+ [ -n "$JAVA_HOME" ] &&
112
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
113
+ [ -n "$CLASSPATH" ] &&
114
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
115
+ fi
116
+
117
+ # For Migwn, ensure paths are in UNIX format before anything is touched
118
+ if $mingw ; then
119
+ [ -n "$M2_HOME" ] &&
120
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
121
+ [ -n "$JAVA_HOME" ] &&
122
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
123
+ # TODO classpath?
124
+ fi
125
+
126
+ if [ -z "$JAVACMD" ] ; then
127
+ if [ -n "$JAVA_HOME" ] ; then
128
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
129
+ # IBM's JDK on AIX uses strange locations for the executables
130
+ JAVACMD="$JAVA_HOME/jre/sh/java"
131
+ else
132
+ JAVACMD="$JAVA_HOME/bin/java"
133
+ fi
134
+ else
135
+ JAVACMD="`which java`"
136
+ fi
137
+ fi
138
+
139
+ if [ ! -x "$JAVACMD" ] ; then
140
+ echo "Error: JAVA_HOME is not defined correctly."
141
+ echo " We cannot execute $JAVACMD"
142
+ exit 1
143
+ fi
144
+
145
+ if [ -z "$JAVA_HOME" ] ; then
146
+ echo "Warning: JAVA_HOME environment variable is not set."
147
+ fi
148
+
149
+ CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
150
+
151
+ # For Cygwin, switch paths to Windows format before running java
152
+ if $cygwin; then
153
+ [ -n "$M2_HOME" ] &&
154
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
155
+ [ -n "$JAVA_HOME" ] &&
156
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
157
+ [ -n "$HOME" ] &&
158
+ HOME=`cygpath --path --windows "$HOME"`
159
+ fi
160
+
161
+ maven_exec_cmd="\"$JAVACMD\" \
162
+ $MAVEN_OPTS \
163
+ $MAVEN_DEBUG_OPTS \
164
+ -classpath \"${M2_HOME}\"/boot/plexus-classworlds-*.jar \
165
+ \"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf\" \
166
+ \"-Dmaven.home=${M2_HOME}\" \
167
+ ${CLASSWORLDS_LAUNCHER}"
168
+
169
+ eval $maven_exec_cmd "$QUOTED_ARGS"
@@ -0,0 +1,193 @@
1
+ @REM ----------------------------------------------------------------------------
2
+ @REM Licensed to the Apache Software Foundation (ASF) under one
3
+ @REM or more contributor license agreements. See the NOTICE file
4
+ @REM distributed with this work for additional information
5
+ @REM regarding copyright ownership. The ASF licenses this file
6
+ @REM to you under the Apache License, Version 2.0 (the
7
+ @REM "License"); you may not use this file except in compliance
8
+ @REM with the License. You may obtain a copy of the License at
9
+ @REM
10
+ @REM http://www.apache.org/licenses/LICENSE-2.0
11
+ @REM
12
+ @REM Unless required by applicable law or agreed to in writing,
13
+ @REM software distributed under the License is distributed on an
14
+ @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ @REM KIND, either express or implied. See the License for the
16
+ @REM specific language governing permissions and limitations
17
+ @REM under the License.
18
+ @REM ----------------------------------------------------------------------------
19
+
20
+ @REM ----------------------------------------------------------------------------
21
+ @REM Maven2 Start Up Batch script
22
+ @REM
23
+ @REM Required ENV vars:
24
+ @REM JAVA_HOME - location of a JDK home dir
25
+ @REM
26
+ @REM Optional ENV vars
27
+ @REM M2_HOME - location of maven2's installed home dir
28
+ @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+ @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
+ @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+ @REM e.g. to debug Maven itself, use
32
+ @REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+ @REM ----------------------------------------------------------------------------
34
+
35
+ @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
36
+ @echo off
37
+ @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
38
+ @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
39
+
40
+ @echo Preparing to Execute Maven in Debug Mode
41
+
42
+ @REM set %HOME% to equivalent of $HOME
43
+ if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
44
+
45
+ @REM Execute a user defined script before this one
46
+ if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
47
+
48
+ set ERROR_CODE=0
49
+
50
+ @REM set local scope for the variables with windows NT shell
51
+ if "%OS%"=="Windows_NT" @setlocal
52
+ if "%OS%"=="WINNT" @setlocal
53
+
54
+ set MAVEN_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
55
+
56
+ @REM ==== START VALIDATION ====
57
+ if not "%JAVA_HOME%" == "" goto OkJHome
58
+
59
+ echo.
60
+ echo ERROR: JAVA_HOME not found in your environment.
61
+ echo Please set the JAVA_HOME variable in your environment to match the
62
+ echo location of your Java installation
63
+ echo.
64
+ goto error
65
+
66
+ :OkJHome
67
+ if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
68
+
69
+ echo.
70
+ echo ERROR: JAVA_HOME is set to an invalid directory.
71
+ echo JAVA_HOME = "%JAVA_HOME%"
72
+ echo Please set the JAVA_HOME variable in your environment to match the
73
+ echo location of your Java installation
74
+ echo.
75
+ goto error
76
+
77
+ :chkMHome
78
+ if not "%M2_HOME%"=="" goto valMHome
79
+
80
+ if "%OS%"=="Windows_NT" SET "M2_HOME=%~dp0.."
81
+ if "%OS%"=="WINNT" SET "M2_HOME=%~dp0.."
82
+ if not "%M2_HOME%"=="" goto valMHome
83
+
84
+ echo.
85
+ echo ERROR: M2_HOME not found in your environment.
86
+ echo Please set the M2_HOME variable in your environment to match the
87
+ echo location of the Maven installation
88
+ echo.
89
+ goto error
90
+
91
+ :valMHome
92
+
93
+ :stripMHome
94
+ if not "_%M2_HOME:~-1%"=="_\" goto checkMBat
95
+ set "M2_HOME=%M2_HOME:~0,-1%"
96
+ goto stripMHome
97
+
98
+ :checkMBat
99
+ if exist "%M2_HOME%\bin\mvn.bat" goto init
100
+
101
+ echo.
102
+ echo ERROR: M2_HOME is set to an invalid directory.
103
+ echo M2_HOME = "%M2_HOME%"
104
+ echo Please set the M2_HOME variable in your environment to match the
105
+ echo location of the Maven installation
106
+ echo.
107
+ goto error
108
+ @REM ==== END VALIDATION ====
109
+
110
+ :init
111
+ @REM Decide how to startup depending on the version of windows
112
+
113
+ @REM -- Windows NT with Novell Login
114
+ if "%OS%"=="WINNT" goto WinNTNovell
115
+
116
+ @REM -- Win98ME
117
+ if NOT "%OS%"=="Windows_NT" goto Win9xArg
118
+
119
+ :WinNTNovell
120
+
121
+ @REM -- 4NT shell
122
+ if "%@eval[2+2]" == "4" goto 4NTArgs
123
+
124
+ @REM -- Regular WinNT shell
125
+ set MAVEN_CMD_LINE_ARGS=%*
126
+ goto endInit
127
+
128
+ @REM The 4NT Shell from jp software
129
+ :4NTArgs
130
+ set MAVEN_CMD_LINE_ARGS=%$
131
+ goto endInit
132
+
133
+ :Win9xArg
134
+ @REM Slurp the command line arguments. This loop allows for an unlimited number
135
+ @REM of agruments (up to the command line limit, anyway).
136
+ set MAVEN_CMD_LINE_ARGS=
137
+ :Win9xApp
138
+ if %1a==a goto endInit
139
+ set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
140
+ shift
141
+ goto Win9xApp
142
+
143
+ @REM Reaching here means variables are defined and arguments have been captured
144
+ :endInit
145
+ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
146
+
147
+ @REM -- 4NT shell
148
+ if "%@eval[2+2]" == "4" goto 4NTCWJars
149
+
150
+ @REM -- Regular WinNT shell
151
+ for %%i in ("%M2_HOME%"\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
152
+ goto runm2
153
+
154
+ @REM The 4NT Shell from jp software
155
+ :4NTCWJars
156
+ for %%i in ("%M2_HOME%\boot\plexus-classworlds-*") do set CLASSWORLDS_JAR="%%i"
157
+ goto runm2
158
+
159
+ @REM Start MAVEN2
160
+ :runm2
161
+ set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
162
+ %MAVEN_JAVA_EXE% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" %CLASSWORLDS_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
163
+ if ERRORLEVEL 1 goto error
164
+ goto end
165
+
166
+ :error
167
+ if "%OS%"=="Windows_NT" @endlocal
168
+ if "%OS%"=="WINNT" @endlocal
169
+ set ERROR_CODE=1
170
+
171
+ :end
172
+ @REM set local scope for the variables with windows NT shell
173
+ if "%OS%"=="Windows_NT" goto endNT
174
+ if "%OS%"=="WINNT" goto endNT
175
+
176
+ @REM For old DOS remove the set variables from ENV - we assume they were not set
177
+ @REM before we started - at least we don't leave any baggage around
178
+ set MAVEN_JAVA_EXE=
179
+ set MAVEN_CMD_LINE_ARGS=
180
+ goto postExec
181
+
182
+ :endNT
183
+ @endlocal & set ERROR_CODE=%ERROR_CODE%
184
+
185
+ :postExec
186
+ if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
187
+ @REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
188
+ if "%MAVEN_BATCH_PAUSE%" == "on" pause
189
+
190
+ if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
191
+
192
+ exit /B %ERROR_CODE%
193
+