Skip to content
Snippets Groups Projects
Commit 18795403 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Initial import

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 426 additions and 0 deletions
build
cobertura.ser
dist
instrumented
.DS_Store
\ No newline at end of file
Unless otherwise noted, This software is in the public domain because it
contains materials that originally came from the United States Geological
Survey, an agency of the United States Department of Interior. For more
information, see the official USGS copyright policy at
http://www.usgs.gov/visual-id/credit_usgs.html#copyright
Dependent libraries found in the "lib" directory are distributed under the
open source (or open source-like) licenses/agreements. Appropriate license
aggrements for each library can be found in the "lib" directory.
Libraries used at runtime
-------------------------
- JLargeArrays-1.2.jar (https://github.com/IcmVis/JLargeArrays)
- JTransforms-3.0.jar (https://github.com/wendykierp/JTransforms)
Libraries used to build/test package
------------------------------------
- asm-4.1.jar (http://asm.ow2.org/index.html)
- asm-commons-4.1.jar (http://asm.ow2.org/index.html)
- asm-tree-4.1.jar (http://asm.ow2.org/index.html)
- cobertura.jar (http://cobertura.sourceforge.net/)
- hamcrest-core-1.3.jar (https://code.google.com/p/hamcrest/)
- jakarta-oro-2.0.8.jar (http://jakarta.apache.org/oro/)
- junit-4.11.jar (http://junit.org/)
- log4j-1.2.9.jar (http://logging.apache.org/log4j/2.x/)
Geomag Algorithms
=================
Geomag algorithms includes tools to fetch, process, and output geomag data.
build.xml 0 → 100755
<?xml version="1.0" encoding="UTF-8"?>
<project name="Geomag Algorithms" default="jar" basedir=".">
<description>
Geomag algorithms includes tools to fetch, process, and output geomag data.
</description>
<!-- PROJECT PROPERTIES -->
<property name="etc" location="etc" />
<property name="src" location="src/java" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="instrumented.dir" location="instrumented" />
<property name="reports.dir" location="${dist}/reports" />
<property name="reports.xml.dir" location="${reports.dir}/junit-xml" />
<property name="reports.html.dir" location="${reports.dir}/junit-html" />
<property name="coverage.xml.dir" location="${reports.dir}/coverage-xml" />
<property name="coverage.html.dir" location="${reports.dir}/coverage-html" />
<property name="compile.debug" value="true" />
<!-- CLASSPATH -->
<fileset dir="${lib}" id="classpath.fileset">
<include name="JLargeArrays-1.2.jar" />
<include name="JTransforms-3.0.jar" />
</fileset>
<path id="classpath">
<fileset refid="classpath.fileset" />
</path>
<path id="classpath-test">
<path refid="classpath" />
<pathelement path="${build}" />
<pathelement location="${lib}/junit-4.11.jar" />
</path>
<path id="classpath-cobertura">
<pathelement location="${lib}/cobertura.jar" />
<pathelement location="${lib}/asm-4.1.jar" />
<pathelement location="${lib}/asm-commons-4.1.jar" />
<pathelement location="${lib}/asm-tree-4.1.jar" />
<pathelement location="${lib}/hamcrest-core-1.3.jar" />
<pathelement location="${lib}/jakarta-oro-2.0.8.jar" />
<pathelement location="${lib}/log4j-1.2.9.jar" />
</path>
<taskdef classpathref="classpath-cobertura" resource="tasks.properties" />
<!-- TARGETS -->
<target name="compile" description="Compile code">
<mkdir dir="${build}" />
<javac srcdir="${src}" destdir="${build}" source="1.6" target="1.6" includeAntRuntime="no" debug="${compile.debug}">
<classpath refid="classpath-test" />
</javac>
</target>
<target name="instrument" depends="compile" description="Cobertura intrumentation for coverage.">
<delete file="cobertura.ser" />
<delete dir="${instrumented.dir}" />
<cobertura-instrument todir="${instrumented.dir}">
<!--
The following line causes instrument to ignore any
source line containing a reference to log4j, for the
purposes of coverage reporting.
-->
<ignore regex="org.apache.log4j.*" />
<fileset dir="${build}">
<!--
Instrument all the application classes, but
don't instrument the test classes.
-->
<include name="**/*.class" />
<exclude name="**/*Test.class" />
<exclude name="**/*Test$*.class"/>
</fileset>
</cobertura-instrument>
</target>
<target name="test" depends="compile, instrument" description="Run JUnit tests">
<mkdir dir="${reports.xml.dir}" />
<mkdir dir="${reports.html.dir}" />
<junit fork="yes" printsummary="yes" haltonfailure="yes" failureProperty="test.failed">
<classpath location="${instrumented.dir}" />
<classpath refid="classpath-test" />
<classpath refid="classpath-cobertura" />
<formatter type="xml" />
<formatter type="plain" usefile="false" />
<batchtest todir="${reports.xml.dir}">
<!-- any class with the name Test in its name -->
<fileset dir="${src}" includes="**/*Test.java" />
</batchtest>
</junit>
<junitreport todir="${reports.xml.dir}">
<fileset dir="${reports.xml.dir}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${reports.html.dir}" />
</junitreport>
</target>
<target name="coverage" depends="test" description="Run Coverage tests">
<mkdir dir="${coverage.xml.dir}" />
<mkdir dir="${coverage.html.dir}" />
<!-->
<cobertura-check branchrate="34" totallinerate="100"/>-->
<cobertura-report srcdir="${src}" destdir="${coverage.xml.dir}" format="xml" />
<cobertura-report destdir="${coverage.html.dir}">
<fileset dir="${src}">
<include name="**/*.java" />
</fileset>
</cobertura-report>
</target>
<target name="jar" depends="compile" description="Build jar">
<mkdir dir="${dist}" />
<!-- Build the jar file -->
<jar jarfile="${dist}/GeomagAlgorithms.jar" basedir="${build}" excludes="**/*Test*">
<manifest>
<attribute name="Main-Class" value="gov.usgs.geomag.io.WaveserverMain" />
</manifest>
<zipgroupfileset refid="classpath.fileset" />
</jar>
</target>
<target name="javadoc" depends="jar" description="Run JavaDoc">
<javadoc destdir="${dist}/javadoc" packagenames="gov.usgs.*">
<fileset dir="${src}" excludes="**/*Test*" />
<classpath refid="classpath" />
</javadoc>
</target>
<target name="all" depends="clean,test,coverage,jar,javadoc" description="clean, test, jar, and javadoc" />
<target name="clean" description="Delete build and dist directories">
<delete dir="${build}" />
<delete dir="${dist}" />
<delete dir="${instrumented.dir}" />
<delete file="cobertura.log" />
<delete file="cobertura.ser" />
<delete dir="bin" />
</target>
</project>
JLargeArrays
Copyright (C) 2013 onward University of Warsaw, ICM
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
File added
JTransforms
Copyright (c) 2007 onward, Piotr Wendykier
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
File added
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
File added
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
File added
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
File added
The Cobertura ant tasks are licensed under the [Apache Software License,
Version 1.1] [1]. The rest of Cobertura is licensed under the [GNU General
Public License, Version 2.0] [2]. See below for [detailed explanations] [3]
[1]: http://perl.apache.org/start/LICENSE.txt
[2]: http://www.gnu.org/licenses/gpl-2.0.html
[3]: http://cobertura.sourceforge.net/license.html
\ No newline at end of file
File added
BSD License
Copyright (c) 2000-2006, www.hamcrest.org
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer. Redistributions in binary form
must reproduce the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials provided with
the distribution.
Neither the name of Hamcrest nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
File added
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation", "Jakarta-Oro"
* must not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
* or "Jakarta-Oro", nor may "Apache" or "Jakarta-Oro" appear in their
* name, without prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment