Fork me on GitHub

Rat (Release Audit Tool) results

The following document contains the results of Rat (Release Audit Tool).

*****************************************************
Summary
-------
Generated at: 2017-03-19T19:23:46-05:00

Notes: 1
Binaries: 1
Archives: 0
Standards: 35

Apache Licensed: 31
Generated Documents: 0

JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.

4 Unknown Licenses

*****************************************************

Files with unapproved licenses:

  publish-rc.sh
  release.sh
  src/main/resources/streams-java-checkstyle.xml
  src/main/resources/streams-java-intellij.xml

*****************************************************

*****************************************************
  Files with Apache License headers will be marked AL
  Binary files (which do not require any license headers) will be marked B
  Compressed archives will be marked A
  Notices, licenses etc. will be marked N
  AL    .travis.yml
  AL    application.conf
  N     KEYS
  AL    pom.xml
 !????? publish-rc.sh
 !????? release.sh
  AL    src/main/resources/architecture.dot
  AL    src/main/resources/example.dot
  B     src/main/resources/images/streams_logo.jpg
  AL    src/main/resources/integration.dot
 !????? src/main/resources/streams-java-checkstyle.xml
 !????? src/main/resources/streams-java-intellij.xml
  AL    src/site/markdown/architecture.md
  AL    src/site/markdown/changelog.md
  AL    src/site/markdown/code-conventions.md
  AL    src/site/markdown/concepts.md
  AL    src/site/markdown/credentials/twitter.md
  AL    src/site/markdown/dependency-info.md
  AL    src/site/markdown/downloads.md
  AL    src/site/markdown/faq.md
  AL    src/site/markdown/index.md
  AL    src/site/markdown/install/docker.md
  AL    src/site/markdown/install/git.md
  AL    src/site/markdown/install/java.md
  AL    src/site/markdown/install/maven.md
  AL    src/site/markdown/install/sbt.md
  AL    src/site/markdown/integration.md
  AL    src/site/markdown/release-setup.md
  AL    src/site/markdown/release.md
  AL    src/site/markdown/services/cassandra.md
  AL    src/site/markdown/services/elasticsearch.md
  AL    src/site/markdown/services/mongo.md
  AL    src/site/markdown/services/neo4j.md
  AL    src/site/markdown/source-repository.md
  AL    src/site/markdown/website.md
  AL    src/site/markdown/who.md
  AL    src/site/site.xml
 
*****************************************************

 Printing headers for text files without a valid license header...
 
=====================================================
== File: publish-rc.sh
=====================================================
#!/bin/bash

REL=$1
REP=$2

if [[ -z "$REL" || -z "$REP" ]]; then
    echo "You must specify a release version and a staging repo name"
    exit 1
fi


mkdir -p dist
cd dist
svn co https://dist.apache.org/repos/dist/dev/incubator/streams dev
cd dev
mkdir $REL
cd $REL
wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-project/$REL/streams-project-$REL-source-release.zip
wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-project/$REL/streams-project-$REL-source-release.zip.md5
wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-project/$REL/streams-project-$REL-source-release.zip.sha1
wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-project/$REL/streams-project-$REL-source-release.zip.asc

wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-examples/$REL/streams-examples-$REL-source-release.zip
wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-examples/$REL/streams-examples-$REL-source-release.zip.md5
wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-examples/$REL/streams-examples-$REL-source-release.zip.sha1
wget https://repository.apache.org/content/repositories/$REP/org/apache/streams/streams-examples/$REL/streams-examples-$REL-source-release.zip.asc

svn add .*
svn commit -m "Publishing $REL RC for VOTE"
cd ../..

=====================================================
== File: release.sh
=====================================================
#!/bin/bash

REL=$1
DEV=$2
REPO="-Dmaven.repo.local=/tmp/streams_release"

if [[ -z "$REL" || -z "$DEV" ]]; then
    echo "You must specify a release and new dev version"
    exit 1
fi


