mirror of
https://github.com/google/brotli.git
synced 2024-12-28 02:31:05 +00:00
Fix POM files sources paths
* also add javadocs and sources generation
This commit is contained in:
parent
2d441179bb
commit
d18c7369d9
@ -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");
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user