forked from jeantessier/dependency-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
junit.bat
129 lines (115 loc) · 6.58 KB
/
junit.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@echo off
rem
rem Copyright (c) 2001-2009, Jean Tessier
rem All rights reserved.
rem
rem Redistribution and use in source and binary forms, with or without
rem modification, are permitted provided that the following conditions
rem are met:
rem
rem * Redistributions of source code must retain the above copyright
rem notice, this list of conditions and the following disclaimer.
rem
rem * Redistributions in binary form must reproduce the above copyright
rem notice, this list of conditions and the following disclaimer in the
rem documentation and/or other materials provided with the distribution.
rem
rem * Neither the name of Jean Tessier nor the names of his contributors
rem may be used to endorse or promote products derived from this software
rem without specific prior written permission.
rem
rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
rem A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
rem CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
rem EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
rem PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
rem PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
rem LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
rem NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
rem SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rem
if not "%OS%"=="Windows_NT" goto win9xStart
:winNTStart
@setlocal
rem %~dp0 is name of current script under NT
set DEFAULT_DEPENDENCYFINDER_HOME=%~dp0
rem : operator works similar to make : operator
set DEFAULT_DEPENDENCYFINDER_HOME=%DEFAULT_DEPENDENCYFINDER_HOME:\bin\=%
if %DEPENDENCYFINDER_HOME%a==a set DEPENDENCYFINDER_HOME=%DEFAULT_DEPENDENCYFINDER_HOME%
set DEFAULT_DEPENDENCYFINDER_HOME=
rem On NT/2K grab all arguments at once
set DEPENDENCYFINDER_CMD_LINE_ARGS=%*
goto doneStart
:win9xStart
rem Slurp the command line arguments. This loop allows for an unlimited number of
rem agruments (up to the command line limit, anyway).
set DEPENDENCYFINDER_CMD_LINE_ARGS=
:setupArgs
if %1a==a goto doneStart
set DEPENDENCYFINDER_CMD_LINE_ARGS=%DEPENDENCYFINDER_CMD_LINE_ARGS% %1
shift
goto setupArgs
:doneStart
rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.
set LOCAL_CLASSPATH=%DEPENDENCYFINDER_HOME%\classes
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%DEPENDENCYFINDER_HOME%\src
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%DEPENDENCYFINDER_HOME%\tests
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%DEPENDENCYFINDER_HOME%\lib\guava.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%DEPENDENCYFINDER_HOME%\lib\jakarta-oro.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%DEPENDENCYFINDER_HOME%\lib\jsr305.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%DEPENDENCYFINDER_HOME%\lib\log4j.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JUNIT_HOME%\junit-4.4.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\cglib-2.1_3-src.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\cglib-nodep-2.1_3.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\hamcrest-core-1.1.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\hamcrest-library-1.1.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\jmock-2.4.0.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\jmock-junit3-2.4.0.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\jmock-junit4-2.4.0.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\jmock-legacy-2.4.0.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%JMOCK_HOME%\objenesis-1.0.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%FITLIBRARY_HOME%\fitlibraryRunner.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\lib\httpunit.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\activation-1.1.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\js-1.6R5.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\jtidy-4aug2000r7-dev.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\junit-3.8.1.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\mail-1.4.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\nekohtml-0.9.5.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\servlet-api-2.4.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\xercesImpl-2.6.1.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%HTTPUNIT_HOME%\jars\xmlParserAPIs-2.6.1.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\bin\commons-daemon.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\bin\tomcat-juli.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\annotations-api.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\catalina-ant.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\catalina-ha.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\catalina-tribes.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\catalina.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\el-api.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\jasper-el.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\jasper-jdt.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\jasper.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\jsp-api.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\servlet-api.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\tomcat-coyote.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\tomcat-dbcp.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\tomcat-i18n-es.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\tomcat-i18n-fr.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%CATALINA_HOME%\lib\tomcat-i18n-jp.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%ANT_HOME%\lib\ant-junit.jar
set LOCAL_CLASSPATH=%LOCAL_CLASSPATH%;%ANT_HOME%\lib\ant.jar
if "%DEPENDENCYFINDER_CONSOLE%"=="" goto noConsole
"%JAVA_HOME%\bin\java" %DEPENDENCYFINDER_OPTS% -DDEPENDENCYFINDER_TESTS_VALIDATE=%DF_VALIDATE% -classpath %LOCAL_CLASSPATH% junit.swingui.TestRunner %DEPENDENCYFINDER_CMD_LINE_ARGS%
goto doneRun
:noConsole
start "JUnit" "%JAVA_HOME%\bin\javaw" %DEPENDENCYFINDER_OPTS% -DDEPENDENCYFINDER_TESTS_VALIDATE=%DF_VALIDATE% -classpath %LOCAL_CLASSPATH% junit.swingui.TestRunner %DEPENDENCYFINDER_CMD_LINE_ARGS%
:doneRun
if not "%OS%"=="Windows_NT" goto mainEnd
:winNTend
@endlocal
:mainEnd