HIVE-15791: Remove unused ant files (Gunther Hagleitner, reviewed by Ashutosh Chauhan)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/1f1e91aa Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/1f1e91aa Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/1f1e91aa Branch: refs/heads/master Commit: 1f1e91aa02d726613a364678288caa8b252d8bd6 Parents: 2429bb2 Author: Gunther Hagleitner <gunt...@apache.org> Authored: Tue Feb 7 17:07:38 2017 -0800 Committer: Gunther Hagleitner <gunt...@apache.org> Committed: Thu Feb 9 15:33:54 2017 -0800 ---------------------------------------------------------------------- ant/pom.xml | 69 - .../hive/ant/DistinctElementsClassPath.java | 90 - .../apache/hadoop/hive/ant/GenVectorCode.java | 3309 ------------------ .../hadoop/hive/ant/GenVectorTestCode.java | 261 -- .../apache/hadoop/hive/ant/GetVersionPref.java | 94 - ant/src/org/apache/hadoop/hive/ant/antlib.xml | 24 - itests/hive-blobstore/pom.xml | 6 - itests/qtest-accumulo/pom.xml | 6 - itests/qtest-spark/pom.xml | 6 - itests/qtest/pom.xml | 6 - jdbc/pom.xml | 2 +- pom.xml | 7 +- ql/pom.xml | 4 +- vector-code-gen/pom.xml | 69 + .../apache/hadoop/hive/tools/GenVectorCode.java | 3309 ++++++++++++++++++ .../hadoop/hive/tools/GenVectorTestCode.java | 261 ++ 16 files changed, 3643 insertions(+), 3880 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/1f1e91aa/ant/pom.xml ---------------------------------------------------------------------- diff --git a/ant/pom.xml b/ant/pom.xml deleted file mode 100644 index 6414ef6..0000000 --- a/ant/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - 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. ---> -<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/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.hive</groupId> - <artifactId>hive</artifactId> - <version>2.2.0-SNAPSHOT</version> - <relativePath>../pom.xml</relativePath> - </parent> - - <artifactId>hive-ant</artifactId> - <packaging>jar</packaging> - <name>Hive Ant Utilities</name> - - <properties> - <hive.path.to.root>..</hive.path.to.root> - </properties> - - <dependencies> - <!-- dependencies are always listed in sorted order by groupId, artifectId --> - <!-- inter-project --> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>${commons-lang.version}</version> - </dependency> - <dependency> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - <version>${guava.version}</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant</artifactId> - <version>${ant.version}</version> - </dependency> - <dependency> - <groupId>org.apache.velocity</groupId> - <artifactId>velocity</artifactId> - <version>${velocity.version}</version> - <exclusions> - <exclusion> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - - <build> - <sourceDirectory>${basedir}/src</sourceDirectory> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/hive/blob/1f1e91aa/ant/src/org/apache/hadoop/hive/ant/DistinctElementsClassPath.java ---------------------------------------------------------------------- diff --git a/ant/src/org/apache/hadoop/hive/ant/DistinctElementsClassPath.java b/ant/src/org/apache/hadoop/hive/ant/DistinctElementsClassPath.java deleted file mode 100644 index 233dc6e..0000000 --- a/ant/src/org/apache/hadoop/hive/ant/DistinctElementsClassPath.java +++ /dev/null @@ -1,90 +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. - * - */ - -package org.apache.hadoop.hive.ant; - - -import java.io.File; -import java.util.ArrayList; -import java.util.HashSet; - -import org.apache.tools.ant.Project; -import org.apache.tools.ant.types.Path; - -/** - * This object represents a path as used by CLASSPATH or PATH environment variable. String - * representation of this object returns the path with unique elements to reduce the chances of - * exceeding the character limit problem on windows by removing if there are duplicate files(JARs) - * in the original class path. - */ -public class DistinctElementsClassPath extends Path { - - /** - * Invoked by IntrospectionHelper for <code>setXXX(Path p)</code> - * attribute setters. - * @param p the <code>Project</code> for this path. - * @param path the <code>String</code> path definition. - */ - public DistinctElementsClassPath(Project p, String path) { - super(p, path); - } - - /** - * Construct an empty <code>Path</code>. - * @param project the <code>Project</code> for this path. - */ - public DistinctElementsClassPath(Project project) { - super(project); - } - - /** - * Returns the list of path elements after removing the duplicate files from the - * original Path - */ - @Override - public String[] list() { - HashSet includedElements = new HashSet(); - ArrayList resultElements = new ArrayList(); - for(String pathElement : super.list()) { - if(pathElement != null && !pathElement.isEmpty()) { - File p = new File(pathElement); - if(p.exists()) { - String setItem = pathElement.toLowerCase(); - if (p.isFile()) { - setItem = p.getName().toLowerCase(); - } - if(!includedElements.contains(setItem)) { - includedElements.add(setItem); - resultElements.add(pathElement); - } - } - } - } - - return (String[])resultElements.toArray (new String [resultElements.size ()]); - } - - /** - * Returns a textual representation of the path after removing the duplicate files from the - * original Path. - */ - @Override - public String toString() { - return org.apache.commons.lang.StringUtils.join(this.list(), File.pathSeparatorChar); - } -} \ No newline at end of file