You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafu.apache.org by mh...@apache.org on 2014/03/04 12:55:07 UTC
git commit: Update website with updated gradle documentation
Repository: incubator-datafu
Updated Branches:
refs/heads/master 778bef1eb -> b516cb872
Update website with updated gradle documentation
Project: http://git-wip-us.apache.org/repos/asf/incubator-datafu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-datafu/commit/b516cb87
Tree: http://git-wip-us.apache.org/repos/asf/incubator-datafu/tree/b516cb87
Diff: http://git-wip-us.apache.org/repos/asf/incubator-datafu/diff/b516cb87
Branch: refs/heads/master
Commit: b516cb87279dd4a4b8eb357e432a2b71939997c9
Parents: 778bef1
Author: Matt Hayes <mh...@linkedin.com>
Authored: Tue Mar 4 03:53:46 2014 -0800
Committer: Matt Hayes <mh...@linkedin.com>
Committed: Tue Mar 4 03:53:46 2014 -0800
----------------------------------------------------------------------
.../docs/datafu/contributing.html.markdown | 31 ++++++++------------
1 file changed, 13 insertions(+), 18 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/b516cb87/site/source/docs/datafu/contributing.html.markdown
----------------------------------------------------------------------
diff --git a/site/source/docs/datafu/contributing.html.markdown b/site/source/docs/datafu/contributing.html.markdown
index 00c6e39..e23ded4 100644
--- a/site/source/docs/datafu/contributing.html.markdown
+++ b/site/source/docs/datafu/contributing.html.markdown
@@ -17,35 +17,30 @@ To clone the repository run the following command:
The following command generates the necessary files to load the project in Eclipse:
- ant eclipse
+ ./gradlew eclipse
+
+To clean up the eclipse files:
+
+ ./gradlew cleanEclipse
Note that you may run out of heap when executing tests in Eclipse. To fix this adjust your heap settings for the TestNG plugin. Go to Eclipse->Preferences. Select TestNG->Run/Debug. Add "-Xmx1G" to the JVM args.
## Build the JAR
- ant jar
+The Apache DataFu Pig library can be built by running the command below.
+
+ ./gradlew assemble
+
+The built JAR can be found under `datafu-pig/build/libs` by the name `datafu-pig-x.y.z.jar`, where x.y.z is the version.
## Running Tests
All the tests can be run from within eclipse. However they can also be run from the command line. To run all the tests:
- ant test
-
-To run specific tests from the command line, you have a few options. One option is to run all tests within a given class. To do this, run the same command but override `testclasses.pattern`, which defaults to `**/*.class`. For example, to run all tests defined in `QuantileTests`:
-
- ant test -Dtestclasses.pattern=**/QuantileTests.class
-
-The other option is to run a specific test within a class:
-
- ant test -Dtest.methods=datafu.test.pig.stats.QuantileTests.quantileTest
-
-You may also provide a command separated list of tests:
-
- ant test -Dtest.methods=datafu.test.pig.stats.QuantileTests.quantileTest,datafu.test.pig.stats.QuantileTests.quantile2Test
+ ./gradlew test
-## Compute code coverage
+To run a specific set of tests from the command line, you can define the `test.single` system property. For example, to run all tests defined in `QuantileTests`:
-We use [Cobertura](http://cobertura.github.io/cobertura/) to compute code coverage, which can be run with:
+ ./gradlew :datafu-pig:test -Dtest.single=QuantileTests
- ant coverage