Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
westyUMass committed Nov 17, 2015
0 parents commit c3d9fe3
Show file tree
Hide file tree
Showing 798 changed files with 71,354 additions and 0 deletions.
17 changes: 17 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2015 University of Massachusetts
*
* 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.
*
* Initial developer(s): V. Arun
*/
3 changes: 3 additions & 0 deletions build.number
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Build Number for ANT. Do not edit!
#Mon Nov 16 19:48:34 EST 2015
build.number=267
2 changes: 2 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VERSION=1.16
RELEASE=2015-11-16
185 changes: 185 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
name="Build file for gigapaxos"
basedir="."
default="jar" >

<property name="src.dir" value="src"/>
<property name="testsrc.dir" location="test"/>
<property name="build.dir" value="build"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
<property name="build.test.classes.dir" value="${build.dir}/test/classes"/>
<property name="test.dir" value="test" />
<property name="build.test.dir" value="${build.dir}/test"/>
<property name="build.jar.dir" value="${build.dir}/jars"/>
<property name="lib.dir" value="lib"/>
<property name="dist.dir" value="dist"/>
<!-- <property name="jars.dir" value="jars"/>-->
<!-- <property name="conf.dir" value="conf"/>
<property name="scripts.dir" value="scripts"/>-->

<!-- Properties -->
<property file="build.properties" />

<path id="classpath.base">
<pathelement location="${build.dir}"/>
<pathelement location="${build.classes.dor}"/>
<!-- <pathelement location="${conf.dir}"/>-->
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>

<target name="init">
<tstamp/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes.dir}"/>
</target>

<target name="compile" depends="init, buildnumber" description="compile java files">
<javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="true" debuglevel="lines,vars,source"
includeantruntime="false">
<compilerarg value="-Xlint:unchecked"/>
<classpath refid="classpath.base"/>
</javac>
</target>

<target name="nio_jarbuild" depends="compile" description="generate jar files">
<mkdir dir="${build.jar.dir}"/>
<jar destfile="${build.jar.dir}/nio-1.2.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Implementation-Vendor"
value="University of Massachusetts" />
<attribute name="Implementation-Title" value="GNS Nio Library" />
<attribute name="Implementation-Version"
value="${VERSION}-${RELEASE}" />
<attribute name="Build-Version" value="${version.code}" />
</manifest>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/nio/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/nio/nioutils/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/utils/*.class"/>
<fileset dir="${build.classes.dir}" includes="org/json/*.class"/>
<!-- interesting special cases here added because of one use of ReconfigurableClient in NIOInstrumenter -->
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/reconfiguration/**/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/gigapaxos/**/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/protocoltask/**/*.class"/>

<!-- <fileset dir="${conf.dir}" includes="trustStore/**, keystore/**" />-->
</jar>
</target>

<target name="gigapaxos_jarbuild" depends="compile" description="generate jar files">
<mkdir dir="${build.jar.dir}"/>
<jar destfile="${build.jar.dir}/gigapaxos-1.0.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Implementation-Vendor"
value="University of Massachusetts" />
<attribute name="Implementation-Title" value="GNS Gigapaxos Library" />
<attribute name="Implementation-Version"
value="${VERSION}-${RELEASE}" />
<attribute name="Build-Version" value="${version.code}" />
</manifest>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/nio/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/nio/nioutils/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/utils/*.class"/>
<fileset dir="${build.classes.dir}" includes="org/json/*.class"/>
<!-- interesting special cases here added because of one use of ReconfigurableClient in NIOInstrumenter -->
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/reconfiguration/**/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/gigapaxos/**/*.class"/>
<fileset dir="${build.classes.dir}" includes="edu/umass/cs/protocoltask/**/*.class"/>

<!-- <fileset dir="${conf.dir}" includes="trustStore/**, keystore/**" />-->
</jar>
</target>

<target name="clean" description="remove generated files">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<!-- <delete dir="${jars.dir}"/>-->
</target>

<target name="doc" description="generate javadoc">
<mkdir dir="${build.dir}/doc"/>
<javadoc packagenames="edu.umass.cs.*"
sourcepath="${src.dir}"
destdir="${build.dir}/doc"
additionalparam="-Xdoclint:none">
<classpath refid="classpath.base"/>
<!-- <link href="http://java.sun.com/javase/6/docs/api/"/>-->
</javadoc>
<mkdir dir="${dist.dir}/doc"/>
<copy todir="${dist.dir}/doc">
<fileset dir="${build.dir}/doc" includes="**"/>
</copy>
</target>

<target name="jar" depends="nio_jarbuild, gigapaxos_jarbuild">
<!-- copy jars into dist/jars -->
<mkdir dir="${dist.dir}"/>
<copy todir="${dist.dir}">
<fileset dir="${build.jar.dir}" includes="*.jar"/>
</copy>
<!-- <mkdir dir="${jars.dir}"/>
<copy todir="${jars.dir}">
<fileset dir="${build.jar.dir}" includes="*.jar"/>
</copy>-->

</target>

<path id="classpath.test">
<pathelement location="${build.classes.dir}"/>
<pathelement location="${lib.dir}/junit-4.11.jar"/>
<pathelement location="${lib.dir}/hamcrest-all-1.3.jar"/>
<!-- <pathelement location="${conf.dir}"/>-->
</path>

<target name="ensure-test-name" unless="test">
<fail message="You must run this target with -Dtest=TestName"/>
</target>

<target name="compiletest" depends="compile" description="Compile all the test files">
<mkdir dir="${build.test.dir}" />
<mkdir dir="${build.test.classes.dir}" />
<javac srcdir="${test.dir}"
destdir="${build.test.classes.dir}"
debug="on"
includeantruntime="false">
<classpath refid="classpath.test"/>
</javac>
</target>

<target name="runtest" description="Runs the test you specify on the command line with -Dtest="
depends="compiletest, ensure-test-name">
<junit printsummary="withOutAndErr" fork="yes">
<!-- <jvmarg value="-Djavax.net.ssl.trustStorePassword=qwerty"/>
<jvmarg value="-Djavax.net.ssl.trustStore=conf/trustStore/node100.jks"/>
<jvmarg value="-Djavax.net.debug=ssl"/>-->
<classpath>
<pathelement location="${build.test.classes.dir}"/>
</classpath>
<!-- Make sure these libraries are included -->
<classpath refid="classpath.test" />
<formatter type="plain" usefile="false"/>
<batchtest>
<fileset dir="${test.dir}">
<include name="**/${test}.java"/>
</fileset>
</batchtest>
</junit>
</target>


<target name="all" depends="clean,jar"
description="build all files"/>

<target name="buildnumber" description="Generates version number and sets it in properties file.">
<buildnumber file="build.number" />

<property name="version.code" value="${VERSION}_${RELEASE}_build${build.number}" />

<echo>Version: ${version.code}</echo>

</target>
</project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit c3d9fe3

Please sign in to comment.