mkdir -p /tmp/streams_release
mkdir -p logs

printInfo() {
    echo "\n"
    mvn -v
    echo "\n"
    docker -v
    echo "\n"
    docker info
    echo "\n\n"
    git status
    git log | head
}

checkStatus() {
    local output=$1
    if [[ -z "$(tail $output | egrep 'BUILD SUCCESS')" ]]; then
        echo "Release failed"
        exit 1
    fi
}

#incubator-streams
git clone https://git-wip-us.apache.org/repos/asf/incubator-streams.git ./incubator-streams-$REL
cd incubator-streams-$REL

printInfo

mvn clean verify $REPO > ../logs/incubator-streams_unittests.txt
checkStatus ../logs/incubator-streams_unittests.txt

mvn $REPO clean apache-rat:check -e -DskipTests=true  > ../logs/incubator-streams-project_apache-rat_check.txt
checkStatus ../logs/incubator-streams-project_apache-rat_check.txt

cp ../streams-c84fa47bd759.p12 .
cp ../application.conf .
sed -i '' "s#<WORK>#$(pwd)#g" application.conf

=====================================================
== File: src/main/resources/streams-java-checkstyle.xml
=====================================================
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
          "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
          "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">

<!--
    Checkstyle configuration that checks the Google coding conventions from Google Java Style
    that can be found at https://google.github.io/styleguide/javaguide.html.

    Checkstyle is very configurable. Be sure to read the documentation at
    http://checkstyle.sf.net (or in your downloaded distribution).

    To completely disable a check, just comment it out or delete it from the file.

    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
 -->

<module name = "Checker">
    <property name="charset" value="UTF-8"/>

    <property name="severity" value="warning"/>

    <property name="fileExtensions" value="java, properties, xml"/>
    <!-- Checks for whitespace                               -->
    <!-- See http://checkstyle.sf.net/config_whitespace.html -->
        <module name="FileTabCharacter">
            <property name="eachLine" value="true"/>
        </module>

    <module name="TreeWalker">
        <module name="OuterTypeFilename"/>
        <module name="IllegalTokenText">
            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
            <property name="format" value="\\u00(08|09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
            <property name="message" value="Avoid using corresponding octal or Unicode escape."/>
        </module>
        <module name="AvoidEscapedUnicodeCharacters">
            <property name="allowEscapesForControlCharacters" value="true"/>
            <property name="allowByTailComment" value="true"/>
            <property name="allowNonPrintableEscapes" value="true"/>
        </module>
        <module name="LineLength">
            <property name="max" value="140"/>
            <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
        </module>
        <module name="AvoidStarImport"/>
        <module name="OneTopLevelClass"/>
        <module name="NoLineWrap"/>
        <module name="EmptyBlock">
            <property name="option" value="TEXT"/>

=====================================================
== File: src/main/resources/streams-java-intellij.xml
=====================================================
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="GoogleStyle">
  <option name="JAVA_INDENT_OPTIONS">
    <value>
      <option name="INDENT_SIZE" value="2" />
      <option name="CONTINUATION_INDENT_SIZE" value="4" />
      <option name="TAB_SIZE" value="8" />
      <option name="USE_TAB_CHARACTER" value="false" />
      <option name="SMART_TABS" value="false" />
      <option name="LABEL_INDENT_SIZE" value="0" />
      <option name="LABEL_INDENT_ABSOLUTE" value="false" />
      <option name="USE_RELATIVE_INDENTS" value="false" />
    </value>
  </option>
  <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
  <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
  <option name="IMPORT_LAYOUT_TABLE">
    <value>
      <package name="org.apache.streams" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="android" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="antenna" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="antlr" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="ar" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="asposewobfuscated" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="asquare" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="atg" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="au" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="beaver" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="bibtex" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="bmsi" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="bsh" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="ccl" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="cern" withSubpackages="true" static="false" />
      <emptyLine />
      <package name="ChartDirector" withSubpackages="true" static="false" />
      <emptyLine />