forked from ChromisPos/ChromisPOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start
71 lines (68 loc) · 2.67 KB
/
start
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
#!/bin/sh
# Chromis POS - The New Face of Open Source POS
# Copyright (c) 2015
# http://www.chromis.co.uk
#
# This file is part of Chromis POS
#
# Chromis POS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Chromis POS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Chromis POS. If not, see <http:#www.gnu.org/licenses/>
DIRNAME=`dirname $0`
CP=$DIRNAME/chromispos.jar
CP=$CP:$DIRNAME/lib/jasperreports-4.5.1.jar
CP=$CP:$DIRNAME/lib/jcommon-1.0.15.jar
CP=$CP:$DIRNAME/lib/jfreechart-1.0.12.jar
CP=$CP:$DIRNAME/lib/jdt-compiler-3.1.1.jar
CP=$CP:$DIRNAME/lib/commons-beanutils-1.8.3.jar
CP=$CP:$DIRNAME/lib/commons-digester-2.1.jar
CP=$CP:$DIRNAME/lib/iText-2.1.7.jar
CP=$CP:$DIRNAME/lib/poi-3.8-20120326.jar
CP=$CP:$DIRNAME/lib/barcode4j-2.0.jar
CP=$CP:$DIRNAME/lib/commons-codec-1.4.jar
CP=$CP:$DIRNAME/lib/velocity-1.7-dep.jar
CP=$CP:$DIRNAME/lib/oro-2.0.8.jar
CP=$CP:$DIRNAME/lib/commons-collections-3.2.1.jar
CP=$CP:$DIRNAME/lib/commons-lang-2.4.jar
CP=$CP:$DIRNAME/lib/bsh-core-2.0b4.jar
CP=$CP:$DIRNAME/lib/RXTXcomm.jar
CP=$CP:$DIRNAME/lib/jpos1121.jar
CP=$CP:$DIRNAME/lib/swingx-all-1.6.4.jar
CP=$CP:$DIRNAME/lib/substance.jar
CP=$CP:$DIRNAME/lib/substance-swingx.jar
# Apache Axis SOAP libraries.
CP=$CP:$DIRNAME/lib/axis.jar
CP=$CP:$DIRNAME/lib/jaxrpc.jar
CP=$CP:$DIRNAME/lib/saaj.jar
CP=$CP:$DIRNAME/lib/wsdl4j-1.5.1.jar
CP=$CP:$DIRNAME/lib/commons-discovery-0.4.jar
CP=$CP:$DIRNAME/lib/commons-logging-1.1.jar
CP=$CP:$DIRNAME/locales/
CP=$CP:$DIRNAME/reports/
# Select the library folder
case "`uname -s`" in
Linux)
case "`uname -m`" in
i686) LIBRARYPATH=/lib/Linux/i686-unknown-linux-gnu;;
ia64) LIBRARYPATH=/lib/Linux/ia64-unknown-linux-gnu;;
x86_64|amd64) LIBRARYPATH=/lib/Linux/x86_64-unknown-linux-gnu;;
esac;;
SunOS)
case "`uname -m`" in
sparc32) LIBRARYPATH=/Solaris/sparc-solaris/sparc32-sun-solaris2.8;;
sparc64) LIBRARYPATH=/Solaris/sparc-solaris/sparc64-sun-solaris2.8;;
esac;;
Darwin) LIBRARYPATH=/lib/Mac_OS_X;;
CYGWIN*|MINGW32*) LIBRARYPATH=/lib/Windows/i368-mingw32;;
esac
# start uniCenta oPOS
java -cp $CP -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Djava.library.path=$DIRNAME$LIBRARYPATH -Ddirname.path=$DIRNAME/ uk.chromis.pos.forms.StartPOS "$@"