repackaged code, re-organized pom to closer match whisker


git-svn-id: https://svn.apache.org/repos/asf/incubator/rat/tentacles/trunk@1188744 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 0dc311e..ff7ae5a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,13 +30,55 @@
     <version>10</version>
   </parent>
 
-  <groupId>org.apache.openejb.tools</groupId>
-  <artifactId>legal</artifactId>
+  <groupId>org.apache.rat.tentacles</groupId>
+  <artifactId>apache-rat-tentacles</artifactId>
   <packaging>jar</packaging>
-  <version>1.0-SNAPSHOT</version>
-  <name>OpenEJB Legal Tools</name>
+  <version>0.1-SNAPSHOT</version>
+  <name>Apache Rat Tentacles</name>
+  <description>Utility to download binaries from a remote repository and scan them for LICENSE and NOTICE files</description>
 
 
+  <dependencies>
+
+    <dependency>
+      <groupId>org.apache.httpcomponents</groupId>
+      <artifactId>httpclient</artifactId>
+      <version>4.1.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.httpcomponents</groupId>
+      <artifactId>httpcore</artifactId>
+      <version>4.1.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <version>1.2.16</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.velocity</groupId>
+      <artifactId>velocity</artifactId>
+      <version>1.7</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.codehaus.swizzle</groupId>
+      <artifactId>swizzle-stream</artifactId>
+      <version>1.6.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.8.1</version>
+      <scope>test</scope>
+    </dependency>
+
+  </dependencies>
+
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -48,7 +90,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.3.2</version>
         <configuration>
           <source>1.6</source>
           <target>1.6</target>
@@ -65,7 +106,7 @@
           </descriptorRefs>
           <archive>
             <manifest>
-              <mainClass>org.apache.openejb.tools.legal.Main</mainClass>
+              <mainClass>org.apache.rat.tentacles.Main</mainClass>
             </manifest>
           </archive>
         </configuration>
@@ -82,71 +123,5 @@
     </plugins>
   </build>
 
-  <repositories>
-    <repository>
-      <id>apache-m2-snapshot</id>
-      <name>Apache Snapshot Repository</name>
-      <url>http://repository.apache.org/snapshots</url>
-    </repository>
-    <repository>
-      <id>scala-tools</id>
-      <url>http://scala-tools.org/repo-releases/</url>
-    </repository>
-  </repositories>
-
-  <dependencies>
-
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>test</scope>
-    </dependency>
-
-    <!--  Apache commons compatible with signpost -->
-    <dependency>
-      <groupId>org.apache.httpcomponents</groupId>
-      <artifactId>httpclient</artifactId>
-      <version>4.1.1</version>
-      <scope>compile</scope>
-    </dependency>
-
-    <dependency>
-      <groupId>org.apache.httpcomponents</groupId>
-      <artifactId>httpcore</artifactId>
-      <version>4.1.1</version>
-      <scope>compile</scope>
-    </dependency>
-
-    <dependency>
-      <groupId>log4j</groupId>
-      <artifactId>log4j</artifactId>
-      <version>1.2.16</version>
-    </dependency>
-
-    <!-- markdown 2 html -->
-    <dependency>
-      <groupId>org.markdownj</groupId>
-      <artifactId>markdownj</artifactId>
-      <version>0.3.0-1.0.2b4</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.commons</groupId>
-      <artifactId>commons-io</artifactId>
-      <version>1.3.2</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.velocity</groupId>
-      <artifactId>velocity</artifactId>
-      <version>1.7</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.codehaus.swizzle</groupId>
-      <artifactId>swizzle-stream</artifactId>
-      <version>1.6.1</version>
-    </dependency>
-  </dependencies>
-
 </project>
 
diff --git a/src/main/java/org/apache/openejb/tools/legal/IOUtil.java b/src/main/java/org/apache/rat/tentacles/IOUtil.java
similarity index 98%
rename from src/main/java/org/apache/openejb/tools/legal/IOUtil.java
rename to src/main/java/org/apache/rat/tentacles/IOUtil.java
index 7302efd..0e31e2e 100644
--- a/src/main/java/org/apache/openejb/tools/legal/IOUtil.java
+++ b/src/main/java/org/apache/rat/tentacles/IOUtil.java
@@ -14,7 +14,7 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package org.apache.openejb.tools.legal;
+package org.apache.rat.tentacles;
 
 import java.io.BufferedInputStream;
 import java.io.BufferedOutputStream;
diff --git a/src/main/java/org/apache/openejb/tools/legal/Main.java b/src/main/java/org/apache/rat/tentacles/Main.java
similarity index 99%
rename from src/main/java/org/apache/openejb/tools/legal/Main.java
rename to src/main/java/org/apache/rat/tentacles/Main.java
index ef42757..7621677 100644
--- a/src/main/java/org/apache/openejb/tools/legal/Main.java
+++ b/src/main/java/org/apache/rat/tentacles/Main.java
@@ -14,7 +14,7 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package org.apache.openejb.tools.legal;
+package org.apache.rat.tentacles;
 
 import org.apache.http.Header;
 import org.apache.http.HttpResponse;
@@ -688,7 +688,7 @@
 
         private final Set<License> otherLicenses = new HashSet<License>();
         private final Set<Notice> otherNotices = new HashSet<Notice>();
-        private Map<URI,URI> others;
+        private Map<URI, URI> others;
 
         public Archive(File file) {
             this.uri = repository.toURI().relativize(file.toURI());
diff --git a/src/main/java/org/apache/openejb/tools/legal/Templates.java b/src/main/java/org/apache/rat/tentacles/Templates.java
similarity index 98%
rename from src/main/java/org/apache/openejb/tools/legal/Templates.java
rename to src/main/java/org/apache/rat/tentacles/Templates.java
index 9e2b1f4..187df54 100644
--- a/src/main/java/org/apache/openejb/tools/legal/Templates.java
+++ b/src/main/java/org/apache/rat/tentacles/Templates.java
@@ -14,10 +14,9 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package org.apache.openejb.tools.legal;
+package org.apache.rat.tentacles;
 
 import org.apache.log4j.Logger;
-import org.apache.velocity.Template;
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.VelocityEngine;
 import org.apache.velocity.runtime.log.CommonsLogLogChute;