ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-1.9.1/reconstruct/reconstruct.sh
Revision: 990
Committed: Mon Mar 22 12:00:54 2010 UTC (10 years, 8 months ago) by jmduarteg
Original Path: trunk/reconstruct/reconstruct.sh
File size: 646 byte(s)
Log Message:
Now classpath passed with -cp instead of using env variable. Hopefully this is more compatible with other platforms (i.e. maybe it will work on Macs)
Line File contents
1 #!/bin/sh
2 # shell script to run the reconstruct program (a java class in the default package of the OWL Java library)
3
4 # If the program is to be used on a cluster through the Sun Grid Engine
5 # job scheduler (option -A) this variable needs to be set to wherever the
6 # root of the local installation of SGE is
7 sgeroot=/usr/local/sge
8
9 exedir=`dirname $0`
10
11 jarfiles=`ls $exedir/jars/*.jar`
12 classpath="."
13 for jarfile in $jarfiles
14 do
15 classpath="$jarfile:$classpath"
16 done
17
18
19
20 if [ -e "$sgeroot/util/arch" ]
21 then
22 arch=`$sgeroot/util/arch`
23 libstr="-Djava.library.path=$sgeroot/lib/$arch"
24 else
25 libstr=""
26 fi
27
28 java -cp $classpath $libstr reconstruct $@

Properties

Name Value
svn:executable *