source: Dev/branches/rest-dojo-ui/client/util/shrinksafe/build.sh @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

  • Property svn:executable set to *
File size: 571 bytes
Line 
1#!/bin/sh
2RHINO=../js.jar
3TEST=$1
4
5# create shrinksafe.jar from src/
6rm -rf bin
7mkdir bin
8cd src
9javac -classpath $RHINO:. -d ../bin org/dojotoolkit/shrinksafe/Main.java
10mkdir ../bin/org/dojotoolkit/shrinksafe/resources
11cp org/dojotoolkit/shrinksafe/resources/Messages.properties ../bin/org/dojotoolkit/shrinksafe/resources/Messages.properties
12cd ../bin
13jar cfm ../shrinksafe.jar ../src/manifest *
14cd ..
15rm -rf bin
16
17# call build.sh test to run the unit tests immediately
18if [ "$TEST" == "test" ]; then
19        echo "Running tests."
20        cd tests
21        ./runner.sh  #| grep errors -1
22fi
23
Note: See TracBrowser for help on using the repository browser.