diff --git a/.travis.yml b/.travis.yml index 1e0914f..844ce0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,6 @@ deploy: env: global: # GitHub - - secure: gvjC/Ye8iTorFO2nDHOwe6VP3VfMz2Bkf0u/qhjVvSHRKnm8ktQqBs0zeNLsFVg1SULica57iossKbQTuJwB8DQKZRx5mcUB5sQOzje5/vfBUq2f1jdl9SIJ2JFMxS09ogkSTA5YQ+t3xSf27Jb9izxoRQomCh88O4UYO1aPpJDH5gs/Q5eDWvuM+QO7NTZdOw0i9AeMAeZ+O+NA43hU8Punt/cuNemJlL9XnFHs94p7TbtcDjIGaP9P4okCeYmIgArxN0j3jwzGs7ojwekqk/eq95z+aY4YcyQdEbRxWZqPpPkZyv5iRELGJEjJIMRf843SJAhX4ldnL04cfYff/6UKGQJKxY3QiSOsnroOgZWAEqvxcu+/mBMvylB0Fy4tbS2Wu1o2yGt7N6UI54MRiUarCyyrkY565ETSuHWu3GecMxmEdTnkVMVdlRXj6jUcN5mma81i7rrhHdlSdgZsc6D3bmL7qwFpmCh5wha9gUtq078/n3VJIRxvETH8Iqjyza32wrD4KZkAAL0HRxv4XgGwu8H5d1kEtAxoSrAn0RqTFp1/E7X4XhyQvTOVCkhmLOv/nFPDLnN8XnggHCV1c9AQW3Bk6Ad1MG4k/58ZYAdxcFfu8GBcccPIjAJPAYayphLP0m/ZThXC1ekhyoolLjnpGDmutzv/08p841RzVXQ= + - secure: nOzpcW4Uw+QBTJ50mDmlzBQLLZsoLzIKF7ql2HdR3Ww5f9D/NycLF6iqhuH68YFOSu1kSfLJLehVS3SaQ0y3blZxNgP/JNOviJg15rvSvlZLWZkTLXF5npEX5ObeULP8MUxBsw6iNF8GMfNqGob+hun4K5eIORHVlv0zU3zIsffUWsDsB34dXuRDbS4b2aA0jsrpq4qMHK13Xw89fzZKpgvdmzQLeJkTQY4DOrjdpNu35IyCjopP9Ssvir0PqhQZBcolkbSltBo82X7GCviunSYLqwSy4mchYzs9i2MYMzO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gh-pages.sh b/deploy-gh-pages.sh index 3ede5d3..66b2c2b 100755 --- a/deploy-gh-pages.sh +++ b/deploy-gh-pages.sh @@ -1,10 +1,14 @@ #!/bin/sh +set -e + echo "Publishing javadocs to GitHub pages..." git clone --quiet --branch=gh-pages https://tus-bot:$GITHUB_TOKEN@github.com/tus/tus-java-client.git ../gh-pages commit=$(git rev-parse HEAD) -javadoc io.tus.java.client -sourcepath ./src/main/java -d ../gh-pages/javadoc + +./gradlew javadoc +cp -r ./build/docs/javadoc ../gh-pages/javadoc cd ../gh-pages diff --git a/src/main/java/io/tus/java/client/TusExecutor.java b/src/main/java/io/tus/java/client/TusExecutor.java index 8a65776..c891b20 100644 --- a/src/main/java/io/tus/java/client/TusExecutor.java +++ b/src/main/java/io/tus/java/client/TusExecutor.java @@ -9,6 +9,7 @@ * * This can be achieved by extending TusExecutor and implementing the abstract makeAttempt() method: *
+ * {@code
  *  TusExecutor executor = new TusExecutor() {
  *      {@literal @}Override
  *      protected void makeAttempt() throws ProtocolException, IOException {
@@ -18,6 +19,7 @@
  *      }
  *  };
  *  executor.makeAttempts();
+ * }
  * 
* * The retries are basically just calling the {@link #makeAttempt()} method which should then diff --git a/src/main/java/io/tus/java/client/TusUploader.java b/src/main/java/io/tus/java/client/TusUploader.java index 077e754..aad5e7e 100644 --- a/src/main/java/io/tus/java/client/TusUploader.java +++ b/src/main/java/io/tus/java/client/TusUploader.java @@ -127,7 +127,7 @@ public int getChunkSize() { * remote server. In general, try to set the payload size before invoking {@link #uploadChunk()} * the first time. * - * @see {@link #getRequestPayloadSize()} + * @see #getRequestPayloadSize() * * @param size Number of bytes for a single payload * @throws IllegalStateException Thrown if the uploader currently has a connection open @@ -144,7 +144,7 @@ public void setRequestPayloadSize(int size) throws IllegalStateException { /** * Get the current maximum payload size for a single request. * - * @see {@link #setChunkSize(int)} + * @see #setChunkSize(int) * * @return Number of bytes for a single payload */