source: trunk/Proxy/compile.sh @ 24

Revision 24, 756 bytes checked in by speck, 4 years ago (diff)

Server can now read xml prefs. Enable/disable of plugin works now.

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3set -e
4CP=
5for f in lib-jars/*.jar
6do
7    CP="$CP:$f"
8done
9
10compile()
11{
12    ADDTOCLASSPATH=$1
13    DST=$2
14    SRCDIR=$3
15    rm -rf $DST
16    mkdir -p $DST
17    javac -cp "$CP" -d $DST -g `find $SRCDIR -name '*.java'`
18    if [ "$ADDTOCLASSPATH" = "1" ]
19    then
20        CP=$CP:$DST
21    fi
22}
23
24
25echo "#  Compiles filter api"
26compile 1 tmp/classes/production/gb-api   src/dk/vitality/glimmerblocker/api
27
28for dir in src/dk/vitality/glimmerblocker/standardPlugins/*
29do
30    b=`basename $dir`
31    echo "#  Compiles standard plugin: $b"
32    compile 0 tmp/classes/production/plugin-$b  $dir
33done
34
35echo "#  Compiles XPath lib"
36compile 1 tmp/classes/production/gb-xpath   src/dk/vitality/lib/xpath
37
38echo "#  Compiles proxy"
39compile 0 tmp/classes/production/gb-proxy   src/dk/vitality/glimmerblocker/proxy
Note: See TracBrowser for help on using the repository browser.