ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-1.9.2/reconstruct/reconstruct.sh
Revision: 990
Committed: Mon Mar 22 12:00:54 2010 UTC (10 years, 2 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 User Rev File contents
1 duarte 975 #!/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 jmduarteg 990 classpath="."
13 duarte 975 for jarfile in $jarfiles
14     do
15 jmduarteg 990 classpath="$jarfile:$classpath"
16 duarte 975 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 jmduarteg 990 java -cp $classpath $libstr reconstruct $@

Properties

Name Value
svn:executable *