File: classpath.bat

package info (click to toggle)
libxpp3-java 1.1.4c-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,020 kB
  • sloc: java: 24,333; xml: 817; sh: 81; makefile: 13
file content (69 lines) | stat: -rw-r--r-- 1,669 bytes parent folder | download | duplicates (6)
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
@echo off
rem
rem This script set classpath
rem 	Usage: classpath [run|build] [set] [queit]
rem By default it sets CLASSPATH to execute direct java invocations (all included)
rem option build prepares LOCALCLASSPATH to use in build.bat
rem option build prepares LOCALCLASSPATH to use in run.bat
rem by using set CLASSPATH also be set by run|build
rem by using queit no echo of set CLASSOATH well be visible
rem
rem written by Aleksander Slominski [http://www.extreme.indiana.edu/~aslom]

set LOCALCLASSPATH=
for %%i in (lib\junit\*.jar) do call lib\ant\lcp.bat %%i
for %%i in (lib\xmlpull\*.jar) do call lib\ant\lcp.bat %%i

if "%1" == "build" goto build_classpath
if "%1" == "run" goto run_classpath
if "%1" == "clean" goto clean_classpath

REM otherwise set user classpath

set LOCALCLASSPATH=classes.cpr;build\classes;build\samples;build\tests;%LOCALCLASSPATH%
set CLASSPATH=%LOCALCLASSPATH%

if "%1" == "quiet" goto end

echo %CLASSPATH%


goto end

:clean_classpath
set CLASSPATH=
set LOCALCLASSPATH=

if "%2" == "quiet" goto end

echo set CLASSPATH=%CLASSPATH%
echo set LOCALCLASSPATH=%LOCALCLASSPATH%

goto end

:build_classpath
for %%i in (lib\ant\*.jar) do call lib\ant\lcp.bat %%i
if exist %JAVA_HOME%\lib\tools.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%JAVA_HOME%\lib\tools.jar

goto extra_args

:run_classpath
set LOCALCLASSPATH=build\api;build\classes;build\samples;build\tests;%LOCALCLASSPATH%

:extra_args


if not "%2" == "set" goto check_echo

set CLASSPATH=%LOCALCLASSPATH%

:check_echo

if "%2" == "quiet" goto end
if "%3" == "quiet" goto end

echo %LOCALCLASSPATH%

goto end

:end