Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b0fc798
Showing
64 changed files
with
3,293 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ZUSS (ZK User-interface Style Sheet) is an extension to CSS. | ||
ZUSS is backward compatible with CSS, while extending it with variables, mixins, | ||
nested rules, expressions, and Java methods with existing CSS syntax. | ||
|
||
Design Goals | ||
|
||
* Extend CSS to make it easy to write sophisticated CSS rules | ||
* High performance server-side processing with small foot print | ||
* Seamlessly integration with Java without the need of JavaScript interpreter | ||
|
||
The first implementation is Java, and it depends nothing but JDK. | ||
It shall be straighforward to port to different languages. | ||
|
||
Acknowledgement | ||
ZUSS is inspired by LESS and SASS. Unlike LESS and SASS, the processing of | ||
ZUSS file won't require the JavaScript or Ruby interpreter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
#!/bin/bash | ||
# deploy | ||
# | ||
#{{IS_NOTE | ||
# Purpose: | ||
# Deploy | ||
# Description: | ||
# It supports tomcat only. | ||
# History: | ||
# Thu Jan 26 09:47:39 2006, Created by tomyeh | ||
#}}IS_NOTE | ||
# | ||
#Copyright (C) 2006 Potix Corporation. All Rights Reserved. | ||
# | ||
#{{IS_RIGHT | ||
# This program is distributed under GPL Version 3.0 in the hope that | ||
# it will be useful, but WITHOUT ANY WARRANTY. | ||
#}}IS_RIGHT | ||
# | ||
if [ ! -d /usr/tomcat ] ; then | ||
echo "/usr/tomcat not found" | ||
echo "Currently only tomcat is supported" | ||
exit 1 | ||
fi | ||
if [ $# == 0 ] ; then | ||
echo "Usage:" | ||
echo " deploy prj1 prj2..." | ||
exit 0 | ||
fi | ||
|
||
function cpweb { | ||
( | ||
cd $1 | ||
for sub in * ; do | ||
if [ -f "$sub" ] ; then | ||
#echo cp -u -p "$sub" $2 | ||
cp -u -p -v "$sub" $2 | ||
elif [ "$sub" != CVS ] && [ "$sub" != .svn ] && [ -d "$sub" ] ; then | ||
local dstsub=$2/$sub | ||
if [ ! -d "$dstsub" ] ; then | ||
mkdir -p "$dstsub" | ||
fi | ||
#echo cpweb $(pwd)/$sub $dstsub | ||
cpweb $sub $dstsub | ||
fi | ||
done | ||
) | ||
} | ||
|
||
jar_found=false | ||
for f in $*; do | ||
f=${f%/} | ||
if [ -f dist/lib/$f.war ] || [ "$(head -1 $f/format)" = "war" ] ; then | ||
dst=$(grep '^root' $f/deploy) | ||
if [ "$dst" = "root" ] ; then | ||
dst=ROOT | ||
else | ||
dst=$f | ||
fi | ||
echo "cp dist/lib/$f /usr/tomcat/webapps/$dst" | ||
cpweb $f/src/archive /usr/tomcat/webapps/$dst | ||
fi | ||
if [ -f dist/lib/$f.jar ] ; then | ||
jar_found=true | ||
fi | ||
done | ||
|
||
if [ "$jar_found" = "true" ] ; then | ||
setting=build.setting.local | ||
if [ ! -f $setting ] ; then | ||
setting=build.setting | ||
fi | ||
if [ -f $setting ] ; then | ||
service=$(grep '^start.service' $setting) | ||
service=${service#start.service=} | ||
fi | ||
|
||
if [ "$service" != "" ] ; then | ||
net stop "$service" | ||
fi | ||
|
||
for f in $*; do | ||
f=${f%/} | ||
if [ -f dist/lib/$f.jar ] ; then | ||
#echo "cp dist/lib/$f.jar /usr/tomcat/shared/lib" | ||
chmod 644 dist/lib/$f.jar | ||
cp -p -u -v -f dist/lib/$f.jar /usr/tomcat/shared/lib | ||
fi | ||
done | ||
|
||
if [ "$service" != "" ] ; then | ||
net start "$service" | ||
fi | ||
fi |
Oops, something went wrong.