aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas@google.com>2016-10-18 15:28:43 +0200
committerEugene Kliuchnikov <eustas@google.com>2016-10-18 15:28:43 +0200
commitd18c7369d99ba58e35d7af1fe6b0266e4f75edc3 (patch)
tree0a1e7980f436ce9d552f7a1bd5164bb52174f99e /java
parent2d441179bb86c234d719ca0df27f4ff4a032aab4 (diff)
downloadbrotli-d18c7369d99ba58e35d7af1fe6b0266e4f75edc3.zip
brotli-d18c7369d99ba58e35d7af1fe6b0266e4f75edc3.tar.gz
brotli-d18c7369d99ba58e35d7af1fe6b0266e4f75edc3.tar.bz2
Fix POM files sources paths
* also add javadocs and sources generation
Diffstat (limited to 'java')
-rwxr-xr-xjava/dec/BitReader.java1
-rwxr-xr-xjava/dec/BrotliInputStream.java3
-rwxr-xr-xjava/dec/pom.xml45
-rwxr-xr-xjava/integration/pom.xml4
4 files changed, 49 insertions, 4 deletions
diff --git a/java/dec/BitReader.java b/java/dec/BitReader.java
index b8447f7..0cbeed8 100755
--- a/java/dec/BitReader.java
+++ b/java/dec/BitReader.java
@@ -151,6 +151,7 @@ class BitReader {
br.available = 0;
br.endOfStreamReached = false;
readMoreInput(br);
+ /* This situation is impossible in current implementation. */
if (br.available == 0) {
throw new BrotliRuntimeException("Can't initialize reader");
}
diff --git a/java/dec/BrotliInputStream.java b/java/dec/BrotliInputStream.java
index 1e2d3ff..f04a47e 100755
--- a/java/dec/BrotliInputStream.java
+++ b/java/dec/BrotliInputStream.java
@@ -47,6 +47,7 @@ public class BrotliInputStream extends InputStream {
* <p> Will block the thread until first kilobyte of data of source is available.
*
* @param source underlying data source
+ * @throws IOException in case of corrupred data or source stream problems
*/
public BrotliInputStream(InputStream source) throws IOException {
this(source, DEFAULT_INTERNAL_BUFFER_SIZE, null);
@@ -63,6 +64,7 @@ public class BrotliInputStream extends InputStream {
* @param source compressed data source
* @param byteReadBufferSize size of internal buffer used in case of
* byte-by-byte reading
+ * @throws IOException in case of corrupred data or source stream problems
*/
public BrotliInputStream(InputStream source, int byteReadBufferSize) throws IOException {
this(source, byteReadBufferSize, null);
@@ -80,6 +82,7 @@ public class BrotliInputStream extends InputStream {
* @param byteReadBufferSize size of internal buffer used in case of
* byte-by-byte reading
* @param customDictionary custom dictionary data; {@code null} if not used
+ * @throws IOException in case of corrupred data or source stream problems
*/
public BrotliInputStream(InputStream source, int byteReadBufferSize,
byte[] customDictionary) throws IOException {
diff --git a/java/dec/pom.xml b/java/dec/pom.xml
index f8cacd6..81753f4 100755
--- a/java/dec/pom.xml
+++ b/java/dec/pom.xml
@@ -15,8 +15,8 @@
</properties>
<build>
- <sourceDirectory>..</sourceDirectory>
- <testSourceDirectory>..</testSourceDirectory>
+ <sourceDirectory>.</sourceDirectory>
+ <testSourceDirectory>.</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -32,6 +32,47 @@
</testIncludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.4</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ <configuration>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/*Test*.java</exclude>
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.10.4</version>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <sourceFileExcludes>
+ <exclude>**/*Test*.java</exclude>
+ </sourceFileExcludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
diff --git a/java/integration/pom.xml b/java/integration/pom.xml
index dce1dbf..6625f69 100755
--- a/java/integration/pom.xml
+++ b/java/integration/pom.xml
@@ -5,7 +5,7 @@
<groupId>org.brotli</groupId>
<artifactId>integration</artifactId>
<version>0.1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
+ <packaging>jar</packaging>
<name>integration</name>
<url>http://brotli.org</url>
@@ -23,7 +23,7 @@
</properties>
<build>
- <sourceDirectory>..</sourceDirectory>
+ <sourceDirectory>.</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>