Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
WHIRR-319. Run rat & checkstyle before packaging (tomwhite and asavu)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/whirr/trunk@1130219 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Andrei Savu committed Jun 1, 2011
1 parent 2492ed6 commit c048543
Show file tree
Hide file tree
Showing 16 changed files with 135 additions and 21 deletions.
2 changes: 1 addition & 1 deletion BUILD.txt
Expand Up @@ -10,7 +10,7 @@ BUILDING


To run unit tests and install artifacts locally: To run unit tests and install artifacts locally:


mvn clean install mvn install


To build a source package: To build a source package:


Expand Down
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -6,6 +6,8 @@ Trunk (unreleased changes)


WHIRR-28. Add examples module (asavu) WHIRR-28. Add examples module (asavu)


WHIRR-319. Run rat & checkstyle before packaging (tomwhite and asavu)

Release 0.5.0 - 2011-05-16 Release 0.5.0 - 2011-05-16


INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES
Expand Down
4 changes: 4 additions & 0 deletions build-tools/src/assemble-bin.xml
Expand Up @@ -44,6 +44,10 @@
<exclude>**/${project.build.directory}/**</exclude> <exclude>**/${project.build.directory}/**</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude> <exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>**/*.log</exclude> <exclude>**/*.log</exclude>
<exclude>**/*.log.*</exclude>
<exclude>**/*.rej</exclude>
<exclude>**/*.classpath</exclude>
<exclude>**/whirr-logo.ai</exclude>
</excludes> </excludes>
</fileSet> </fileSet>
<fileSet> <fileSet>
Expand Down
5 changes: 5 additions & 0 deletions build-tools/src/assemble-src.xml
Expand Up @@ -21,6 +21,7 @@
<formats> <formats>
<format>tar.gz</format> <format>tar.gz</format>
</formats> </formats>
<baseDirectory>${project.build.finalName}-src</baseDirectory>
<fileSets> <fileSets>
<fileSet> <fileSet>
<directory>${project.basedir}</directory> <directory>${project.basedir}</directory>
Expand All @@ -32,6 +33,10 @@
<exclude>**/${project.build.directory}/**</exclude> <exclude>**/${project.build.directory}/**</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude> <exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>**/*.log</exclude> <exclude>**/*.log</exclude>
<exclude>**/*.log.*</exclude>
<exclude>**/*.rej</exclude>
<exclude>**/*.classpath</exclude>
<exclude>**/whirr-logo.ai</exclude>
</excludes> </excludes>
</fileSet> </fileSet>
</fileSets> </fileSets>
Expand Down
@@ -1 +1,12 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.ByonClusterController org.apache.whirr.ByonClusterController
@@ -1 +1,12 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.service.NoopClusterActionHandler org.apache.whirr.service.NoopClusterActionHandler
2 changes: 1 addition & 1 deletion core/src/test/java/org/apache/whirr/ClusterTest.java
Expand Up @@ -35,7 +35,7 @@
public class ClusterTest { public class ClusterTest {


private Cluster cluster; private Cluster cluster;
private final int NUMBER_OF_INSTANCES = 5; private static final int NUMBER_OF_INSTANCES = 5;


@Before @Before
public void setUp() { public void setUp() {
Expand Down
@@ -1 +1,12 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.ClusterControllerFactoryTest$TestClusterController org.apache.whirr.ClusterControllerFactoryTest$TestClusterController
Expand Up @@ -47,7 +47,6 @@
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.OutputStreamWriter; import java.io.OutputStreamWriter;
import java.io.PrintStream;
import java.io.Writer; import java.io.Writer;
import java.util.Map; import java.util.Map;


Expand Down
41 changes: 23 additions & 18 deletions pom.xml
Expand Up @@ -213,21 +213,23 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
<version>2.5</version> <version>2.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
<configuration> <configuration>
<configLocation>./build-tools/src/main/resources/checkstyle.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory> <includeTestSourceDirectory>true</includeTestSourceDirectory>
<failsOnError>true</failsOnError> <failsOnError>true</failsOnError>
<!-- HBaseServiceController fails checkstyle since Thrift TException cannot be found. <!-- HBaseServiceController fails checkstyle since Thrift TException cannot be found.
Probably a classpath issue, so until that is fixed, we exclude the class. --> Probably a classpath issue, so until that is fixed, we exclude the class. -->
<excludes>**/org/apache/whirr/service/hbase/integration/HBaseServiceController.java</excludes> <excludes>**/org/apache/whirr/service/hbase/integration/HBaseServiceController.java</excludes>
</configuration> </configuration>
<dependencies>
<dependency>
<groupId>org.apache.whirr</groupId>
<artifactId>whirr-build-tools</artifactId>
<version>0.6.0-incubating-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -336,25 +338,28 @@
<plugin> <plugin>
<groupId>org.apache.rat</groupId> <groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId> <artifactId>apache-rat-plugin</artifactId>
<version>0.6</version> <version>0.7</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration> <configuration>
<excludes> <excludes>
<exclude>**/BUILD.txt</exclude> <exclude>**/BUILD.txt</exclude>
<exclude>**/CHANGES.txt</exclude> <exclude>**/CHANGES.txt</exclude>
<exclude>**/DISCLAIMER.txt</exclude>
<exclude>**/NOTICE-src.txt</exclude> <exclude>**/NOTICE-src.txt</exclude>
<exclude>**/.svn/**</exclude>
<exclude>.git/**</exclude> <exclude>.git/**</exclude>
<exclude>.gitignore</exclude> <exclude>.gitignore</exclude>
<exclude>**/*.json</exclude> <exclude>**/*.json</exclude>
<exclude>**/*.confluence</exclude> <exclude>**/*.confluence</exclude>
<exclude>**/.project</exclude>
<exclude>**/META-INF/services/*</exclude>
<exclude>**/target/**</exclude>
<exclude>lib/*LICENSE*</exclude>
<exclude>**/src/main/resources/version-banner.txt</exclude> <exclude>**/src/main/resources/version-banner.txt</exclude>
<exclude>docs/**</exclude> <exclude>docs/**</exclude>
<exclude>**/*.log</exclude> <exclude>**/*.log*</exclude>
<exclude>src/site/resources/images/whirr-logo.ai</exclude> <!-- binary -->
</excludes> </excludes>
</configuration> </configuration>
</plugin> </plugin>
Expand Down Expand Up @@ -393,9 +398,9 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
<version>2.5</version> <version>2.6</version>
<configuration> <configuration>
<configLocation>checkstyle.xml</configLocation> <configLocation>./build-tools/src/main/resources/checkstyle.xml</configLocation>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
Expand Down
@@ -1 +1,12 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.service.cassandra.CassandraClusterActionHandler org.apache.whirr.service.cassandra.CassandraClusterActionHandler
@@ -1 +1,12 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.service.elasticsearch.ElasticSearchHandler org.apache.whirr.service.elasticsearch.ElasticSearchHandler
@@ -1,3 +1,14 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.service.hadoop.HadoopNameNodeClusterActionHandler org.apache.whirr.service.hadoop.HadoopNameNodeClusterActionHandler
org.apache.whirr.service.hadoop.HadoopDataNodeClusterActionHandler org.apache.whirr.service.hadoop.HadoopDataNodeClusterActionHandler
org.apache.whirr.service.hadoop.HadoopJobTrackerClusterActionHandler org.apache.whirr.service.hadoop.HadoopJobTrackerClusterActionHandler
Expand Down
@@ -1,3 +1,14 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.service.hbase.HBaseMasterClusterActionHandler org.apache.whirr.service.hbase.HBaseMasterClusterActionHandler
org.apache.whirr.service.hbase.HBaseRegionServerClusterActionHandler org.apache.whirr.service.hbase.HBaseRegionServerClusterActionHandler
org.apache.whirr.service.hbase.HBaseRestServerClusterActionHandler org.apache.whirr.service.hbase.HBaseRestServerClusterActionHandler
Expand Down
@@ -1 +1,12 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.service.voldemort.VoldemortClusterActionHandler org.apache.whirr.service.voldemort.VoldemortClusterActionHandler
@@ -1 +1,12 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
org.apache.whirr.service.zookeeper.ZooKeeperClusterActionHandler org.apache.whirr.service.zookeeper.ZooKeeperClusterActionHandler

0 comments on commit c048543

Please sign in to comment.