summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/server/server-conf
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-12-06 07:19:24 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-12-06 07:19:24 +0000
commit5b6af381171f4500c7cfc5c9ce179edef9e0fd78 (patch)
tree438e7d673c060c967b24acf9b261e2176d0dccd6 /sca-cpp/trunk/modules/server/server-conf
parent5bc169ce65762b5165c08e82386152ae83d58564 (diff)
Create a js module for client side javascripts. Move client component script to that module and add a few utility scripts.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1042535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-xsca-cpp/trunk/modules/server/server-conf9
1 files changed, 7 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/server/server-conf b/sca-cpp/trunk/modules/server/server-conf
index 5a77125463..9f5740f5b6 100755
--- a/sca-cpp/trunk/modules/server/server-conf
+++ b/sca-cpp/trunk/modules/server/server-conf
@@ -22,6 +22,8 @@ here=`readlink -f $0`; here=`dirname $here`
mkdir -p $1
root=`readlink -f $1`
+jsprefix=`readlink -f $here/../js`
+
conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"`
host=`echo $conf | awk '{ print $6 }'`
port=`echo $conf | awk '{ print $7 }' | awk -F "/" '{ print $1 }'`
@@ -53,8 +55,11 @@ cat >>$root/conf/httpd.conf <<EOF
# Route all wiring through the configured server name
SCAWiringServerName $servername
-# Serve HTTP binding JavaScript client code
-Alias /wiring/ref.js $here/htdocs/wiring/ref.js
+# Serve JavaScript client scripts
+Alias /component.js $jsprefix/htdocs/component.js
+Alias /scdl.js $jsprefix/htdocs/scdl.js
+Alias /util.js $jsprefix/htdocs/util.js
+Alias /ui.js $jsprefix/htdocs/ui.js
EOF