Author: yurize
Date: Sat Jan 12 20:01:51 2013
New Revision: 1432497
URL: http://svn.apache.org/viewvc?rev=1432497&view=rev
Log:
Adds the script to download emma and junit.
https://reviews.apache.org/r/8630
Added:
incubator/wave/trunk/get_third_party.sh
Modified:
incubator/wave/trunk/.gitignore
incubator/wave/trunk/README
incubator/wave/trunk/third_party/test/junit/README.google
Modified: incubator/wave/trunk/.gitignore
URL:
http://svn.apache.org/viewvc/incubator/wave/trunk/.gitignore?rev=1432497&r1=1432496&r2=1432497&view=diff
==============================================================================
--- incubator/wave/trunk/.gitignore (original)
+++ incubator/wave/trunk/.gitignore Sat Jan 12 20:01:51 2013
@@ -10,3 +10,5 @@
/_attachments
/_certificates
/_indexes
+/third_party/test/emma/*.jar
+/third_party/test/junit/*.jar
Modified: incubator/wave/trunk/README
URL:
http://svn.apache.org/viewvc/incubator/wave/trunk/README?rev=1432497&r1=1432496&r2=1432497&view=diff
==============================================================================
--- incubator/wave/trunk/README (original)
+++ incubator/wave/trunk/README Sat Jan 12 20:01:51 2013
@@ -2,17 +2,19 @@
"Wave in a Box" (WIAB) project is a stand alone wave server and rich web
client that serves as an Apache Wave reference implementation.
Apache Wave site: http://incubator.apache.org/wave/
This project lets developers and enterprise users run wave servers and host
waves on their own hardware. And then share those waves with other wave servers.
-
+
Build:
This code requires Java 6. If you are on MacOS 10.5 (Leopard) or earlier,
you'll need to install it from
-http://www.apple.com/support/downloads/javaformacosx105update1.html -
+http://www.apple.com/support/downloads/javaformacosx105update1.html -
MacOS 10.5 ships with Java 5 by default.
+
Wave in a Box uses Ant to build. To run the tests, run:
<code>
+./get_third_party.sh
ant test
</code>
Added: incubator/wave/trunk/get_third_party.sh
URL:
http://svn.apache.org/viewvc/incubator/wave/trunk/get_third_party.sh?rev=1432497&view=auto
==============================================================================
--- incubator/wave/trunk/get_third_party.sh (added)
+++ incubator/wave/trunk/get_third_party.sh Sat Jan 12 20:01:51 2013
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Script to fetch and build the third-party packages that we depend
+# on.
+
+set -e
+
+get() {
+ urlbase=$1
+ filename="$2"
+ echo "fetching $urlbase$filename"
+ wget -nv -O "$filename" "$urlbase$filename"
+}
+
+dir() {
+ mkdir -p $1
+ cd $1
+}
+
+mkdir -p out
+out="$(pwd)/third_party/test"
+
+[[ -f $out/emma/emma.jar ]] || (
+ dir emma
+ get http://repo1.maven.org/maven2/emma/emma/2.0.5312/ emma-2.0.5312.jar
+ mkdir -p $out/emma
+ cp emma-2.0.5312.jar $out/emma/emma.jar
+)
+
+[[ -f $out/emma/emma_ant.jar ]] || (
+ dir emma
+ get http://repo1.maven.org/maven2/emma/emma_ant/2.1.5320/
emma_ant-2.1.5320.jar
+ mkdir -p $out/emma
+ cp emma_ant-2.1.5320.jar $out/emma/emma_ant.jar
+ cd ..
+ rm -rf emma
+)
+
+[[ -f $out/junit/junit.jar ]] || (
+ dir junit
+ get http://cloud.github.com/downloads/KentBeck/junit/ junit4.10.zip
+ unzip -o -q junit4.10.zip
+ mkdir -p $out/junit
+ cp junit4.10/junit-4.10.jar $out/junit/junit.jar
+ cp junit4.10/junit-4.10-src.jar $out/junit/src.jar
+ cd ..
+ rm -rf junit
+)
+
+rm -rf out
\ No newline at end of file
Modified: incubator/wave/trunk/third_party/test/junit/README.google
URL:
http://svn.apache.org/viewvc/incubator/wave/trunk/third_party/test/junit/README.google?rev=1432497&r1=1432496&r2=1432497&view=diff
==============================================================================
--- incubator/wave/trunk/third_party/test/junit/README.google (original)
+++ incubator/wave/trunk/third_party/test/junit/README.google Sat Jan 12
20:01:51 2013
@@ -1,5 +1,5 @@
URL: http://www.junit.org/
-Version: 3.8.2
+Version: 4.10
License: Common Public License
License File: LICENSE