http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/MahoutCleanUp.xml ---------------------------------------------------------------------- diff --git a/buildtools/MahoutCleanUp.xml b/buildtools/MahoutCleanUp.xml deleted file mode 100644 index 75b404d..0000000 --- a/buildtools/MahoutCleanUp.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You 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. ---> -<profiles version="2"> -<profile kind="CleanUpProfile" name="CXF" version="2"> -<setting id="cleanup.always_use_blocks" value="true"/> -<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="true"/> -<setting id="cleanup.use_this_for_non_static_field_access" value="false"/> -<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/> -<setting id="cleanup.remove_unused_private_fields" value="true"/> -<setting id="cleanup.remove_unnecessary_casts" value="true"/> -<setting id="cleanup.sort_members_all" value="true"/> -<setting id="cleanup.make_local_variable_final" value="true"/> -<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/> -<setting id="cleanup.always_use_this_for_non_static_method_access" value="false"/> -<setting id="cleanup.convert_to_enhanced_for_loop" value="true"/> -<setting id="cleanup.remove_trailing_whitespaces" value="true"/> -<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/> -<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/> -<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/> -<setting id="cleanup.remove_unused_private_types" value="true"/> -<setting id="cleanup.format_source_code" value="true"/> -<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/> -<setting id="cleanup.remove_unused_local_variables" value="true"/> -<setting id="cleanup.add_missing_nls_tags" value="false"/> -<setting id="cleanup.add_missing_override_annotations" value="false"/> -<setting id="cleanup.add_missing_annotations" value="true"/> -<setting id="cleanup.use_this_for_non_static_method_access" value="false"/> -<setting id="cleanup.make_variable_declarations_final" value="false"/> -<setting id="cleanup.remove_private_constructors" value="true"/> -<setting id="cleanup.make_parameters_final" value="false"/> -<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/> -<setting id="cleanup.add_generated_serial_version_id" value="false"/> -<setting id="cleanup.add_missing_deprecated_annotations" value="true"/> -<setting id="cleanup.organize_imports" value="true"/> -<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="true"/> -<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/> -<setting id="cleanup.always_use_this_for_non_static_field_access" value="false"/> -<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/> -<setting id="cleanup.use_parentheses_in_expressions" value="true"/> -<setting id="cleanup.never_use_blocks" value="false"/> -<setting id="cleanup.sort_members" value="false"/> -<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/> -<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/> -<setting id="cleanup.add_default_serial_version_id" value="true"/> -<setting id="cleanup.add_serial_version_id" value="false"/> -<setting id="cleanup.use_blocks" value="true"/> -<setting id="cleanup.make_private_fields_final" value="true"/> -<setting id="cleanup.remove_unused_imports" value="true"/> -<setting id="cleanup.remove_unused_private_methods" value="true"/> -<setting id="cleanup.remove_unused_private_members" value="false"/> -</profile> -</profiles>
http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/addcheckstyle.xsl ---------------------------------------------------------------------- diff --git a/buildtools/addcheckstyle.xsl b/buildtools/addcheckstyle.xsl deleted file mode 100644 index 9fad6a7..0000000 --- a/buildtools/addcheckstyle.xsl +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> - -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:output method="xml" indent="yes"/> - <xsl:strip-space elements="*"/> - - <xsl:param name="checkstyleconfig"/> - <xsl:param name="checkstyleconfigcorba"/> - - <xsl:template match="*"> - <xsl:copy> - <xsl:copy-of select="@*"/> - <xsl:apply-templates/> - </xsl:copy> - </xsl:template> - - <xsl:template match="checkstyle-configurations"> - <xsl:copy> - <xsl:copy-of select="@*"/> - <xsl:apply-templates/> - - <xsl:choose> - <xsl:when test="not(check-configuration/@name='CXF CORBA Checks')"> - <check-configuration name="CXF Checks" type="external" description=""> - <xsl:attribute name="location"><xsl:value-of select="$checkstyleconfig"/></xsl:attribute> - </check-configuration> - <check-configuration name="CXF CORBA Checks" type="external" description=""> - <xsl:attribute name="location"><xsl:value-of select="$checkstyleconfigcorba"/></xsl:attribute> - </check-configuration> - </xsl:when> - </xsl:choose> - </xsl:copy> - </xsl:template> - -</xsl:stylesheet> - http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/apache-header.txt ---------------------------------------------------------------------- diff --git a/buildtools/apache-header.txt b/buildtools/apache-header.txt deleted file mode 100644 index 8c563ab..0000000 --- a/buildtools/apache-header.txt +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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. - */ http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/clover.license ---------------------------------------------------------------------- diff --git a/buildtools/clover.license b/buildtools/clover.license deleted file mode 100644 index 8fe0c1a..0000000 --- a/buildtools/clover.license +++ /dev/null @@ -1,7 +0,0 @@ -AAABJw0ODAoPeNpdkMtqwzAQRff6CkHXCX60xTUIWmwXAokd6qSrQpkqk0REloUku8nf16/QkO0M5 -9y58/BuBE2RUz+inhcHXhw+0aTc0MDzXkiKlhuhnagVS2TdovmKaaFR0bJuDEeSGIR+m4JD1iMzP -5j5EUlq5YC7HCpkK3FCuuIc1E6itYQPonneVD9oiv3WorFs5l+ZbAVCsqqDqoF5BQ38iPPaHEjWg -myGQLYHafHq6jDRInOm+R9JWf/iTp8O2uBenNGyzjAfZUQKjsriZxfdywLShSqHChTH7KyFuUyNf -G9qNGmXI7i5aBzKFess/y6L7UeSkcIcQAk73vc2BpVZzvzw+TEKQzKxi5QtF+nd8Ca0UVJUwuGOr -LsfH8Hi/Xf/AKr+lFAwLAIUbZJXXec7rOMv34bm2Jt2aFDczSICFCfzK7TpFe/6TeF2k7ChCciTN -jKmX02eq \ No newline at end of file http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/codetemplates.xml ---------------------------------------------------------------------- diff --git a/buildtools/codetemplates.xml b/buildtools/codetemplates.xml deleted file mode 100644 index 7617ff4..0000000 --- a/buildtools/codetemplates.xml +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> -<templates><template autoinsert="true" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">/** * @return Returns the ${bare_field_name}. - */</template><template autoinsert="true" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">/** - * @param ${param} The ${bare_field_name} to set. - */</template><template autoinsert="true" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">/** - * ${tags} - */</template><template autoinsert="false" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment">/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ -</template><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">/** - * ${tags} - */</template><template autoinsert="false" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment"></template><template autoinsert="true" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">/** - * ${tags} - */</template><template autoinsert="true" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment">/** {@inheritDoc}*/</template><template autoinsert="true" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">/** - * ${tags} - * ${see_to_target} - */</template><template autoinsert="true" context="newtype_context" deleted="false" description="Newly created files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.newtype" name="newtype">${filecomment} -${package_declaration} - -${typecomment} -${type_declaration}</template><template autoinsert="true" context="classbody_context" deleted="false" description="Code in new class type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.classbody" name="classbody"> -</template><template autoinsert="true" context="interfacebody_context" deleted="false" description="Code in new interface type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name="interfacebody"> -</template><template autoinsert="true" context="enumbody_context" deleted="false" description="Code in new enum type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.enumbody" name="enumbody"> -</template><template autoinsert="true" context="annotationbody_context" deleted="false" description="Code in new annotation type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name="annotationbody"> -</template><template autoinsert="true" context="catchblock_context" deleted="false" description="Code in new catch blocks" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.catchblock" name="catchblock">// ${todo} Auto-generated catch block -${exception_var}.printStackTrace();</template><template autoinsert="true" context="methodbody_context" deleted="false" description="Code in created method stubs" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodbody" name="methodbody">// ${todo} Auto-generated method stub -${body_statement}</template><template autoinsert="true" context="constructorbody_context" deleted="false" description="Code in created constructor stubs" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name="constructorbody">${body_statement} -// ${todo} Auto-generated constructor stub</template><template autoinsert="true" context="getterbody_context" deleted="false" description="Code in created getters" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.getterbody" name="getterbody">return ${field};</template><template autoinsert="true" context="setterbody_context" deleted="false" description="Code in created setters" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.setterbody" name="setterbody">${field} = ${param};</template></templates> http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/pom.xml ---------------------------------------------------------------------- diff --git a/buildtools/pom.xml b/buildtools/pom.xml deleted file mode 100644 index a28dbf4..0000000 --- a/buildtools/pom.xml +++ /dev/null @@ -1,147 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You 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. ---> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache</groupId> - <artifactId>apache</artifactId> - <version>17</version> - <relativePath /> - </parent> - - <groupId>org.apache.mahout</groupId> - <artifactId>mahout-buildtools</artifactId> - <version>0.13.1-SNAPSHOT</version> - <name>Mahout Build Tools</name> - - <packaging>jar</packaging> - - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - - <prerequisites> - <maven>3.3.3</maven> - </prerequisites> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-enforcer-plugin</artifactId> - <version>1.4</version> - <executions> - <execution> - <id>enforce-versions</id> - <goals> - <goal>enforce</goal> - </goals> - <configuration> - <rules> - <requireJavaVersion> - <version>[1.7,)</version> - </requireJavaVersion> - <requireMavenVersion> - <version>[3.3.3,)</version> - </requireMavenVersion> - </rules> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <configuration> - <skip>true</skip> - <skipDeploy>true</skipDeploy> - </configuration> - </plugin> - </plugins> - </build> - - <profiles> - <profile> - <id>setup-eclipse-workspace</id> - <properties> - <eclipse.workspace.dir>${basedir}/../workspace</eclipse.workspace.dir> - </properties> - <build> - <defaultGoal>process-test-sources</defaultGoal> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-eclipse-plugin</artifactId> - <version>2.10</version> - <inherited>false</inherited> - <executions> - <execution> - <id>setup.eclipse.workspace</id> - <phase>process-test-sources</phase> - <goals> - <goal>configure-workspace</goal> - </goals> - </execution> - </executions> - <configuration> - <workspace>${eclipse.workspace.dir}</workspace> - <workspaceCodeStylesURL>file:Eclipse-Lucene-Codestyle.xml</workspaceCodeStylesURL> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.8</version> - <inherited>false</inherited> - <dependencies> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-nodeps</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-trax</artifactId> - <version>1.7.1</version> - </dependency> - </dependencies> - <executions> - <execution> - <id>setup.workspace</id> - <phase>validate</phase> - <configuration> - <tasks> - <ant antfile="${basedir}/setup-eclipse-workspace.xml"> - <target name="main" /> - </ant> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - </profiles> -</project> http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/setup-eclipse-workspace.xml ---------------------------------------------------------------------- diff --git a/buildtools/setup-eclipse-workspace.xml b/buildtools/setup-eclipse-workspace.xml deleted file mode 100644 index 8202c74..0000000 --- a/buildtools/setup-eclipse-workspace.xml +++ /dev/null @@ -1,90 +0,0 @@ -<?xml version="1.0"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You 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. ---> -<!-- - This is an ANT build.xml file that automates setting up an eclipse workspace. Ironic, eh? - - Input properties: - eclipse.workspace.dir == the workspace ---> -<project> - <target name="main"> - <property name="full.eclipse.workspace" location="${eclipse.workspace.dir}"/> - <mkdir dir="${full.eclipse.workspace}"/> - <property name="checkstyle-dir" value="${full.eclipse.workspace}/.metadata/.plugins/net.sf.eclipsecs.core"/> - <property name="checkstyle.url" location="../etc/mahout-checkstyle.xml"/> - <mkdir dir="${full.eclipse.workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings"/> - <mkdir dir="${checkstyle-dir}"/> - <mkdir dir="${full.eclipse.workspace}/.metadata/.plugins/net.sourceforge.pmd.eclipse"/> - <copy file="${checkstyle.url}" tofile="${full.eclipse.workspace}/checkstyle.xml"/> - <property name="template.checkstyle.url" location="template.checkstyle-config.xml"/> - <copy file="${template.checkstyle.url}" tofile="${eclipse.workspace.dir}/template.checkstyle-config.xml"/> - <property name="addcheckstyle.url" location="addcheckstyle.xsl"/> - <copy file="${addcheckstyle.url}" tofile="${eclipse.workspace.dir}/addcheckstyle.xsl"/> - <!-- Add checkstyle config --> - <copy file="${eclipse.workspace.dir}/template.checkstyle-config.xml" tofile="${checkstyle-dir}/checkstyle-config.xml" overwrite="no"> - <filterset> - <filter token="CHECKSTYLE_CONFIG_FILE" value="${full.eclipse.workspace}/checkstyle.xml"/> - <filter token="APACHE_HEADER_FILE" value="${full.eclipse.workspace}/apache-header.txt"/> - </filterset> - </copy> - <xslt style="${eclipse.workspace.dir}/addcheckstyle.xsl" in="${checkstyle-dir}/checkstyle-config.xml" out="${checkstyle-dir}/checkstyle-config.xml.new"> - <param name="checkstyleconfig" expression="${full.eclipse.workspace}/checkstyle.xml"/> - </xslt> - <copy file="${checkstyle-dir}/checkstyle-config.xml.new" tofile="${checkstyle-dir}/checkstyle-config.xml" overwrite="yes"/> - <!-- set UTF-8 --> - <propertyfile file="${full.eclipse.workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs"> - <entry key="version" value="1"/> - <entry key="eclipse.preferences.version" value="1"/> - <entry key="encoding" value="UTF-8"/> - </propertyfile> - <!-- Add warning flags that we want --> - <propertyfile file="${full.eclipse.workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs"> - <entry key="org.eclipse.jdt.core.compiler.problem.missingSerialVersion" value="ignore"/> - <entry key="org.eclipse.jdt.core.compiler.problem.unusedImport" value="ignore"/> - <entry key="org.eclipse.jdt.core.compiler.problem.annotationSuperInterface" value="ignore"/> - <entry key="org.eclipse.jdt.core.compiler.problem.rawTypeReference" value="ignore"/> - </propertyfile> - <!-- Add code format rules --> - <property name="cleanup.url" location="MahoutCleanUp.xml"/> - <copy file="${cleanup.url}" tofile="${eclipse.workspace.dir}/MahoutCleanUp.xml"/> - <property name="codeformat.url" location="Eclipse-Lucene-Codestyle.xml"/> - <copy file="${codeformat.url}" tofile="${eclipse.workspace.dir}/Eclipse-Lucene-Codestyle.xml"/> - <property name="codetemplates.url" location="codetemplates.xml"/> - <property name="xmltemplates.url" location="xmltemplates.xml"/> - <copy file="${codetemplates.url}" tofile="${eclipse.workspace.dir}/codetemplates.xml"/> - <copy file="${xmltemplates.url}" tofile="${eclipse.workspace.dir}/xmltemplates.xml"/> - <loadfile property="eclipse.code.cleanup" srcFile="${eclipse.workspace.dir}/MahoutCleanUp.xml"/> - <loadfile property="eclipse.code.templates" srcFile="${eclipse.workspace.dir}/codetemplates.xml"/> - <loadfile property="eclipse.xml.templates" srcFile="${eclipse.workspace.dir}/xmltemplates.xml"/> - <propertyfile file="${full.eclipse.workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs"> - <entry key="cleanup_profile" value="_BASIS"/> - <entry key="org.eclipse.jdt.ui.cleanupprofiles" value="${eclipse.code.cleanup}"/> - <entry key="org.eclipse.jdt.ui.text.custom_code_templates" value="${eclipse.code.templates}"/> - <!-- Add import order --> - <entry key="org.eclipse.jdt.ui.importorder" value="java;javax;org.w3c;org.xml;junit;com"/> - <!-- Sort order --> - <entry key="org.eclipse.jdt.ui.visibility.order" value="B,R,D,V,"/> - <entry key="outlinesortoption" value="T,SF,F,SI,I,C,SM,M,"/> - <entry key="org.eclipse.jdt.ui.enable.visibility.order" value="true"/> - </propertyfile> - <propertyfile file="${full.eclipse.workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.xml.ui.prefs"> - <entry key="eclipse.preferences.version" value="1"/> - <entry key="org.eclipse.wst.sse.ui.custom_templates" value="${eclipse.xml.templates}"/> - </propertyfile> - </target> -</project> http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/main/resources/findbugs-exclude.xml ---------------------------------------------------------------------- diff --git a/buildtools/src/main/resources/findbugs-exclude.xml b/buildtools/src/main/resources/findbugs-exclude.xml deleted file mode 100644 index 6d88486..0000000 --- a/buildtools/src/main/resources/findbugs-exclude.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<FindBugsFilter> - <Match> - <Bug pattern="VA_FORMAT_STRING_USES_NEWLINE"/> - </Match> - <Match> - <Bug pattern="OBL_UNSATISFIED_EXCEPTION_EDGE"/> - </Match> - <Match> - <Bug pattern="CN_IDIOM_NO_SUPER_CALL"/> - </Match> - <Match> - <Bug pattern="DLS_DEAD_LOCAL_STORE"/> - </Match> - <Match> - <Bug pattern="DLS_DEAD_LOCAL_STORE_OF_NULL"/> - </Match> - <Match> - <Bug pattern="EI_EXPOSE_REP"/> - </Match> - <Match> - <Bug pattern="EI_EXPOSE_REP2"/> - </Match> - <Match> - <Bug pattern="FE_FLOATING_POINT_EQUALITY"/> - </Match> - <Match> - <Bug pattern="MS_PKGPROTECT"/> - </Match> - <Match> - <Bug pattern="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE"/> - </Match> - <Match> - <Bug pattern="RV_RETURN_VALUE_IGNORED"/> - </Match> - <Match> - <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/> - </Match> - <Match> - <Bug pattern="SE_BAD_FIELD"/> - </Match> - <Match> - <Bug pattern="SE_BAD_FIELD_INNER_CLASS"/> - </Match> - <Match> - <Bug pattern="SE_NO_SERIALVERSIONID"/> - </Match> - <Match> - <Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR"/> - </Match> - <Match> - <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/> - </Match> - <Match> - <Bug pattern="SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE"/> - </Match> - <Match> - <Bug pattern="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING"/> - </Match> - <Match> - <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/> - </Match> -</FindBugsFilter> http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/main/resources/mahout-checkstyle-suppressions.xml ---------------------------------------------------------------------- diff --git a/buildtools/src/main/resources/mahout-checkstyle-suppressions.xml b/buildtools/src/main/resources/mahout-checkstyle-suppressions.xml deleted file mode 100644 index 41f8fe3..0000000 --- a/buildtools/src/main/resources/mahout-checkstyle-suppressions.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE suppressions PUBLIC - "-//Puppy Crawl//DTD Suppressions 1.0//EN" - "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> -<suppressions> - <suppress checks=".*" - files=".+[\\\/]generated[\\\/].+\.java" - /> - <suppress checks=".*" - files=".+[\\\/]build[\\\/]src[\\\/].+\.java" - /> - - <suppress checks=".*" - files=".+[\\\/]contrib[\\\/].+\.java" - /> -</suppressions> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/main/resources/mahout-checkstyle.xml ---------------------------------------------------------------------- diff --git a/buildtools/src/main/resources/mahout-checkstyle.xml b/buildtools/src/main/resources/mahout-checkstyle.xml deleted file mode 100644 index 432314b..0000000 --- a/buildtools/src/main/resources/mahout-checkstyle.xml +++ /dev/null @@ -1,199 +0,0 @@ -<?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 derived from the sun coding conventions from: - - - the Java Language Specification at - http://java.sun.com/docs/books/jls/second_edition/html/index.html - - - the Sun Code Conventions at http://java.sun.com/docs/codeconv/ ---> - -<module name="Checker"> - <!-- - If you set the basedir property below, then all reported file - names will be relative to the specified directory. See - http://checkstyle.sourceforge.net/5.x/config.html#Checker - - <property name="basedir" value="${basedir}"/> - --> - - <!-- Checks that a package-info.java file exists for each package. --> - <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage --> - <!--module name="JavadocPackage"/--> - - <!-- Checks whether files end with a new line. --> - <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> - <module name="NewlineAtEndOfFile"/> - - <!-- Checks that property files contain the same keys. --> - <!-- See http://checkstyle.sf.net/config_misc.html#Translation --> - <module name="Translation"/> - - <!-- Checks for Size Violations. --> - <!-- See http://checkstyle.sf.net/config_sizes.html --> - <!--module name="FileLength"/--> - - <!-- Checks for whitespace --> - <!-- See http://checkstyle.sf.net/config_whitespace.html --> - <module name="FileTabCharacter"/> - - <!-- Miscellaneous other checks. --> - <!-- See http://checkstyle.sf.net/config_misc.html --> - <!--module name="RegexpSingleline"> - <property name="format" value="\s+$"/> - <property name="minimum" value="0"/> - <property name="maximum" value="0"/> - <property name="message" value="Line has trailing spaces."/> - </module--> - - <!-- Checks for Headers --> - <!-- See http://checkstyle.sf.net/config_header.html --> - <!-- <module name="Header"> --> - <!-- <property name="headerFile" value="${checkstyle.header.file}"/> --> - <!-- <property name="fileExtensions" value="java"/> --> - <!-- </module> --> - - <module name="TreeWalker"> - - <!-- Checks for Javadoc comments. --> - <!-- See http://checkstyle.sf.net/config_javadoc.html --> - <!--module name="JavadocMethod"/> - <module name="JavadocType"/> - <module name="JavadocVariable"/> - <module name="JavadocStyle"/--> - - - <!-- Checks for Naming Conventions. --> - <!-- See http://checkstyle.sf.net/config_naming.html --> - <!-- allow loggers to be named log to not draw to much attention to their invocations --> - <module name="ConstantName"> - <property name="format" value="^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*|log)$"/> - </module> - <!-- Allow variables to start with capital letters. A lot of algorithm implementations should replicate the - notation from the papers they implement to be comprehensible. Matrices e.g. are mostly named with capital - letters --> - <module name="LocalFinalVariableName"> - <property name="format" value="^e[a-zA-Z0-9]|[A-Z]*[a-zA-Z0-9]*$"/> - </module> - <module name="LocalVariableName"> - <property name="format" value="^e[a-zA-Z0-9]|[A-Z]*[a-zA-Z0-9]*$"/> - </module> - <module name="MemberName"> - <property name="format" value="^e[a-zA-Z0-9]|[A-Z]*[a-zA-Z0-9]*$"/> - </module> - <module name="ParameterName"> - <property name="format" value="^e[a-zA-Z0-9]|[A-Z]*[a-zA-Z0-9]*$"/> - </module> - <module name="MethodName"/> - <module name="PackageName"/> - <module name="StaticVariableName"/> - <module name="TypeName"/> - - - <!-- Checks for imports --> - <!-- See http://checkstyle.sf.net/config_import.html --> - <module name="AvoidStarImport"/> - <module name="IllegalImport"/> <!-- defaults to sun.* packages --> - <module name="RedundantImport"/> - <module name="UnusedImports"/> - - - <!-- Checks for Size Violations. --> - <!-- See http://checkstyle.sf.net/config_sizes.html --> - <!-- we use 120 instead of 80 characters per line --> - <module name="LineLength"> - <property name="max" value="120"/> - </module> - <module name="AnonInnerLength"> - <property name="max" value="40" /> - </module> - <!--module name="ExecutableStatementCount"--> - <!--module name="MethodLength"/--> - <!--module name="ParameterNumber"/--> - - - <!-- Checks for whitespace --> - <!-- See http://checkstyle.sf.net/config_whitespace.html --> - <module name="EmptyForIteratorPad"/> - <module name="GenericWhitespace"/> - <module name="MethodParamPad"/> - <module name="NoWhitespaceAfter"> - <!-- allow whitespaces for array initialization --> - <property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/> - </module> - <module name="NoWhitespaceBefore"/> - <module name="OperatorWrap"/> - <module name="ParenPad"/> - <module name="TypecastParenPad"/> - <!--TODO currently broken because of generics <module name="WhitespaceAfter"/>--> - <module name="WhitespaceAround"> - <!-- no need to waste space for empty constructors or methods --> - <property name="allowEmptyConstructors" value="true"/> - <property name="allowEmptyMethods" value="true"/> - </module> - - - <!-- Modifier Checks --> - <!-- See http://checkstyle.sf.net/config_modifiers.html --> - <module name="ModifierOrder"/> - <module name="RedundantModifier"/> - - - <!-- Checks for blocks. You know, those {}'s --> - <!-- See http://checkstyle.sf.net/config_blocks.html --> - <!--module name="AvoidNestedBlocks"/--> - <module name="EmptyBlock"/> - <module name="LeftCurly"/> - <module name="NeedBraces"/> - <module name="RightCurly"/> - - - <!-- Checks for common coding problems --> - <!-- See http://checkstyle.sf.net/config_coding.html --> - <!--module name="AvoidInlineConditionals"/--> - <module name="EmptyStatement"/> - <module name="EqualsHashCode"/> - <!--module name="HiddenField"/--> - <module name="IllegalInstantiation"/> - <!--module name="InnerAssignment"/--> - <!--module name="MagicNumber"/--> - <module name="MissingSwitchDefault"/> - <!--module name="RedundantThrows"/--> - <module name="SimplifyBooleanExpression"/> - <module name="SimplifyBooleanReturn"/> - <!--module name="NestedIfDepth"/--> - <module name="NestedTryDepth"> - <property name="max" value="3"/> - </module> - <module name="UnnecessaryParentheses"/> - - <!-- Checks for class design --> - <!-- See http://checkstyle.sf.net/config_design.html --> - <!--module name="DesignForExtension"/--> - <module name="FinalClass"/> - <module name="HideUtilityClassConstructor"/> - <module name="InterfaceIsType"/> - <module name="VisibilityModifier"> - <property name="protectedAllowed" value="true" /> - <property name="packageAllowed" value="true" /> - </module> - - - <!-- Miscellaneous other checks. --> - <!-- See http://checkstyle.sf.net/config_misc.html --> - <module name="ArrayTypeStyle"/> - <!--module name="FinalParameters"/--> - <!--module name="TodoComment"/--> - <module name="UpperEll"/> - <module name="Indentation"> - <property name="caseIndent" value="2"/> - <property name="basicOffset" value="2"/> - </module> - - </module> - -</module> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/main/resources/mahout-eclipse-checkstyle ---------------------------------------------------------------------- diff --git a/buildtools/src/main/resources/mahout-eclipse-checkstyle b/buildtools/src/main/resources/mahout-eclipse-checkstyle deleted file mode 100644 index 9c76a64..0000000 --- a/buildtools/src/main/resources/mahout-eclipse-checkstyle +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> -<fileset-config file-format-version="1.1.0" simple-config="false"> - <fileset name="all" enabled="true" check-config-name="CXF Checks" type="external" description=""> - <file-match-pattern match-pattern="^src[/\\]." include-pattern="true"/> - <file-match-pattern match-pattern="^src[/\\]main[/\\]generated[/\\]." include-pattern="false"/> - <file-match-pattern match-pattern="^src[/\\]test[/\\]generated[/\\]." include-pattern="false"/> - <file-match-pattern match-pattern="^src[/\\]main[/\\]release[/\\]samples[/\\]jax_rs[/\\]basic_https[/\\]contrib[/\\]." include-pattern="false"/> - </fileset> -</fileset-config> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/main/resources/mahout-eclipse-pmd ---------------------------------------------------------------------- diff --git a/buildtools/src/main/resources/mahout-eclipse-pmd b/buildtools/src/main/resources/mahout-eclipse-pmd deleted file mode 100644 index f1bd7be..0000000 --- a/buildtools/src/main/resources/mahout-eclipse-pmd +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> -<pmd> - <useProjectRuleSet>true</useProjectRuleSet> - <rules/> -</pmd> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/main/resources/mahout-pmd-ruleset.xml ---------------------------------------------------------------------- diff --git a/buildtools/src/main/resources/mahout-pmd-ruleset.xml b/buildtools/src/main/resources/mahout-pmd-ruleset.xml deleted file mode 100644 index b209858..0000000 --- a/buildtools/src/main/resources/mahout-pmd-ruleset.xml +++ /dev/null @@ -1,189 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> -<ruleset name="pmd-eclipse"> - <description>PMD Plugin preferences rule set</description> - - - <rule ref="rulesets/java/basic.xml/BooleanInstantiation"/> - <rule ref="rulesets/java/basic.xml/CollapsibleIfStatements"/> - <rule ref="rulesets/java/basic.xml/DoubleCheckedLocking"/> - <!--<rule ref="rulesets/java/basic.xml/EmptyCatchBlock"/>--> - <rule ref="rulesets/java/basic.xml/EmptyFinallyBlock"/> - <rule ref="rulesets/java/basic.xml/EmptyIfStmt"/> - <rule ref="rulesets/java/basic.xml/EmptyStatementNotInLoop"/> - <!--<rule ref="rulesets/java/basic.xml/EmptyStaticInitializer"/>--> - <!--<rule ref="rulesets/java/basic.xml/EmptySwitchStatements"/>--> - <rule ref="rulesets/java/basic.xml/EmptySynchronizedBlock"/> - <rule ref="rulesets/java/basic.xml/EmptyTryBlock"/> - <!--<rule ref="rulesets/java/basic.xml/EmptyWhileStmt"/>--> - <rule ref="rulesets/java/basic.xml/ForLoopShouldBeWhileLoop"/> - <rule ref="rulesets/java/basic.xml/JumbledIncrementer"/> - <rule ref="rulesets/java/basic.xml/OverrideBothEqualsAndHashcode"/> - <rule ref="rulesets/java/basic.xml/ReturnFromFinallyBlock"/> - <rule ref="rulesets/java/basic.xml/UnconditionalIfStatement"/> - <rule ref="rulesets/java/basic.xml/UnnecessaryConversionTemporary"/> - <rule ref="rulesets/java/basic.xml/UnnecessaryFinalModifier"/> - <rule ref="rulesets/java/basic.xml/UnnecessaryReturn"/> - <!--<rule ref="rulesets/java/basic.xml/UselessOverridingMethod"/>--> - - <!--<rule ref="rulesets/java/braces.xml/ForLoopsMustUseBraces"/>--> - <!--<rule ref="rulesets/java/braces.xml/IfElseStmtsMustUseBraces"/>--> - <!--<rule ref="rulesets/java/braces.xml/IfStmtsMustUseBraces"/>--> - <!--<rule ref="rulesets/java/braces.xml/WhileLoopsMustUseBraces"/>--> - - <!--<rule ref="rulesets/java/clone.xml/CloneMethodMustImplementCloneable"/>--> - <!--<rule ref="rulesets/java/clone.xml/CloneThrowsCloneNotSupportedException"/>--> - <!--<rule ref="rulesets/java/clone.xml/ProperCloneImplementation"/>--> - - <!--<rule ref="rulesets/java/codesize.xml/CyclomaticComplexity"/>--> - <rule ref="rulesets/java/codesize.xml/ExcessiveClassLength"/> - <!--<rule ref="rulesets/java/codesize.xml/ExcessiveMethodLength"/>--> - <rule ref="rulesets/java/codesize.xml/ExcessiveParameterList"/> - <rule ref="rulesets/java/codesize.xml/ExcessivePublicCount"/> - <!--<rule ref="rulesets/java/codesize.xml/TooManyFields"/>--> - - <!--<rule ref="rulesets/java/controversial.xml/AssignmentInOperand"/>--> - <!--<rule ref="rulesets/java/controversial.xml/AtLeastOneConstructor"/>--> - <!--<rule ref="rulesets/java/controversial.xml/CallSuperInConstructor"/>--> - <!--<rule ref="rulesets/java/controversial.xml/DontImportSun"/>--> - <!--<rule ref="rulesets/java/controversial.xml/NullAssignment"/>--> - <!--<rule ref="rulesets/java/controversial.xml/OnlyOneReturn"/>--> - <!--<rule ref="rulesets/java/controversial.xml/SingularField"/>--> - <!--<rule ref="rulesets/java/controversial.xml/SuspiciousOctalEscape"/>--> - <!--<rule ref="rulesets/java/controversial.xml/UnnecessaryConstructor"/>--> - <!--<rule ref="rulesets/java/controversial.xml/UnnecessaryParentheses"/>--> - <!--<rule ref="rulesets/java/controversial.xml/UnusedModifier"/>--> - - <!--<rule ref="rulesets/java/coupling.xml/CouplingBetweenObjects"/>--> - <!--<rule ref="rulesets/java/coupling.xml/ExcessiveImports"/>--> - <!--<rule ref="rulesets/java/coupling.xml/LooseCoupling"/>--> - - <!--<rule ref="rulesets/java/design.xml/AbstractClassWithoutAbstractMethod"/>--> - <!--<rule ref="rulesets/java/design.xml/AccessorClassGeneration"/>--> - <!--<rule ref="rulesets/java/design.xml/AssignmentToNonFinalStatic"/>--> - <!--<rule ref="rulesets/java/design.xml/AvoidDeeplyNestedIfStmts"/>--> - <!--<rule ref="rulesets/java/design.xml/AvoidInstanceofChecksInCatchClause"/>--> - <rule ref="rulesets/java/design.xml/AvoidProtectedFieldInFinalClass"/> - <!--<rule ref="rulesets/java/design.xml/AvoidReassigningParameters"/>--> - <!--<rule ref="rulesets/java/design.xml/AvoidSynchronizedAtMethodLevel"/>--> - <!--<rule ref="rulesets/java/design.xml/BadComparison"/>--> - <!--<rule ref="rulesets/java/design.xml/CloseConnection"/>--> - <!--<rule ref="rulesets/java/design.xml/CompareObjectsWithEquals"/>--> - <!--<rule ref="rulesets/java/design.xml/ConfusingTernary"/>--> - <!--<rule ref="rulesets/java/design.xml/ConstructorCallsOverridableMethod"/>--> - <!--<rule ref="rulesets/java/design.xml/DefaultLabelNotLastInSwitchStmt"/>--> - <!--<rule ref="rulesets/java/design.xml/FinalFieldCouldBeStatic"/>--> - <rule ref="rulesets/java/design.xml/IdempotentOperations"/> - <!--<rule ref="rulesets/java/design.xml/ImmutableField"/>--> - <!--<rule ref="rulesets/java/design.xml/InstantiationToGetClass"/>--> - <!--<rule ref="rulesets/java/design.xml/MissingBreakInSwitch"/>--> - <!--<rule ref="rulesets/java/design.xml/MissingStaticMethodInNonInstantiatableClass"/>--> - <!--<rule ref="rulesets/java/design.xml/NonCaseLabelInSwitchStatement"/>--> - <!--<rule ref="rulesets/java/design.xml/NonStaticInitializer"/>--> - <rule ref="rulesets/java/design.xml/OptimizableToArrayCall"/> - <!--<rule ref="rulesets/java/design.xml/PositionLiteralsFirstInComparisons"/>--> - <!--rule ref="rulesets/java/design.xml/SimplifyBooleanExpressions"/--> - <rule ref="rulesets/java/design.xml/SimplifyBooleanReturns"/> - <rule ref="rulesets/java/design.xml/SimplifyConditional"/> - <!--<rule ref="rulesets/java/design.xml/SwitchDensity"/>--> - <!--<rule ref="rulesets/java/design.xml/SwitchStmtsShouldHaveDefault"/>--> - <rule ref="rulesets/java/design.xml/UnnecessaryLocalBeforeReturn"/> - <!--<rule ref="rulesets/java/design.xml/UseLocaleWithCaseConversions"/>--> - <!--<rule ref="rulesets/java/design.xml/UseNotifyAllInsteadOfNotify"/>--> - <!--<rule ref="rulesets/java/design.xml/UseSingleton"/>--> - - <!--<rule ref="rulesets/java/finalizers.xml/EmptyFinalizer"/>--> - <!--<rule ref="rulesets/java/finalizers.xml/FinalizeOnlyCallsSuperFinalize"/>--> - <!--<rule ref="rulesets/java/finalizers.xml/FinalizeOverloaded"/>--> - <!--<rule ref="rulesets/java/finalizers.xml/FinalizeDoesNotCallSuperFinalize"/>--> - <!--<rule ref="rulesets/java/finalizers.xml/FinalizeShouldBeProtected"/>--> - <rule ref="rulesets/java/finalizers.xml/AvoidCallingFinalize"/> - - <rule ref="rulesets/java/imports.xml/DuplicateImports"/> - <rule ref="rulesets/java/imports.xml/DontImportJavaLang"/> - <rule ref="rulesets/java/imports.xml/UnusedImports"/> - <rule ref="rulesets/java/imports.xml/ImportFromSamePackage"/> - - <!--<rule ref="rulesets/java/javabeans.xml/BeanMembersShouldSerialize"/>--> - <!--<rule ref="rulesets/java/javabeans.xml/MissingSerialVersionUID"/>--> - - <!--<rule ref="rulesets/java/junit.xml/JUnitStaticSuite"/>--> - <!--<rule ref="rulesets/java/junit.xml/JUnitSpelling"/>--> - <!--<rule ref="rulesets/java/junit.xml/JUnitAssertionsShouldIncludeMessage"/>--> - <!--<rule ref="rulesets/java/junit.xml/JUnitTestsShouldIncludeAssert"/>--> - <!--<rule ref="rulesets/java/junit.xml/TestClassWithoutTestCases"/>--> - <!--<rule ref="rulesets/java/junit.xml/UnnecessaryBooleanAssertion"/>--> - <!--<rule ref="rulesets/java/junit.xml/UseAssertEqualsInsteadOfAssertTrue"/>--> - <!--<rule ref="rulesets/java/junit.xml/UseAssertSameInsteadOfAssertTrue"/>--> - - <rule ref="rulesets/java/logging-java.xml/AvoidPrintStackTrace"/> - <rule ref="rulesets/java/logging-java.xml/LoggerIsNotStaticFinal"/> - <!--<rule ref="rulesets/java/logging-java.xml/MoreThanOneLogger"/>--> - <!--<rule ref="rulesets/java/logging-java.xml/LoggerIsNotStaticFinal"/>--> - <!--<rule ref="rulesets/java/logging-java.xml/LogBlockWithoutIf"/>--> - <!--<rule ref="rulesets/java/logging-java.xml/SystemPrintln"/>--> - <!--<rule ref="rulesets/java/logging-jakarta-commons.xml/UseCorrectExceptionLogging"/>--> - <!--<rule ref="rulesets/java/logging-jakarta-commons.xml/ProperLogger"/>--> - - <!--<rule ref="rulesets/java/naming.xml/ShortVariable"/>--> - <!--<rule ref="rulesets/java/naming.xml/LongVariable"/>--> - <!--<rule ref="rulesets/java/naming.xml/ShortMethodName"/>--> - <!--<rule ref="rulesets/java/naming.xml/VariableNamingConventions"/>--> - <rule ref="rulesets/java/naming.xml/MethodNamingConventions"/> - <rule ref="rulesets/java/naming.xml/ClassNamingConventions"/> - <!--<rule ref="rulesets/java/naming.xml/AbstractNaming"/>--> - <!--<rule ref="rulesets/java/naming.xml/AvoidDollarSigns"/>--> - <!--<rule ref="rulesets/java/naming.xml/MethodWithSameNameAsEnclosingClass"/>--> - <!--<rule ref="rulesets/java/naming.xml/SuspiciousHashcodeMethodName"/>--> - <!--<rule ref="rulesets/java/naming.xml/SuspiciousConstantFieldName"/>--> - <!--<rule ref="rulesets/java/naming.xml/AvoidFieldNameMatchingTypeName"/>--> - <!--<rule ref="rulesets/java/naming.xml/AvoidFieldNameMatchingMethodName"/>--> - <!-- <rule ref="rulesets/java/naming.xml/AvoidNonConstructorMethodsWithClassName"/> --> - <rule ref="rulesets/java/naming.xml/NoPackage"/> - <rule ref="rulesets/java/naming.xml/PackageCase"/> - - <!--<rule ref="rulesets/java/optimizations.xml/LocalVariableCouldBeFinal"/>--> - <!--<rule ref="rulesets/java/optimizations.xml/MethodArgumentCouldBeFinal"/>--> - <!--<rule ref="rulesets/java/optimizations.xml/AvoidInstantiatingObjectsInLoops"/>--> - <!--<rule ref="rulesets/java/optimizations.xml/UseArrayListInsteadOfVector"/>--> - <!--<rule ref="rulesets/java/optimizations.xml/SimplifyStartsWith"/>--> - <rule ref="rulesets/java/optimizations.xml/UseStringBufferForStringAppends"/> - - <!--<rule ref="rulesets/java/strictexception.xml/AvoidCatchingThrowable"/>--> - <!--<rule ref="rulesets/java/strictexception.xml/SignatureDeclareThrowsException"/>--> - <rule ref="rulesets/java/strictexception.xml/ExceptionAsFlowControl"/> - <!--<rule ref="rulesets/java/strictexception.xml/AvoidCatchingNPE"/>--> - <!--<rule ref="rulesets/java/strictexception.xml/AvoidThrowingRawExceptionTypes"/>--> - <!--<rule ref="rulesets/java/strictexception.xml/AvoidThrowingNullPointerException"/>--> - - <!--<rule ref="rulesets/java/strings.xml/AvoidDuplicateLiterals"/>--> - <rule ref="rulesets/java/strings.xml/StringInstantiation"/> - <rule ref="rulesets/java/strings.xml/StringToString"/> - <!-- <rule ref="rulesets/java/strings.xml/AvoidConcatenatingNonLiteralsInStringBuffer"/>--> - <rule ref="rulesets/java/strings.xml/UnnecessaryCaseChange"/> - - <!--<rule ref="rulesets/java/sunsecure.xml/MethodReturnsInternalArray"/>--> - <!--<rule ref="rulesets/java/sunsecure.xml/ArrayIsStoredDirectly"/>--> - - <rule ref="rulesets/java/unusedcode.xml/UnusedLocalVariable"/> - <rule ref="rulesets/java/unusedcode.xml/UnusedPrivateField"/> - <rule ref="rulesets/java/unusedcode.xml/UnusedPrivateMethod"/> - <rule ref="rulesets/java/unusedcode.xml/UnusedFormalParameter"/> -</ruleset> http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/test/resources/jaas.config ---------------------------------------------------------------------- diff --git a/buildtools/src/test/resources/jaas.config b/buildtools/src/test/resources/jaas.config deleted file mode 100644 index 0911f1b..0000000 --- a/buildtools/src/test/resources/jaas.config +++ /dev/null @@ -1,3 +0,0 @@ -hadoop-simple { - com.sun.security.auth.module.UnixLoginModule required ; -} http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/src/test/resources/java.policy ---------------------------------------------------------------------- diff --git a/buildtools/src/test/resources/java.policy b/buildtools/src/test/resources/java.policy deleted file mode 100644 index 6237816..0000000 --- a/buildtools/src/test/resources/java.policy +++ /dev/null @@ -1,134 +0,0 @@ -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You 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. -// - -// Allows unit tests to run with a Java Security Manager -// Tested from Maven 3.0.3 with the Surfire 2.8.1 configuration: -// -// <argLine>-Djava.security.manager -Djava.security.policy=${basedir}/src/test/resources/java.policy</argLine> -// -// This policy file documents why each permission is granted by listing exceptions in comments. -// -// This policy file grants permission as narrowly as possible. - -grant { - - permission java.io.FilePermission "${user.dir}/target/-", "read, write, delete"; - - permission java.util.PropertyPermission "user.dir", "write"; - permission java.util.PropertyPermission "localRepository", "write"; - permission java.util.PropertyPermission "mahout.test.directory", "write"; - permission java.util.PropertyPermission "basedir", "write"; - permission java.util.PropertyPermission "java.class.path", "read"; - permission java.util.PropertyPermission "surefire.real.class.path", "write"; - permission java.util.PropertyPermission "java.class.path", "write"; - permission java.util.PropertyPermission "surefire.test.class.path", "write"; - permission java.util.PropertyPermission "surefire.junit4.upgradecheck", "read"; - permission java.util.PropertyPermission "*", "read,write"; - - permission java.lang.RuntimePermission "setIO"; - permission java.lang.RuntimePermission "accessDeclaredMembers"; - permission java.lang.RuntimePermission "exitVM.0"; - permission java.lang.RuntimePermission "exitVM.1"; - permission java.lang.RuntimePermission "exitVM.2"; - permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; - permission javax.security.auth.AuthPermission "getSubject"; - permission javax.security.auth.AuthPermission "createLoginContext.*"; - permission java.lang.RuntimePermission "setContextClassLoader"; - permission java.lang.RuntimePermission "createClassLoader"; - permission java.lang.RuntimePermission "getClassLoader"; - permission java.lang.RuntimePermission "enableContextClasLoaderOverride"; - permission java.lang.RuntimePermission "modifyThread"; - permission java.lang.RuntimePermission "getProtectionDomain"; - permission java.lang.RuntimePermission "getenv.*"; - permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect"; - permission javax.security.auth.AuthPermission "doAs"; - permission javax.security.auth.AuthPermission "doAsPriviledged"; - permission javax.security.auth.AuthPermission "getSubject"; - permission javax.security.auth.kerberos.ServicePermission "*", "initiate"; - permission javax.security.auth.kerberos.ServicePermission "*", "accept"; - permission java.lang.RuntimePermission "setDefaultUncaughtExceptionHandler"; - permission java.lang.RuntimePermission "modifyThreadGroup"; - permission java.lang.RuntimePermission "getStackTrace"; -}; - -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You 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. -// - -// Allows unit tests to run with a Java Security Manager -// Tested from Maven 3.0.3 with the Surfire 2.8.1 configuration: -// -// <argLine>-Djava.security.manager -Djava.security.policy=${basedir}/src/test/resources/java.policy</argLine> -// -// This policy file documents why each permission is granted by listing exceptions in comments. -// -// This policy file grants permission as narrowly as possible. - -grant { - - permission java.io.FilePermission "${user.dir}/target/-", "read, write, delete"; - - permission java.util.PropertyPermission "user.dir", "write"; - permission java.util.PropertyPermission "localRepository", "write"; - permission java.util.PropertyPermission "mahout.test.directory", "write"; - permission java.util.PropertyPermission "basedir", "write"; - permission java.util.PropertyPermission "java.class.path", "read"; - permission java.util.PropertyPermission "surefire.real.class.path", "write"; - permission java.util.PropertyPermission "java.class.path", "write"; - permission java.util.PropertyPermission "surefire.test.class.path", "write"; - permission java.util.PropertyPermission "surefire.junit4.upgradecheck", "read"; - permission java.util.PropertyPermission "*", "read,write"; - - permission java.lang.RuntimePermission "setIO"; - permission java.lang.RuntimePermission "accessDeclaredMembers"; - permission java.lang.RuntimePermission "exitVM.0"; - permission java.lang.RuntimePermission "exitVM.1"; - permission java.lang.RuntimePermission "exitVM.2"; - permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; - permission javax.security.auth.AuthPermission "getSubject"; - permission javax.security.auth.AuthPermission "createLoginContext.*"; - permission java.lang.RuntimePermission "setContextClassLoader"; - permission java.lang.RuntimePermission "createClassLoader"; - permission java.lang.RuntimePermission "getClassLoader"; - permission java.lang.RuntimePermission "enableContextClasLoaderOverride"; - permission java.lang.RuntimePermission "modifyThread"; - permission java.lang.RuntimePermission "getProtectionDomain"; - permission java.lang.RuntimePermission "getenv.*"; - permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect"; - permission javax.security.auth.AuthPermission "doAs"; - permission javax.security.auth.AuthPermission "doAsPriviledged"; - permission javax.security.auth.AuthPermission "getSubject"; - permission javax.security.auth.kerberos.ServicePermission "*", "initiate"; - permission javax.security.auth.kerberos.ServicePermission "*", "accept"; - permission java.lang.RuntimePermission "setDefaultUncaughtExceptionHandler"; - permission java.lang.RuntimePermission "modifyThreadGroup"; - permission java.lang.RuntimePermission "getStackTrace"; -}; - http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/template.checkstyle-config.xml ---------------------------------------------------------------------- diff --git a/buildtools/template.checkstyle-config.xml b/buildtools/template.checkstyle-config.xml deleted file mode 100644 index 86a220b..0000000 --- a/buildtools/template.checkstyle-config.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> -<checkstyle-configurations file-format-version="5.0.0"> - <check-configuration name="CXF Checks" location="@CHECKSTYLE_CONFIG_FILE@" type="external" description=""/> - <check-configuration name="CXF CORBA Checks" location="@CHECKSTYLE_CORBA_CONFIG_FILE@" type="external" description=""/> -</checkstyle-configurations> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/buildtools/xmltemplates.xml ---------------------------------------------------------------------- diff --git a/buildtools/xmltemplates.xml b/buildtools/xmltemplates.xml deleted file mode 100644 index 92c2bcd..0000000 --- a/buildtools/xmltemplates.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---> -<templates><template autoinsert="true" context="xml_new" deleted="false" description="xml declaration" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.xmldeclaration" name="xml declaration"><?xml version="1.0" encoding="${encoding}"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. ---></template></templates> http://git-wip-us.apache.org/repos/asf/mahout/blob/99a5358f/conf/log4j.properties ---------------------------------------------------------------------- diff --git a/conf/log4j.properties b/conf/log4j.properties deleted file mode 100644 index 99a7d16..0000000 --- a/conf/log4j.properties +++ /dev/null @@ -1,11 +0,0 @@ -# Set everything to be logged to the console -log4j.rootCategory=WARN, console -log4j.appender.console=org.apache.log4j.ConsoleAppender -log4j.appender.console.target=System.err -log4j.appender.console.layout=org.apache.log4j.PatternLayout -log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n - -# Settings to quiet third party logs that are too verbose -log4j.logger.org.eclipse.jetty=WARN -log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=WARN -log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=WARN
