Last change
on this file since 29338 was 25900, checked in by ak19, 12 years ago |
Adding an ant build file with add-service and del-service targets for the Solr extension to replace the existing bash scripts ADD-SERVICE.sh and DEL-SERVICE.sh. This bypasses the need for batch scripts that parallel the bash scripts.
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | gsdlsrcdir=src/java/org/greenstone/gsdl3
|
---|
4 |
|
---|
5 | file_list=`cat java-src-file-list.txt | egrep -v '^#'`
|
---|
6 |
|
---|
7 | for f in $file_list ; do
|
---|
8 | echo "Adding $gsdlsrcdir/$f to gsdl3 java code-base"
|
---|
9 |
|
---|
10 | /bin/cp "$gsdlsrcdir/$f" "../../$gsdlsrcdir/$f"
|
---|
11 | done
|
---|
12 |
|
---|
13 | classesdir=web/WEB-INF/classes
|
---|
14 |
|
---|
15 | prop_list=`cat prop-file-list.txt`
|
---|
16 |
|
---|
17 | for f in $prop_list ; do
|
---|
18 | echo "Adding properties/$f to gsdl3 properties area"
|
---|
19 |
|
---|
20 | /bin/cp "properties/$f" "../../$classesdir/$f"
|
---|
21 | done
|
---|
22 |
|
---|
23 | jarwebdir=web/WEB-INF/lib
|
---|
24 |
|
---|
25 | file_list=`cat jar-file-list.txt | egrep -v '^#'`
|
---|
26 |
|
---|
27 | for f in $file_list ; do
|
---|
28 | echo "Adding lib/java/$f to gsdl3 web jar lib directory"
|
---|
29 |
|
---|
30 | /bin/cp "lib/java/$f" "../../$jarwebdir/$f"
|
---|
31 | done
|
---|
32 |
|
---|
33 | webextdir=web/ext/solr
|
---|
34 |
|
---|
35 | if [ ! -d ../../$webextdir ] ; then
|
---|
36 | echo "Creating web extension directory: $webextdir"
|
---|
37 | mkdir ../../$webextdir
|
---|
38 | fi
|
---|
39 |
|
---|
40 | web_list="solr.xml"
|
---|
41 |
|
---|
42 | for f in $web_list ; do
|
---|
43 | echo "Adding $f to gsdl3 web ext directory"
|
---|
44 | /bin/cp "$f" "../../$webextdir/$f"
|
---|
45 | done
|
---|
46 |
|
---|
47 | if [ -d web ] ; then
|
---|
48 | echo "Copying the content of the web folder (excluding the top-level .svn directory)"
|
---|
49 | # copy the content of the web folder (avoiding the top-level .svn directory)
|
---|
50 | /bin/cp -r web/* ../../$webextdir/.
|
---|
51 | fi |
---|
Note:
See
TracBrowser
for help on using the repository browser.