You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafu.apache.org by mh...@apache.org on 2014/05/11 20:05:33 UTC
git commit: DATAFU-43 Remove old Ant build files
Repository: incubator-datafu
Updated Branches:
refs/heads/master 8f52118e1 -> 45746ac23
DATAFU-43 Remove old Ant build files
https://issues.apache.org/jira/browse/DATAFU-43
Project: http://git-wip-us.apache.org/repos/asf/incubator-datafu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-datafu/commit/45746ac2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-datafu/tree/45746ac2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-datafu/diff/45746ac2
Branch: refs/heads/master
Commit: 45746ac235fe9bd50fe692098e661470cdef26c2
Parents: 8f52118
Author: Matt Hayes <mh...@linkedin.com>
Authored: Mon Apr 28 11:41:19 2014 -0700
Committer: Matthew Hayes <ma...@gmail.com>
Committed: Sun May 11 11:05:03 2014 -0700
----------------------------------------------------------------------
build.xml | 525 ------------------------------------------
check-license-headers.sh | 53 -----
ivy.xml | 45 ----
ivy/libraries.properties | 18 --
ivy/pom-template.xml | 69 ------
ivysettings.xml | 16 --
6 files changed, 726 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/45746ac2/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
deleted file mode 100644
index e04bc4e..0000000
--- a/build.xml
+++ /dev/null
@@ -1,525 +0,0 @@
-<project name="datafu" basedir="." default="all"
- xmlns:ivy="antlib:org.apache.ivy.ant"
- xmlns:artifact="antlib:org.apache.maven.artifact.ant">
- <property file="build.properties" />
-
- <property name="ivy.jar.dir" value="${basedir}/ivy" />
- <loadproperties srcfile="${ivy.jar.dir}/libraries.properties"/>
-
- <property name="name" value="datafu" />
- <property name="display.name" value="DataFu" />
- <property name="author" value="Matthew Hayes, Sam Shah" />
- <property environment="env" />
- <property name="datafu.version" value="1.2.1" />
- <property name="version" value="${datafu.version}-SNAPSHOT" />
- <property name="final.name" value="${name}-${version}" />
-
- <!-- maven snapshots and staging repository id and url -->
- <property name="maven-snapshots-repository-id" value="sonatype-nexus-snapshots" />
- <property name="maven-snapshots-repository-url" value="https://oss.sonatype.org/content/repositories/snapshots" />
- <property name="maven-staging-repository-id" value="sonatype-nexus-staging" />
- <property name="maven-staging-repository-url" value="https://oss.sonatype.org/service/local/staging/deploy/maven2" />
-
- <!-- directories -->
- <property name="src.dir" value="${basedir}/src" />
- <property name="java.dir" value="${src.dir}/java" />
- <property name="plugin.java.dir" value="${basedir}/plugin/java" />
- <property name="test.dir" value="${basedir}/test" />
- <property name="pigtestsrc.dir" value="${test.dir}/pig" />
- <property name="dist.dir" value="${basedir}/dist" />
- <property name="data.dir" value="${basedir}/data" />
- <property name="tools.dir" value="${basedir}/tools" />
- <property name="lib.dir" value="${basedir}/lib" />
- <property name="common.lib.dir" value="${lib.dir}/common" />
- <property name="packaged.lib.dir" value="${lib.dir}/packaged" />
- <property name="test.lib.dir" value="${lib.dir}/test" />
- <property name="hadoop.lib.dir" value="${lib.dir}/hadoop" />
- <property name="tools.lib.dir" value="${lib.dir}/tools" />
- <property name="static.lib.dir" value="${basedir}/staticlibs" />
- <property name="classes.dir" value="${dist.dir}/classes" />
- <property name="plugin.classes.dir" value="${dist.dir}/pluginclasses" />
- <property name="report.dir" value="${basedir}/report" />
- <property name="report.pig.dir" value="${report.dir}/pig" />
- <property name="docs.dir" value="${basedir}/docs" />
- <property name="javadoc.dir" value="${docs.dir}/javadoc" />
- <property name="cobertura.dir" value="${basedir}/cobertura" />
- <property name="coveragereport.dir" value="${basedir}/coverage-report" />
- <property name="instrumented.dir" value="${basedir}/instrumented" />
- <property name="pigtestclasses.dir" value="${dist.dir}/pigtestclasses" />
- <property name="fastutil.jar" value="fastutil-jar-${fastutil.version}.jar" />
- <property name="commons-math.jar" value="commons-math-jar-${commons-math.version}.jar" />
- <property name="guava.jar" value="guava-jar-${guava.version}.jar" />
- <property name="stream.jar" value="stream-jar-${stream.version}.jar" />
- <property name="opennlp.jar" value="opennlp-tools-bundle-${opennlp.version}.jar" />
-
- <!-- Java configuration -->
- <property name="targetJavaVersion" value="1.5" />
- <property name="sourceJavaVersion" value="${targetJavaVersion}" />
-
- <!-- output names -->
- <property name="output.jarfile" value="${dist.dir}/${final.name}.jar" />
- <property name="output.jarfile.sources" value="${dist.dir}/${final.name}-sources.jar" />
- <property name="output.jarfile.javadoc" value="${dist.dir}/${final.name}-javadoc.jar" />
-
- <property name="testclasses.pattern" value="**/*.class" />
- <property name="test.methods" value="" />
-
- <property name="datafu.pom.name" value="pom.xml" />
- <property name="datafu.pomfile" value="${ivy.jar.dir}/${datafu.pom.name}" />
- <property name="datafu.pomfile.template" value="${ivy.jar.dir}/pom-template.xml" />
- <property name="ivy.jar.version" value="2.2.0" />
- <property name="maven.jar.version" value="2.0.8" />
- <property name="mvnrepo" value="http://repo2.maven.org/maven2"/>
- <property name="maven.jar.repo.url" value="${mvnrepo}/org/apache/maven/maven-ant-tasks/${maven.jar.version}/maven-ant-tasks-${maven.jar.version}.jar"/>
- <property name="ivy.jar.repo.url" value="${mvnrepo}/org/apache/ivy/ivy/${ivy.jar.version}/ivy-${ivy.jar.version}.jar"/>
- <property name="ivy.jar" value="${ivy.jar.dir}/ivy-${ivy.jar.version}.jar" />
- <property name="ivy.settings.file" value="ivysettings.xml" />
- <property name="maven.jar" location="${ivy.jar.dir}/maven-ant-tasks-${maven.jar.version}.jar"/>
-
- <basename property="basedirname" file="${basedir}"/>
-
- <target name="all" depends="clean, jar, sources-jar, javadoc-jar" description="Build all artifacts." />
-
- <target name="init" depends="ivy-resolve">
- <mkdir dir="${dist.dir}" />
- </target>
-
- <target name="eclipse" depends="jar,jar-plugin">
- <delete file="${basedir}/.factorypath"/>
- <copy file="${basedir}/.factorypath.template"
- tofile="${basedir}/.factorypath">
- <filterchain>
- <replacetokens>
- <token key="HOME" value="/${basedirname}"/>
- </replacetokens>
- </filterchain>
- </copy>
- <echo message="Created .factorypath"/>
- <delete file="${basedir}/.classpath"/>
- <copy file="${basedir}/.classpath.template"
- tofile="${basedir}/.classpath">
- <filterchain>
- <replacetokens>
- <token key="PROJECT" value="${basedirname}"/>
- </replacetokens>
- </filterchain>
- </copy>
- <echo message="Created .classpath"/>
- </target>
-
- <target name="maven-ant-tasks-jar-download" description="Download maven tasks jar">
- <mkdir dir="${ivy.jar.dir}"/>
- <get src="${maven.jar.repo.url}" dest="${maven.jar}" usetimestamp="true"/>
- </target>
-
- <target name="opennlp-model-download" description="Download OpenNLP models">
- <mkdir dir="${data.dir}"/>
- <get src="http://opennlp.sourceforge.net/models-1.5/en-pos-maxent.bin" dest="${data.dir}/en-pos-maxent.bin" usetimestamp="true"/>
- <get src="http://opennlp.sourceforge.net/models-1.5/en-sent.bin" dest="${data.dir}/en-sent.bin" usetimestamp="true"/>
- <get src="http://opennlp.sourceforge.net/models-1.5/en-token.bin" dest="${data.dir}/en-token.bin" usetimestamp="true"/>
- </target>
-
- <target name="maven-taskdef" depends="maven-ant-tasks-jar-download">
- <path id="mvn-ant-task.classpath" path="${maven.jar}"/>
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
- uri="urn:maven-artifact-ant"
- classpathref="mvn-ant-task.classpath"/>
- </target>
-
- <target name="ivy-jar-download" description="Download ivy jar">
- <mkdir dir="${ivy.jar.dir}"/>
- <get src="${ivy.jar.repo.url}" dest="${ivy.jar}" usetimestamp="true"/>
- </target>
-
- <target name="ivy-taskdef" depends="ivy-jar-download" description="install ivy">
- <path id="ivy.lib.path">
- <pathelement location="${ivy.jar}"/>
- </path>
- <taskdef resource="org/apache/ivy/ant/antlib.xml"
- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
- </target>
-
- <target name="ivy-resolve" depends="ivy-taskdef" description="retrieve dependencies with ivy">
- <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact]-[type]-[revision].[ext]"/>
- </target>
-
- <target name="check-licenses" description="checks that source files have license header">
- <exec executable="./check-license-headers.sh" failonerror="true"/>
- </target>
-
- <target name="clean-cache" depends="ivy-taskdef" description="clean the ivy cache">
- <ivy:cleancache />
- </target>
-
- <path id="main-classpath">
- <fileset dir="${common.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${packaged.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${hadoop.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <pathelement path="${classes.dir}" />
- </path>
-
- <path id="cobertura.classpath">
- <fileset dir="${cobertura.dir}">
- <include name="cobertura.jar" />
- <include name="lib/**/*.jar" />
- </fileset>
- </path>
-
- <taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
-
- <path id="plugin-classpath">
- <fileset dir="${static.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${tools.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${ivy.jar.dir}">
- <include name="*.jar" />
- </fileset>
- </path>
-
- <path id="build-tests-classpath">
- <fileset dir="${common.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${static.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${hadoop.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${test.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${tools.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <pathelement path="${classes.dir}" />
- <pathelement path="${plugin.classes.dir}" />
- </path>
-
- <path id="run-tests-base-classpath">
- <!-- these common libs are assumed to be downloaded and available when using datafu
- as they are listed in the pom -->
- <fileset dir="${common.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <!-- we do not include the packaged directory since classes from these jars
- should be in the datafu jar -->
- <fileset dir="${hadoop.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${test.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${tools.lib.dir}">
- <include name="*.jar" />
- </fileset>
- <pathelement path="${pigtestclasses.dir}" />
- </path>
-
- <path id="run-tests-classpath">
- <path refid="run-tests-base-classpath" />
- <!-- pick up the datafu jar -->
- <fileset dir="${dist.dir}">
- <include name="datafu-*.jar" />
- </fileset>
- </path>
-
- <path id="instrumented-test-classpath">
- <path refid="run-tests-base-classpath" />
- <path refid="cobertura.classpath" />
- <!-- Use instrumented JARs -->
- <fileset dir="${instrumented.dir}">
- <include name="*.jar" />
- </fileset>
- </path>
-
- <macrodef name="replace-dir">
- <attribute name="dir" />
- <sequential>
- <delete dir="@{dir}" />
- <mkdir dir="@{dir}" />
- </sequential>
- </macrodef>
-
- <target name="clean" description="Delete generated files.">
- <delete dir="${basedir}/build" />
- <delete dir="${lib.dir}" />
- <delete dir="${dist.dir}" />
- <delete dir="${docs.dir}" />
- <delete dir="${report.dir}" />
- <delete dir="${coveragereport.dir}"/>
- <delete dir="${instrumented.dir}"/>
- <delete dir="test-output"/>
- <delete file="cobertura.ser"/>
- </target>
-
- <target name="build" depends="init" description="Compile main source tree java files">
- <replace-dir dir="${classes.dir}" />
- <javac destdir="${classes.dir}" source="${sourceJavaVersion}" target="${targetJavaVersion}" debug="true" deprecation="false" failonerror="true" includeantruntime="false">
- <src path="${java.dir}" />
- <exclude name="datafu/linkedin/**"/>
- <classpath refid="main-classpath" />
- </javac>
- </target>
-
- <target name="build-plugins" depends="init" description="Compile main source tree java files">
- <replace-dir dir="${plugin.classes.dir}" />
- <javac destdir="${plugin.classes.dir}" source="${sourceJavaVersion}" target="${targetJavaVersion}" debug="true" deprecation="false" failonerror="true" includeantruntime="false">
- <src path="${plugin.java.dir}" />
- <classpath refid="plugin-classpath" />
- </javac>
- </target>
-
- <target name="jar-plugin" depends="build-plugins" description="Builds the plugin JAR">
- <delete file="${basedir}/annotation-plugin.jar" />
- <jar destfile="${basedir}/annotation-plugin.jar">
- <fileset dir="${plugin.classes.dir}">
- <include name="**/*.*" />
- </fileset>
- <service type="javax.annotation.processing.Processor" provider="org.adrianwalker.multilinestring.MultilineProcessor"/>
- </jar>
- </target>
-
- <target name="build-pig-tests" depends="build,build-plugins" description="Compile pig test classes">
- <replace-dir dir="${pigtestclasses.dir}" />
- <copy todir="${pigtestclasses.dir}">
- <fileset dir="${pigtestsrc.dir}">
- <exclude name="**/*.java" />
- </fileset>
- </copy>
- <javac destdir="${pigtestclasses.dir}" source="${sourceJavaVersion}" target="${targetJavaVersion}" debug="true" deprecation="false" failonerror="true" includeantruntime="false">
- <src path="${pigtestsrc.dir}" />
- <compilerarg line="-processor org.adrianwalker.multilinestring.MultilineProcessor"/>
- <classpath refid="build-tests-classpath" />
- </javac>
- </target>
-
- <target name="jar" depends="build" description="Builds the final JAR">
- <!-- build the core jar -->
- <delete file="${dist.dir}/${final.name}.jar" />
- <jar destfile="${dist.dir}/${final.name}.jar">
- <fileset dir="${classes.dir}">
- <include name="**/*.*" />
- </fileset>
- </jar>
-
- <!-- Need to check for the existence of the jar because next command won't fail if it's missing -->
- <fail message="Could not find fastutil jar">
- <condition>
- <not>
- <resourcecount count="1">
- <fileset id="fs" dir="${packaged.lib.dir}" includes="${fastutil.jar}"/>
- </resourcecount>
- </not>
- </condition>
- </fail>
- <fail message="Could not find commons-math jar">
- <condition>
- <not>
- <resourcecount count="1">
- <fileset id="fs" dir="${packaged.lib.dir}" includes="${commons-math.jar}"/>
- </resourcecount>
- </not>
- </condition>
- </fail>
- <fail message="Could not find stream jar">
- <condition>
- <not>
- <resourcecount count="1">
- <fileset id="fs" dir="${packaged.lib.dir}" includes="${stream.jar}"/>
- </resourcecount>
- </not>
- </condition>
- </fail>
- <fail message="Could not find guava jar">
- <condition>
- <not>
- <resourcecount count="1">
- <fileset id="fs" dir="${packaged.lib.dir}" includes="${guava.jar}"/>
- </resourcecount>
- </not>
- </condition>
- </fail>
-
- <!-- add fastutil classes to the core jar -->
- <echo message="Adding to ${final.name}.jar with autojar" />
- <delete file="${dist.dir}/${final.name}-orig.jar" />
- <move file="${dist.dir}/${final.name}.jar" tofile="${dist.dir}/${final.name}-orig.jar" />
- <java jar="${tools.dir}/autojar.jar" fork="true">
- <arg line="-baeq -o ${dist.dir}/${final.name}.jar -c ${packaged.lib.dir}/*.jar ${dist.dir}/${final.name}-orig.jar" />
- </java>
- <delete file="${dist.dir}/${final.name}-orig.jar" />
-
- <!-- build the final jar -->
- <delete file="${dist.dir}/${final.name}-orig.jar" />
- <move file="${dist.dir}/${final.name}.jar" tofile="${dist.dir}/${final.name}-orig.jar" />
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="tools/jarjar-1.1.jar"/>
- <jarjar jarfile="${dist.dir}/${final.name}.jar">
- <zipfileset src="${dist.dir}/${final.name}-orig.jar"/>
- <rule pattern="it.unimi.dsi.fastutil.**" result="datafu.it.unimi.dsi.fastutil.@1"/>
- <rule pattern="org.apache.commons.math.**" result="datafu.org.apache.commons.math.@1"/>
- <rule pattern="com.clearspring.analytics.**" result="datafu.com.clearspring.analytics.@1"/>
- <rule pattern="com.google.common.**" result="datafu.com.google.common.@1"/>
- <rule pattern="opennlp.**" result="datafu.opennlp.@1"/>
- </jarjar>
- <delete file="${dist.dir}/${final.name}-orig.jar" />
- </target>
-
- <target name="jar-instrumented" depends="jar" description="Build an instrumented jar">
- <delete file="cobertura.ser" />
- <replace-dir dir="${instrumented.dir}" />
- <cobertura-instrument todir="${instrumented.dir}">
- <includeClasses regex=".*datafu.*" />
- <excludeClasses regex=".*fastutil.*" />
- <excludeClasses regex=".*test.*" />
- <instrumentationClasspath>
- <pathelement location="${dist.dir}"/>
- </instrumentationClasspath>
- </cobertura-instrument>
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="tools/jarjar-1.1.jar"/>
- <delete file="${instrumented.dir}/${final.name}.jar" />
- <!-- Classes are now instrumented, but we need to merge back with original JAR to get back what was lost, since
- we don't instrument everything and therefore classes are missing form the instrumented directory. -->
- <jarjar jarfile="${instrumented.dir}/${final.name}.jar">
- <zipfileset src="${dist.dir}/${final.name}.jar"/>
- <!-- Classes in instrumented directory come last so they take precedence over the classes in the JAR.
- We need to include the JAR so we get the fastutil classes. The fastutil classes are not instrumented (by design),
- so they are not in the instrumented directory. -->
- <fileset dir="${instrumented.dir}" />
- </jarjar>
- </target>
-
- <target name="test" depends="build-pig-tests, jar, opennlp-model-download" description="Runs the pig tests">
- <taskdef resource="testngtasks" classpath="${tools.lib.dir}/testng-jar-${testng.version}.jar"/>
- <testng classpathref="run-tests-classpath" methods="${test.methods}"
- outputDir="${report.dir}" verbose="2" haltonfailure="true" haltonskipped="true">
- <jvmarg value="-Xmx1G" />
- <sysproperty key="datafu.jar.dir" value="${dist.dir}" />
- <classfileset dir="${pigtestclasses.dir}" includes="${testclasses.pattern}" />
- </testng>
- </target>
-
- <target name="test-instrumented" depends="build-pig-tests, jar-instrumented, opennlp-model-download" description="Runs the tests with instrumented JARs">
- <taskdef resource="testngtasks" classpath="${tools.lib.dir}/testng-jar-${testng.version}.jar"/>
- <testng classpathref="instrumented-test-classpath" methods="${test.methods}"
- outputDir="${report.dir}" haltonfailure="true" haltonskipped="true">
- <jvmarg value="-Xmx1G" />
- <sysproperty key="datafu.jar.dir" value="${instrumented.dir}" />
- <classfileset dir="${pigtestclasses.dir}" includes="${testclasses.pattern}" />
- </testng>
- </target>
-
- <target name="coverage" depends="test-instrumented" description="Generates the code coverage report">
- <replace-dir dir="${coveragereport.dir}" />
- <cobertura-report format="html" destdir="${coveragereport.dir}">
- <fileset dir="${java.dir}">
- <include name="**/*.java" />
- </fileset>
- </cobertura-report>
- </target>
-
- <target name="sources-jar" description="Build source jar file">
- <jar destfile="${output.jarfile.sources}">
- <fileset dir="${java.dir}">
- <include name="**/*.java" />
- </fileset>
- </jar>
- </target>
-
- <macrodef name="make-javadocs">
- <attribute name="dir" />
- <attribute name="packagenames" />
- <attribute name="javadir" />
- <sequential>
- <replace-dir dir="@{dir}" />
- <javadoc destdir="@{dir}" windowtitle="${display.name} ${datafu.version}" source="1.5" author="true" version="true" use="true" packagenames="@{packagenames}">
- <doctitle>${display.name} ${datafu.version}</doctitle>
- <bottom>${author}</bottom>
- <classpath refid="main-classpath" />
- <fileset dir="@{javadir}">
- <exclude name="datafu/pig/stats/*?VAR.java"/>
- <exclude name="datafu/pig/sets/SetOperationsBase.java"/>
- </fileset>
- </javadoc>
- </sequential>
- </macrodef>
-
- <target name="javadoc-jar" description="Create complete Javadoc documentation">
- <delete dir="${javadoc.dir}" />
- <make-javadocs dir="${javadoc.dir}" packagenames="*" javadir="${java.dir}"/>
-
- <!-- Make javadoc JAR -->
- <jar destfile="${output.jarfile.javadoc}">
- <fileset dir="${javadoc.dir}">
- <include name="**/*.*" />
- </fileset>
- </jar>
- </target>
-
- <target name="deploy" depends="clean,jar,sources-jar,javadoc-jar,set-version,sign">
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
- uri="antlib:org.apache.maven.artifact.ant"
- classpathref="plugin-classpath" />
-
- <artifact:pom file="${datafu.pomfile}" id="datafu-pom"/>
- <artifact:install-provider artifactId="wagon-ssh" version="${wagon-http.version}"/>
- <artifact:deploy file="${output.jarfile}">
- <remoteRepository id="${maven-staging-repository-id}" url="${maven-staging-repository-url}"/>
- <pom refid="datafu-pom"/>
- <attach file="${output.jarfile}.asc" type="jar.asc"/>
- <attach file="${datafu.pomfile}.asc" type="pom.asc"/>
- <attach file="${output.jarfile.sources}.asc" type="jar.asc" classifier="sources" />
- <attach file="${output.jarfile.sources}" classifier="sources" />
- <attach file="${output.jarfile.javadoc}.asc" type="jar.asc" classifier="javadoc" />
- <attach file="${output.jarfile.javadoc}" classifier="javadoc" />
- </artifact:deploy>
- </target>
-
- <target name="sign" depends="clean-sign">
- <macrodef name="sign-artifact" description="Signs the artifact">
- <attribute name="input.file"/>
- <attribute name="output.file" default="@{input.file}.asc"/>
- <sequential>
- <echo>Signing @{input.file} Sig File: @{output.file}</echo>
- <exec executable="gpg" >
- <arg value="--armor"/>
- <arg value="--output"/>
- <arg value="@{output.file}"/>
- <arg value="--detach-sig"/>
- <arg value="@{input.file}"/>
- </exec>
- </sequential>
- </macrodef>
- <sign-artifact input.file="${output.jarfile}"/>
- <sign-artifact input.file="${output.jarfile.sources}"/>
- <sign-artifact input.file="${output.jarfile.javadoc}"/>
- <sign-artifact input.file="${datafu.pomfile}"/>
- </target>
-
- <target name="set-version">
- <delete file="${datafu.pomfile}"/>
- <copy file="${datafu.pomfile.template}" tofile="${datafu.pomfile}"/>
- <replaceregexp byline="true">
- <regexp pattern="@version"/>
- <substitution expression="${datafu.version}"/>
- <fileset dir="${ivy.jar.dir}">
- <include name="${datafu.pom.name}"/>
- </fileset>
- </replaceregexp>
- </target>
-
- <target name="clean-sign" description="Clean. Delete .asc files">
- <delete>
- <fileset dir="." includes="**/**/*.asc"/>
- </delete>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/45746ac2/check-license-headers.sh
----------------------------------------------------------------------
diff --git a/check-license-headers.sh b/check-license-headers.sh
deleted file mode 100755
index 8b16c79..0000000
--- a/check-license-headers.sh
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env ruby
-
-# Verify that all source files have the license header.
-
-LICENSE = <<EOF
-/*
- * 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.
- */
-EOF
-
-LICENSE_REGEX = Regexp.new("^#{Regexp.quote(LICENSE)}",Regexp::MULTILINE)
-
-
-def file_has_license?(file)
- LICENSE_REGEX =~ File.read(file)
-end
-
-def find_unlicensed_files(dir)
- Dir["#{dir}/**/*.java"].find_all do |file|
- not file_has_license? file
- end
-end
-
-files_without_license = []
-
-source_dirs = ["src","test"]
-
-source_dirs.each do |dir|
- files_without_license.concat find_unlicensed_files(dir)
-end
-
-if files_without_license.size > 0
- puts "The following file are missing the license header:"
- files_without_license.each { |file| puts " #{file}"}
- exit false
-else
- puts "All source files have the license header"
-end
http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/45746ac2/ivy.xml
----------------------------------------------------------------------
diff --git a/ivy.xml b/ivy.xml
deleted file mode 100644
index f1f90fa..0000000
--- a/ivy.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<ivy-module version="2.0">
- <info organisation="datafu" module="datafu"/>
- <configurations>
- <conf name="common" description="common libraries" />
- <conf name="packaged" description="packaged libraries" />
- <conf name="hadoop" description="hadoop/pig libraries" />
- <conf name="test" description="test libraries" />
- <conf name="tools" description="tools libraries" />
- </configurations>
- <dependencies>
-
- <!-- dependencies explicitly listed in the pom that are required -->
- <dependency org="joda-time" name="joda-time" rev="${joda-time.version}" conf="common->default"/>
-
- <!-- dependencies that are packaged within the datafu jar and are therefore not listed in the pom -->
- <dependency org="it.unimi.dsi" name="fastutil" rev="${fastutil.version}" conf="packaged->default"/>
- <dependency org="org.apache.commons" name="commons-math" rev="${commons-math.version}" conf="packaged->default"/>
- <dependency org="com.clearspring.analytics" name="stream" rev="${stream.version}" conf="packaged->default">
- <!-- don't include fastutil, as we will include it below and don't want it in the common directory -->
- <exclude org="it.unimi.dsi" name="fastutil" />
- </dependency>
- <dependency org="com.google.guava" name="guava" rev="${guava.version}" conf="packaged->default"/>
- <dependency org="org.apache.opennlp" name="opennlp-tools" rev="${opennlp.version}" conf="packaged->default"/>
- <dependency org="org.apache.opennlp" name="opennlp-uima" rev="${opennlp.version}" conf="packaged->default"/>
- <dependency org="org.apache.opennlp" name="opennlp-maxent" rev="${opennlp-maxent.version}" conf="packaged->default"/>
-
- <!-- hadoop and pig dependencies required for building but which are not included in the pom because
-we don't want to require a specific version -->
- <dependency org="org.apache.pig" name="pig" rev="${pig.version}" conf="hadoop->default"/>
- <dependency org="org.apache.hadoop" name="hadoop-core" rev="${hadoop.version}" conf="hadoop->default"/>
-
- <!-- dependencies only needed for testing and are not listed in the pom -->
- <dependency org="org.apache.pig" name="pigunit" rev="${pig.version}" conf="test->default"/>
- <!-- log4j, jline, and anltr are needed for pigunit to work -->
- <dependency org="log4j" name="log4j" rev="${log4j.version}" conf="test->default"/>
- <dependency org="jline" name="jline" rev="${jline.version}" conf="test->default"/>
- <dependency org="org.antlr" name="antlr" rev="${antlr.version}" conf="test->default"/>
- <dependency org="commons-io" name="commons-io" rev="${commons-io.version}" conf="test->default"/>
-
- <!-- dependencies used by the build tool or for testing -->
- <dependency org="com.sun" name="tools" rev="${tools.version}" conf="tools->default"/>
- <dependency org="org.testng" name="testng" rev="${testng.version}" conf="tools->default"/>
-
- </dependencies>
-</ivy-module>
http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/45746ac2/ivy/libraries.properties
----------------------------------------------------------------------
diff --git a/ivy/libraries.properties b/ivy/libraries.properties
deleted file mode 100644
index 55a217e..0000000
--- a/ivy/libraries.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-antlr.version=3.2
-avro.version=1.5.3
-stream.version=2.5.0
-commons-math.version=2.2
-commons-io.version=1.4
-fastutil.version=6.5.7
-guava.version=11.0
-hadoop.version=0.20.2
-joda-time.version=1.6
-log4j.version=1.2.14
-maven.version=2.1.3
-jline.version=0.9.94
-pig.version=0.11.1
-testng.version=6.2
-tools.version=1.4.2
-wagon-http.version=1.0-beta-2
-opennlp.version=1.5.3
-opennlp-maxent.version=3.0.3
http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/45746ac2/ivy/pom-template.xml
----------------------------------------------------------------------
diff --git a/ivy/pom-template.xml b/ivy/pom-template.xml
deleted file mode 100644
index a5ef836..0000000
--- a/ivy/pom-template.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.linkedin.datafu</groupId>
- <artifactId>datafu</artifactId>
- <packaging>jar</packaging>
- <name>DataFu</name>
- <version>@version</version>
- <description>A collection of user-defined functions for working with large-scale data in Hadoop and Pig.</description>
- <url>http://data.linkedin.com/opensource/datafu</url>
- <licenses>
- <license>
- <name>The Apache Software License, Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
- <scm>
- <url>git@github.com:linkedin/datafu.git</url>
- <connection>scm:git:git@github.com:linkedin/datafu.git</connection>
- <developerConnection>scm:git:git@github.com:linkedin/datafu.git</developerConnection>
- </scm>
- <developers>
- <developer>
- <id>mhayes</id>
- <name>Matthew Hayes</name>
- <email>mhayes@linkedin.com</email>
- <organization>LinkedIn</organization>
- <organizationUrl>http://www.linkedin.com</organizationUrl>
- </developer>
- <developer>
- <id>samshah</id>
- <name>Sam Shah</name>
- <email>samshah@linkedin.com</email>
- <organization>LinkedIn</organization>
- <organizationUrl>http://www.linkedin.com</organizationUrl>
- </developer>
- <developer>
- <id>wvaughan</id>
- <name>William Vaughan</name>
- <email>wvaughan@linkedin.com</email>
- <organization>LinkedIn</organization>
- <organizationUrl>http://www.linkedin.com</organizationUrl>
- </developer>
- </developers>
- <contributors>
- <contributor>
- <name>Josh Wills</name>
- <organization>Cloudera</organization>
- <organizationUrl>http://www.cloudera.com</organizationUrl>
- </contributor>
- <contributor>
- <name>Evion Kim</name>
- <organization>LinkedIn</organization>
- <organizationUrl>http://www.linkedin.com</organizationUrl>
- </contributor>
- </contributors>
- <parent>
- <groupId>org.sonatype.oss</groupId>
- <artifactId>oss-parent</artifactId>
- <version>7</version>
- </parent>
- <dependencies>
- <dependency>
- <groupId>joda-time</groupId>
- <artifactId>joda-time</artifactId>
- <version>1.6</version>
- </dependency>
- </dependencies>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/45746ac2/ivysettings.xml
----------------------------------------------------------------------
diff --git a/ivysettings.xml b/ivysettings.xml
deleted file mode 100644
index d7cbbc1..0000000
--- a/ivysettings.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<ivysettings>
-<settings defaultResolver="ivyrep"/>
-<resolvers>
- <chain name="ivyrep" returnFirst="true">
- <ibiblio name="ibiblio" m2compatible="true"/>
- </chain>
- <filesystem name="tools" local="true">
- <artifact pattern="${java.home}/lib/tools.[type]" />
- <artifact pattern="${java.home}/../lib/tools.[type]" />
- <artifact pattern="${java.home}/../Classes/classes.[type]" />
- </filesystem>
-</resolvers>
-<modules>
- <module organisation="com.sun" name="tools" resolver="tools"/>
-</modules>
-</ivysettings>
\ No newline at end of file