File: example2.sh

package info (click to toggle)
velocity 1.3.1-2
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 4,164 kB
  • ctags: 2,922
  • sloc: java: 24,134; xml: 16,911; sh: 99; lisp: 53; makefile: 45
file content (21 lines) | stat: -rw-r--r-- 325 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

_VELCP=.

for i in ../../bin/*.jar
do
    _VELCP=$_VELCP:"$i"
done
 
for i in ../../build/lib/*.jar
do
    _VELCP=$_VELCP:"$i"
done
 
# convert the unix path to windows
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
    _VELCP=`cygpath --path --windows "$_VELCP"`
fi

java -cp $_VELCP Example2