Skip to content

Commit

Permalink
add generate-site.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoten committed Feb 18, 2016
1 parent 0cb021a commit 613e2cb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
[![Travis CI](https://travis-ci.org/davidmoten/guava-mini.svg)](https://travis-ci.org/davidmoten/guava-mini)<br/>
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.davidmoten/guava-mini/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.github.davidmoten/guava-mini)<br/>

Compatible with java 6 and later.

Optional, Preconditions, Objects classes taken from guava
Taken from Guava:

* `Optional`
* `Objects`: `equal`, `hashCode`
* `Preconditions`:`checkNotNull`, `checkArgument`
* `Lists`: `newArrayList`
* `Sets`: `newHashSet`
11 changes: 11 additions & 0 deletions generate-site.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e
PROJECT=guava-mini
mvn site
cd ../davidmoten.github.io
git pull
mkdir -p $PROJECT
cp -r ../$PROJECT/target/site/* #PROJECT/
git add .
git commit -am "update site reports"
git push
4 changes: 4 additions & 0 deletions src/main/java/com/github/davidmoten/guavamini/Iterators.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ private Iterators() {
* will be left exhausted: its {@code hasNext()} method will return
* {@code false}.
*
* @param addTo
* collection to add to
* @param iterator
* iterator whose elements will be added to the collection
* @param <T>
* generic type of collection
* @return {@code true} if {@code collection} was modified as a result of
Expand Down

0 comments on commit 613e2cb

Please sign in to comment.