Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First commit of raw OpenSHA code

  • Loading branch information...
commit 1b29b8beb98e10489651f97d80fb1df016b574bc 1 parent f99966a
@joshuamckenty joshuamckenty authored
Showing with 838,512 additions and 1 deletion.
  1. +60 −0 .classpath
  2. +6 −0 .gitignore
  3. +23 −0 .project
  4. +6 −0 .settings/org.eclipse.core.resources.prefs
  5. +10 −0 EclipseNotes.txt
  6. +32 −0 LICENSE.txt
  7. +1 −1  README
  8. +168 −0 ant/AppBuilder.xml
  9. +47 −0 ant/CompleteJar.xml
  10. +206 −0 ant/MultiAppBuilder.xml
  11. +318 −0 ant/NSHMP_GroundMotionParameterTool.xml
  12. +28 −0 ant/PortfolioEALCalculator.xml
  13. +419 −0 ant/build.xml
  14. +82 −0 ant/cc-build-test.xml
  15. +5 −0 ant/include/build.version
  16. +90 −0 ant/include/utils.xml
  17. BIN  ant/lib/ant-contrib-1.0b3/ant-contrib-1.0b3.jar
  18. +340 −0 ant/lib/cobertura-1.9.3/COPYING
  19. +33 −0 ant/lib/cobertura-1.9.3/COPYRIGHT
  20. +251 −0 ant/lib/cobertura-1.9.3/ChangeLog
  21. +31 −0 ant/lib/cobertura-1.9.3/README
  22. +21 −0 ant/lib/cobertura-1.9.3/cobertura-check.bat
  23. +1 −0  ant/lib/cobertura-1.9.3/cobertura-check.sh
  24. +21 −0 ant/lib/cobertura-1.9.3/cobertura-instrument.bat
  25. +1 −0  ant/lib/cobertura-1.9.3/cobertura-instrument.sh
  26. +21 −0 ant/lib/cobertura-1.9.3/cobertura-merge.bat
  27. +1 −0  ant/lib/cobertura-1.9.3/cobertura-merge.sh
  28. +21 −0 ant/lib/cobertura-1.9.3/cobertura-report.bat
  29. +1 −0  ant/lib/cobertura-1.9.3/cobertura-report.sh
  30. BIN  ant/lib/cobertura-1.9.3/cobertura.jar
  31. BIN  ant/lib/cobertura-1.9.3/coberturaFlush.war
  32. +14 −0 ant/lib/cobertura-1.9.3/examples/basic/README
  33. +23 −0 ant/lib/cobertura-1.9.3/examples/basic/build.properties
  34. +146 −0 ant/lib/cobertura-1.9.3/examples/basic/build.xml
  35. +127 −0 ant/lib/cobertura-1.9.3/examples/basic/build_with_specific_data_file.xml
  36. +106 −0 ant/lib/cobertura-1.9.3/examples/basic/src/com/example/simple/Simple.java
  37. +60 −0 ant/lib/cobertura-1.9.3/examples/basic/src/com/example/simple/SimpleTest.java
  38. BIN  ant/lib/cobertura-1.9.3/lib/asm-3.0.jar
  39. BIN  ant/lib/cobertura-1.9.3/lib/asm-tree-3.0.jar
  40. BIN  ant/lib/cobertura-1.9.3/lib/jakarta-oro-2.0.8.jar
  41. +53 −0 ant/lib/cobertura-1.9.3/lib/jakarta-oro-license.txt
  42. BIN  ant/lib/cobertura-1.9.3/lib/log4j-1.2.9.jar
  43. +48 −0 ant/lib/cobertura-1.9.3/lib/log4j-license.txt
  44. BIN  ant/lib/svnant-1.3.0/ganymed.jar
  45. BIN  ant/lib/svnant-1.3.0/svnClientAdapter.jar
  46. BIN  ant/lib/svnant-1.3.0/svnant.jar
  47. BIN  ant/lib/svnant-1.3.0/svnjavahl.jar
  48. BIN  ant/lib/svnant-1.3.0/svnkit.jar
  49. +9 −0 ant/runAnt.sh
  50. +263 −0 ant/test.xml
  51. +6 −0 conf/EmailConfig.txt
  52. +6 −0 conf/SimpleRMI.policy
  53. +174 −0 conf/cc_conf.xml
  54. +472 −0 conf/web.xml
  55. +14,478 −0 data/mattg_test/AllCal96ModelDaily.txt
  56. +22,400 −0 data/mattg_test/NZdailyRates.txt
  57. +22,400 −0 data/mattg_test/STEP_NZHazProb.txt
  58. +12,250 −0 data/mattg_test/STEP_backGround.txt
  59. +3 −0  data/mattg_test/events_nz_test.nts
  60. +1 −0  data/mattg_test/merge.nts
  61. +3,538 −0 data/mattg_test/merge_NZ.nts
  62. +3,538 −0 data/mattg_test/merge_landers.nts
  63. +1,285 −0 data/mattg_test/merge_synthNZ.nts
  64. +1 −0  data/mattg_test/merge_test.nts
  65. +74 −0 data/siteData/CVM2/ascii2bin.py
  66. +281,101 −0 data/siteData/CVM2/basindepth_OpenSHA.txt
  67. BIN  data/siteData/CVM2/depth_2.5.bin
  68. BIN  data/siteData/CVM4/depth_1.0.bin
  69. BIN  data/siteData/CVM4/depth_2.5.bin
  70. +167 −0 data/siteData/SF06/depth_1.0.bin
  71. +198 −0 data/siteData/SF06/depth_2.5.bin
  72. +4,027 −0 data/siteData/ShakeMapTectonicPolygons/craton.txt
  73. +399,408 −0 data/siteData/Wills2000/usgs_cgs_geology_60s_mod.txt
  74. +78 −0 dev/junk/Bin2Ascii4Floats.java
  75. +170 −0 dev/junk/DatasetIdAndMetadataCheckServlet.java
  76. +107 −0 dev/junk/GenerateBasinDepth.java
  77. +227 −0 dev/junk/GridHazardMapCalculator.java
  78. +150 −0 dev/junk/HazardMapCalcServlet.java
  79. +258 −0 dev/junk/HazardMapCalculatorOld.java
  80. +290 −0 dev/junk/HazardMapStandaloneApplicationUsingFrankel02.java
  81. +111 −0 dev/junk/PEER_TestsGroupResults/ExcelToData.java
  82. +2 −0  dev/junk/PEER_TestsGroupResults/GroupTestDataFiles/data.version
  83. +272 −0 dev/junk/PEER_TestsGroupResults/PEER_FileDeleteWindow.java
  84. +158 −0 dev/junk/PEER_TestsGroupResults/PEER_FileOverwriteWindow.java
  85. +395 −0 dev/junk/PEER_TestsGroupResults/PEER_InputFilesServlet.java
  86. +236 −0 dev/junk/PEER_TestsGroupResults/PEER_PasswordCheck.java
  87. +1,028 −0 dev/junk/PEER_TestsGroupResults/PEER_TestResultsPlotterApplet.java
  88. +1,055 −0 dev/junk/PEER_TestsGroupResults/PEER_TestResultsSubmissionApplet.java
  89. +194 −0 dev/junk/ParameterEditorFactory.java
  90. +12,250 −0 dev/junk/STEP_backGround.txt
  91. +457 −0 dev/junk/SubmitJobForGridComputation.java
  92. +278 −0 dev/junk/SubmitJobForMultiprocessorComputation.java
  93. +148 −0 dev/junk/TestSiteTypeServlets.java
  94. +236 −0 dev/junk/ThreadHazardMapCalculator.java
  95. +251 −0 dev/junk/Vs30SiteTranslator.java
  96. +352 −0 dev/junk/bpt/BPT_DistCalcOld.java
  97. +443 −0 dev/junk/bpt/BPT_DistCalc_OLD.java
  98. +64 −0 dev/junk/bpt/TestBPT_DistCalcOld.java
  99. +105 −0 dev/junk/deformationModel/DeformationModelCalc.java
  100. +124 −0 dev/junk/deformationModel/LineIntersection.java
  101. +939 −0 dev/junk/gui/HazardDataSetCalcCondorApp.java
  102. +1,802 −0 dev/junk/gui/HazardSpectrumApplication.java
  103. +731 −0 dev/junk/gui/PlotCurvesFromHazardDataSetApp.java
  104. +613 −0 dev/junk/gui/PlotMapFromHazardDataSetApp.java
  105. +255 −0 dev/junk/gui/WillsSiteClassApp.java
  106. +172 −0 dev/junk/launchers/AppLauncher.java
  107. +28 −0 dev/junk/launchers/CEA_HazardCurveCalcLauncher.java
  108. +54 −0 dev/junk/launchers/HazardCurveLocalModeAppLauncher.java
  109. +52 −0 dev/junk/launchers/HazardCurveServerModeAppLauncher.java
  110. +232 −0 dev/junk/nga/EqkRuptureFromNGA.java
  111. +162 −0 dev/junk/nga/ReadNGA_DataFile.java
  112. +118 −0 dev/junk/nga/calc/PEER_NGA_HazardCalc.java
  113. +3,713 −0 dev/junk/nga/nga_pga_pgv_data.txt
  114. +3,713 −0 dev/junk/nga/nga_sites_data.txt
  115. +3,712 −0 dev/junk/nga/peer_nga_sa.txt
  116. +73 −0 dev/junk/nga/peer_nga_source_data.txt
  117. BIN  dev/junk/resources/img/OLD_usgs_resrisk.gif
  118. BIN  dev/junk/resources/img/help.png
  119. BIN  dev/junk/resources/img/openSHA_Aqua_sm.gif
  120. BIN  dev/junk/resources/img/openrisk_logoonly.gif
  121. BIN  dev/junk/resources/img/opensha_logoonly.gif
  122. BIN  dev/junk/resources/img/risk-agora_logo.jpg
  123. BIN  dev/junk/resources/img/tempResRisk2.gif
  124. BIN  dev/junk/resources/img/usgslogo.JPG
  125. +125 −0 dev/junk/tsurf/ReadTSurfFile.java
  126. +92 −0 dev/junk/tsurf/TSurface.java
  127. +64 −0 dev/junk/tsurf/Triangle.java
  128. +88 −0 dev/junk/tsurf/Vertex.java
  129. +19 −0 dev/junk/webservices/GMT_WebServiceAPI.java
  130. +225 −0 dev/junk/webservices/GMT_WebServiceAPI_Tie.java
  131. +35 −0 dev/junk/webservices/GMT_WebServiceAPI_runGMT_Script_RequestStruct.java
  132. +74 −0 dev/junk/webservices/GMT_WebServiceAPI_runGMT_Script_RequestStruct_SOAPBuilder.java
  133. +92 −0 dev/junk/webservices/GMT_WebServiceAPI_runGMT_Script_RequestStruct_SOAPSerializer.java
  134. +25 −0 dev/junk/webservices/GMT_WebServiceAPI_runGMT_Script_ResponseStruct.java
  135. +63 −0 dev/junk/webservices/GMT_WebServiceAPI_runGMT_Script_ResponseStruct_SOAPBuilder.java
  136. +71 −0 dev/junk/webservices/GMT_WebServiceAPI_runGMT_Script_ResponseStruct_SOAPSerializer.java
  137. +10 −0 dev/junk/webservices/client/GMT_WebService.java
  138. +10 −0 dev/junk/webservices/client/GMT_WebServiceAPI.java
  139. +180 −0 dev/junk/webservices/client/GMT_WebServiceAPI_Stub.java
  140. +35 −0 dev/junk/webservices/client/GMT_WebServiceAPI_runGMT_Script_RequestStruct.java
  141. +74 −0 dev/junk/webservices/client/GMT_WebServiceAPI_runGMT_Script_RequestStruct_SOAPBuilder.java
  142. +97 −0 dev/junk/webservices/client/GMT_WebServiceAPI_runGMT_Script_RequestStruct_SOAPSerializer.java
  143. +25 −0 dev/junk/webservices/client/GMT_WebServiceAPI_runGMT_Script_ResponseStruct.java
  144. +63 −0 dev/junk/webservices/client/GMT_WebServiceAPI_runGMT_Script_ResponseStruct_SOAPBuilder.java
  145. +71 −0 dev/junk/webservices/client/GMT_WebServiceAPI_runGMT_Script_ResponseStruct_SOAPSerializer.java
  146. +64 −0 dev/junk/webservices/client/GMT_WebService_Impl.java
  147. +77 −0 dev/junk/webservices/client/GMT_WebService_SerializerRegistry.java
  148. +105 −0 dev/junk/webservices/server/GMT_WebServiceServer.java
  149. +77 −0 dev/junk/webservices/server/GMT_WebService_SerializerRegistry.java
  150. +40 −0 dev/junk/webservices/wsdl/GMT_WebService.wsdl
  151. +17 −0 dev/junk/webservices/wsdl/jaxrpc-ri.xml
  152. +12 −0 dev/junk/webservices/wsdl/testconfig.xml
  153. +9 −0 dev/junk/webservices/wsdl/testconfig_client.xml
  154. +269 −0 dev/scratch/ISTI/portfoliodb/PortfolioAssetsTable.java
  155. +347 −0 dev/scratch/ISTI/portfoliodb/PortfolioColumns.java
  156. +234 −0 dev/scratch/ISTI/portfoliodb/PortfolioDatabase.java
  157. +45 −0 dev/scratch/ISTI/portfoliodb/gui/PortfolioDbConnectionInfoDialog.java
  158. +486 −0 dev/scratch/ISTI/portfoliodb/gui/PortfolioDbImportTool.java
  159. +731 −0 dev/scratch/bbradley/McVerryetal_2000_AttenRelv1.java
  160. +23,516 −0 dev/scratch/bbradley/NZ_BKmodeldraft.txt
  161. +4,024 −0 dev/scratch/bbradley/NZ_FLTmodeldraft.txt
  162. +324 −0 dev/scratch/bbradley/NewZealandERFv1.java
  163. +47 −0 dev/scratch/bbradley/Test_McVerryetal_2000_AttenRel.java
  164. +22 −0 dev/scratch/bbradley/Test_NewZealandERFv1.java
  165. +43 −0 dev/scratch/christine/CGVersions_20100111.txt
  166. +471 −0 dev/scratch/christine/URS/URS_MeanUCERF2.java
  167. +719 −0 dev/scratch/christine/attenRelImpl/BC_2004b_AttenRel.java
  168. +867 −0 dev/scratch/christine/attenRelImpl/BS_2003b_AttenRel.java
Sorry, we could not display the entire diff because too many files (3,259) changed.
View
60 .classpath
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry excluding="**/_nobuild/*" kind="src" path="dev"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="test"/>
+ <classpathentry exported="true" kind="lib" path="lib/xsdlib.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/xmlParserAPIs.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/xml-apis.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/xercesSamples.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/xercesImpl.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/sdoapi.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/saaj-impl.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/saaj-api.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/relaxngDatatype.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/poi-2.5.1-final-20040804.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/namespace.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/mail.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/log4j-1.2.4.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jta-spec1_0_1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jpedal.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jh.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jaxrpc-impl.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jaxrpc-api.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jax-qname.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jaas.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/itext-1.3.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/dom4j.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/commons-logging.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/commons-collections.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/commons-beanutils.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/activation.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry exported="true" kind="lib" path="lib/scec_vdo.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/f2jutil.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jfreechart-1.0.2.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jcommon-1.0.5.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/servlet.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/nnls.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/Jama-1.0.2.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/mysql-connector-java-3.1.6-bin.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/DBConnection.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/USGSUtils.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/BrowserLauncher2-1_3.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/commons-cli-1.2.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/commons-lang-2.4.jar">
+ <attributes>
+ <attribute name="javadoc_location" value="http://commons.apache.org/lang/api-release/"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry exported="true" kind="lib" path="lib/isti.util.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/junit-4.5.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/ncCore-4.0.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jstl.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/standard.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/commons-io-1.4.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/commons-math-2.1.jar"/>
+ <classpathentry kind="lib" path="lib/ojdbc5.jar"/>
+ <classpathentry kind="lib" path="lib/commons-codec-1.4.jar"/>
+ <classpathentry kind="output" path="classes/"/>
+</classpath>
View
6 .gitignore
@@ -0,0 +1,6 @@
+*.DS_Store
+build
+build/**/*
+build-stamp
+dist/**/*
+
View
23 .project
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>OpenSHA</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>net.genady.rmi.RMIBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>net.genady.rmi.RMINature</nature>
+ </natures>
+</projectDescription>
View
6 .settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,6 @@
+#Tue Jul 14 17:21:44 PDT 2009
+eclipse.preferences.version=1
+encoding/.classpath=UTF-8
+encoding/.project=UTF-8
+encoding/<project>=UTF-8
+instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true
View
10 EclipseNotes.txt
@@ -0,0 +1,10 @@
+ To increase memory, here are the steps:
+
+ 1. Click on "HazardCurveLocalModeApplication" and select "Run As"
+ and then "Run.....". A window will pop up.
+
+ 2.  Select "Arguments" tab from this window.
+
+ 3.  In the "VM arguments", please right "-Xmx500M".
+
+ 4. Then hit the "Run" button.
View
32 LICENSE.txt
@@ -0,0 +1,32 @@
+LICENSE
+
+Copyright ©2010 OpenSHA.org and the University of Southern California (USC). This copyright applies to the OpenSHA codebase as a whole, or any individual distributed application. The individual contributions of government employees, which may be identified on a per-file basis using Subversion (SVN) (see developer site), are in the public domain.
+
+The software and content provided on this website are made available under the terms of the Apache License, Version 2.0. A copy of the License is available 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.
+
+DISCLAIMER
+
+THIS SOFTWARE AVAILABLE ON THE SITE OPENSHA.ORG 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 OPENSHA.ORG, THE UNIVERSITY OF SOUTHERN CALIFORNIA (USC), OR ANY OF THEIR 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.
+
+Without limiting the foregoing, OpenSHA.org and USC make no warranty that:
+
+ 1. the software will meet your requirements.
+ 2. the software will be uninterrupted, timely, secure or error-free.
+ 3. the results that may be obtained from the use of the software will be effective, accurate or reliable.
+ 4. the quality of the software will meet your expectations.
+ 5. any errors in the software obtained from the OpenSHA.org web site will be corrected.
+
+Software and its documentation made available on the OpenSHA.org web site:
+
+ 6. could include technical or other mistakes, inaccuracies or typographical errors. OpenSHA contributors may make changes to the software or documentation made available on its web site.
+ 7. may be out of date and OpenSHA.org, its contributors, and USC make no commitment to update such materials.
+
+OpenSHA.org, its contirbutors, and USC assume no responsibility for errors or ommissions in the software or documentation available from the OpenSHA.org web site.
+
+In no event shall OpenSHA.org, it's contributors, or USC be liable to you or any third parties for any special, punitive, incidental, indirect or consequential damages of any kind, or any damages whatsoever, including, without limitation, those resulting from loss of use, data or profits, whether or not OpenSHA.org, its controibutors, or USC has been advised of the possibility of such damages, and on any theory of liability, arising out of or in connection with the use of this software.
+
+The use of the software downloaded through the OpenSHA.org site is done at your own discretion and risk and with agreement that you will be solely responsible for any damage to your computer system or loss of data that results from such activities. No advice or information, whether oral or written, obtained by you from OpenSHA.org, its its website, its contributors, or USC shall create any warranty for the software.
View
2  README
@@ -1 +1 @@
-See http://www.opensha.org for documentation.
+third party vendor files can go in here
View
168 ant/AppBuilder.xml
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Copyright 2009 OpenSHA.org in partnership with
+ the Southern California Earthquake Center (SCEC, http://www.scec.org)
+ at the University of Southern California and the UnitedStates Geological
+ Survey (USGS; http://www.usgs.gov)
+
+ 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.
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
+<!-- $Id: HazardCurveLocal.xml 6862 2010-07-27 23:02:54Z kmilner $ -->
+
+<project basedir="." default="build.app" name="AppBuilder">
+ <description>
+ Builds an OpenSHA application as a launchable jar...must be called by another build file with the following
+ properties set: app.short.name, app.main.class, javac.includes, javac.excludes, resource.target,
+ and optionally: rmi.target
+ </description>
+
+ <import file="include/utils.xml"/>
+
+ <!-- global properties -->
+ <property name="build" value="../build" />
+ <property name="dist" value="../dist" />
+ <property name="src" value="../src" />
+ <property name="dev" value="../dev" />
+ <property name="lib.dir" value="../lib" />
+ <property name="unjar.target" value="unjar.libs.common" />
+
+ <path id="library.classpath">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
+
+ <!-- =================================
+ target: build.app
+ ================================= -->
+ <target name="build.app" depends="init, compile, copy, pack" />
+
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: pack
+
+ Creates manifest and jar; cleans up build dir.
+ - - - - - - - - - - - - - - - - - -->
+ <target name="pack">
+ <!-- build manifest -->
+ <!-- set version number -->
+ <runtarget target="set.app.version" />
+ <property name="app.jar.name" value="${app.short.name}-${app.version}.jar" />
+ <property name="app.jar" value="${dist}/${app.jar.name}" />
+ <jar destfile="${app.jar}"
+ basedir="${build}">
+ <manifest>
+ <attribute name="Main-Class"
+ value="${app.main.class}" />
+ <attribute name="Version" value="1.0"/>
+ <attribute name="Built-By" value="${user.name}" />
+ </manifest>
+ <include name="at/**" />
+ <include name="com/**" />
+ <include name="edu/**" />
+ <include name="net/**" />
+ <include name="org/**" />
+ <include name="javax/**" />
+ <include name="scratch/**" />
+ <include name="resources/**" />
+ <include name="oracle/**" />
+ <include name="build.version" />
+ <include name="LICENSE.txt" />
+ </jar>
+ <antcall target="clean.build.dir" />
+ <ant antfile="build.xml" target="sign.jar"/>
+ <ant antfile="build.xml" target="copy.server.jar"/>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: compile
+ - - - - - - - - - - - - - - - - - -->
+ <target name="compile">
+ <antcall target="compile.java" />
+ <antcall target="compile.rmi" />
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: compile.java
+ - - - - - - - - - - - - - - - - - -->
+ <target name="compile.java">
+ <javac debug="true"
+ debuglevel="lines,source"
+ destdir="${build}"
+ fork="yes"
+ includes="${javac.includes}"
+ excludes="${javac.excludes}">
+ <classpath>
+ <pathelement location="${build}"/>
+ <path refid="library.classpath" />
+ </classpath>
+ <src path="${src}" />
+ <src path="${dev}" />
+ </javac>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: compile.rmi
+ - - - - - - - - - - - - - - - - - -->
+ <target name="compile.rmi" if="rmi.target">
+ <ant antfile="build.xml" target="${rmi.target}"/>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: copy
+
+ Copies resources and unpacks required libs.
+ - - - - - - - - - - - - - - - - - -->
+ <target name="copy">
+ <antcall target="unjar.libs" />
+ <antcall target="copy.resources" />
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: copy.resources
+ - - - - - - - - - - - - - - - - - -->
+ <target name="copy.resources" if="resource.target">
+ <ant antfile="build.xml" target="${resource.target}"/>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: unjar.libs
+
+ Unpack necessary libs for inclusion in app.
+ - - - - - - - - - - - - - - - - - -->
+ <target name="unjar.libs" if="unjar.target">
+ <ant antfile="build.xml" target="${unjar.target}"/>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: init
+ - - - - - - - - - - - - - - - - - -->
+ <target name="init">
+ <mkdir dir="${dist}" />
+ <mkdir dir="${build}" />
+ <!-- clean build dir if it wasn't cleaned-->
+ <antcall target="clean.build.dir" />
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: clean.build.dir
+ - - - - - - - - - - - - - - - - - -->
+ <target name="clean.build.dir">
+ <delete includeemptydirs="true">
+ <fileset dir="${build}" includes="**/*"/>
+ </delete>
+ </target>
+
+</project>
View
47 ant/CompleteJar.xml
@@ -0,0 +1,47 @@
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Copyright 2009 OpenSHA.org in partnership with
+ the Southern California Earthquake Center (SCEC, http://www.scec.org)
+ at the University of Southern California and the UnitedStates Geological
+ Survey (USGS; http://www.usgs.gov)
+
+ 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 basedir="." default="jar.full.dist" name="Compile">
+
+ <property name="build" value="../build" />
+ <property name="tmpdest" value="${build}" />
+ <property name="dist" value="../dist" />
+ <property name="src" value="../src/" />
+ <property name="dev" value="../dev/" />
+ <property name="lib.dir" value="../lib" />
+
+ <target name="pre.jar" depends="">
+ <ant antfile="build.xml" target="pre.jar"/>
+ </target>
+
+ <target name="jar.classes.only" depends="pre.jar">
+ <jar destfile="${dist}/OpenSHA_classes_only.jar" basedir="${build}" />
+ <delete dir="${tmpdest}" failonerror="yes" verbose="no" />
+ </target>
+
+ <target name="jar.full.dist" depends="pre.jar">
+ <ant antfile="build.xml" target="unjar.libs.common"/>
+ <ant antfile="build.xml" target="resource.all"/>
+ <delete dir="${tmpdest}/META-INF" failonerror="yes" verbose="no" />
+ <jar destfile="${dist}/OpenSHA_complete.jar" basedir="${build}" />
+ <!-- <delete dir="${tmpdest}" failonerror="yes" verbose="no" /> -->
+ </target>
+
+</project>
View
206 ant/MultiAppBuilder.xml
@@ -0,0 +1,206 @@
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Copyright 2009 OpenSHA.org in partnership with
+ the Southern California Earthquake Center (SCEC, http://www.scec.org)
+ at the University of Southern California and the UnitedStates Geological
+ Survey (USGS; http://www.usgs.gov)
+
+ 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 basedir="." default="build.all" name="MultiAppBuilder">
+
+ <!-- <property name="app.build.type" value="dist" /> -->
+ <!-- <property name="sign.jars" value="true" /> -->
+ <property name="app.build.file" value="AppBuilder.xml" />
+
+ <property name="sha.gui.package" value="org.opensha.sha.gui" />
+ <property name="sha.gui.dir" value="org/opensha/sha/gui" />
+
+ <target name="build.nightly">
+ <ant antfile="build.xml" target="update.jnlps"/>
+ <property name="server.apps.dir" value="/var/www/html/apps/opensha" />
+ <property name="app.build.type" value="nightly" />
+ <property name="sign.jars" value="true" />
+ <antcall target="build.all"/>
+ </target>
+
+ <target name="build.wgcep.dist">
+ <ant antfile="build.xml" target="update.wgcep.jnlps"/>
+ <property name="server.apps.dir" value="/var/www/html/apps/opensha" />
+ <property name="app.build.type" value="nightly" />
+ <property name="sign.jars" value="true" />
+ <antcall target="build.wgcep"/>
+ </target>
+
+ <target name="build.dist">
+ <ant antfile="build.xml" target="update.jnlps"/>
+ <property name="server.apps.dir" value="/var/www/html/apps/opensha" />
+ <property name="app.build.type" value="dist" />
+ <property name="sign.jars" value="true" />
+ <antcall target="build.all"/>
+ </target>
+
+ <target name="build.all">
+ <antcall target="build.local" />
+ <antcall target="build.server" />
+ </target>
+
+ <target name="build.local">
+ <antcall target="build.hc.local" />
+ <antcall target="build.hs.local" />
+ <antcall target="build.sm.local" />
+ <antcall target="build.atten.rel" />
+ <antcall target="build.gmt" />
+ <antcall target="build.mfd" />
+ </target>
+
+ <target name="build.server">
+ <antcall target="build.hc.server" />
+ <antcall target="build.hs.server" />
+ <antcall target="build.sm.server" />
+ </target>
+
+ <target name="build.wgcep">
+ <antcall target="build.faults" />
+ <antcall target="build.paleo.sites" />
+ </target>
+
+ <target name="build.hc.local">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="HazardCurveLocal" />
+ <property name="app.main.class" value="${sha.gui.package}.HazardCurveLocalModeApplication" />
+ <property name="javac.includes" value="${sha.gui.dir}/HazardCurveLocalModeApplication.java" />
+ <property name="javac.excludes" value="" />
+ <property name="rmi.target" value="rmi.hazard.curve" />
+ <property name="resource.target" value="resource.hazard.apps" />
+ </ant>
+ </target>
+
+ <target name="build.hc.server">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="HazardCurveServer" />
+ <property name="app.main.class" value="${sha.gui.package}.HazardCurveServerModeApplication" />
+ <property name="javac.includes" value="${sha.gui.dir}/HazardCurveServerModeApplication.java" />
+ <property name="javac.excludes" value="" />
+ <property name="rmi.target" value="rmi.hazard.curve" />
+ <property name="resource.target" value="resource.hazard.apps.server" />
+ </ant>
+ </target>
+
+ <target name="build.rmi.test">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="RMITest" />
+ <property name="app.main.class" value="org.opensha.sha.earthquake.rupForecastImpl.remote.RMIDebug" />
+ <property name="javac.includes" value="org/opensha/sha/earthquake/rupForecastImpl/remote/RMIDebug.java" />
+ <property name="javac.excludes" value="" />
+ <property name="rmi.target" value="rmi.hazard.curve" />
+ <property name="resource.target" value="resource.hazard.apps.server" />
+ </ant>
+ </target>
+
+ <target name="build.hs.local">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="HazardSpectrumLocal" />
+ <property name="app.main.class" value="${sha.gui.package}.HazardSpectrumLocalModeApplication" />
+ <property name="javac.includes" value="${sha.gui.dir}/HazardSpectrumLocalModeApplication.java" />
+ <property name="javac.excludes" value="" />
+ <property name="rmi.target" value="rmi.hazard.spectrum" />
+ <property name="resource.target" value="resource.hazard.apps" />
+ </ant>
+ </target>
+
+ <target name="build.hs.server">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="HazardSpectrumServer" />
+ <property name="app.main.class" value="${sha.gui.package}.HazardSpectrumServerModeApplication" />
+ <property name="javac.includes" value="${sha.gui.dir}/HazardSpectrumServerModeApplication.java" />
+ <property name="javac.excludes" value="" />
+ <property name="rmi.target" value="rmi.hazard.spectrum" />
+ <property name="resource.target" value="resource.hazard.apps.server" />
+ </ant>
+ </target>
+
+ <target name="build.sm.local">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="ScenarioShakeMapLocal" />
+ <property name="app.main.class" value="${sha.gui.package}.ScenarioShakeMapLocalModeCalcApp" />
+ <property name="javac.includes" value="${sha.gui.dir}/ScenarioShakeMapLocalModeCalcApp.java" />
+ <property name="javac.excludes" value="" />
+ <property name="rmi.target" value="rmi.hazard.curve" />
+ <property name="resource.target" value="resource.hazard.apps" />
+ </ant>
+ </target>
+
+ <target name="build.sm.server">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="ScenarioShakeMapServer" />
+ <property name="app.main.class" value="${sha.gui.package}.ScenarioShakeMapApp" />
+ <property name="javac.includes" value="${sha.gui.dir}/ScenarioShakeMapApp.java" />
+ <property name="javac.excludes" value="" />
+ <property name="rmi.target" value="rmi.hazard.curve" />
+ <property name="resource.target" value="resource.hazard.apps.server" />
+ </ant>
+ </target>
+
+ <target name="build.gmt">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="GMTMap" />
+ <property name="app.main.class" value="org.opensha.commons.mapping.gmt.gui.GMT_MapGeneratorApplet" />
+ <property name="javac.includes" value="org/opensha/commons/mapping/gmt/gui/GMT_MapGeneratorApplet.java" />
+ <property name="javac.excludes" value="" />
+ <property name="resource.target" value="resource.misc.required" />
+ </ant>
+ </target>
+
+ <target name="build.mfd">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="MagFreqDist" />
+ <property name="app.main.class" value="org.opensha.sha.magdist.gui.MagFreqDistApp" />
+ <property name="javac.includes" value="org/opensha/sha/magdist/gui/MagFreqDistApp.java" />
+ <property name="javac.excludes" value="" />
+ <property name="resource.target" value="resource.misc.required" />
+ </ant>
+ </target>
+
+ <target name="build.atten.rel">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="AttenuationRelationship" />
+ <property name="app.main.class" value="org.opensha.sha.imr.attenRelImpl.gui.AttenuationRelationshipApplet" />
+ <property name="javac.includes" value="org/opensha/sha/imr/attenRelImpl/gui/AttenuationRelationshipApplet.java" />
+ <property name="javac.excludes" value="" />
+ <property name="resource.target" value="resource.hazard.apps.server" />
+ </ant>
+ </target>
+
+ <target name="build.faults">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="FaultSections" />
+ <property name="app.main.class" value="org.opensha.refFaultParamDb.gui.FaultSectionsAndModelsApp" />
+ <property name="javac.includes" value="org/opensha/refFaultParamDb/**/*.java" />
+ <property name="javac.excludes" value="" />
+ <property name="resource.target" value="resource.misc.required" />
+ </ant>
+ </target>
+
+ <target name="build.paleo.sites">
+ <ant antfile="${app.build.file}" target="build.app">
+ <property name="app.short.name" value="PaleoSites" />
+ <property name="app.main.class" value="org.opensha.refFaultParamDb.gui.PaleoSiteApp2" />
+ <property name="javac.includes" value="org/opensha/refFaultParamDb/**/*.java" />
+ <property name="javac.excludes" value="" />
+ <property name="resource.target" value="resource.misc.required" />
+ </ant>
+ </target>
+
+</project>
View
318 ant/NSHMP_GroundMotionParameterTool.xml
@@ -0,0 +1,318 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Copyright 2009 OpenSHA.org in partnership with
+ the Southern California Earthquake Center (SCEC, http://www.scec.org)
+ at the University of Southern California and the UnitedStates Geological
+ Survey (USGS; http://www.usgs.gov)
+
+ 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 basedir="." default="build.app" name="NSHMP_GroundMotionParameterTool">
+ <description>
+ Builds the NSHMP Ground Motion Parameter Tool. There are two resulting
+ jar files from this build process, a client (for distribution) and a
+ server (for installation).
+ </description>
+
+ <!-- global properties -->
+ <property name="build" value="../build" />
+ <property name="dist" value="../dist" />
+ <property name="src" value="../src" />
+ <property name="dev" value="../dev" />
+ <property name="lib" value="../lib" />
+
+ <property name="client.jar" value="NSHMP_HazardApp"/>
+ <property name="server.jar" value="NSHMP_GroundMotionServer"/>
+
+ <!-- CLIENT References -->
+
+ <patternset id="client.classes">
+ <include name="org/opensha/commons/**/*"/>
+ <include name="org/opensha/nshmp/**/*"/>
+
+ <exclude name="org/opensha/commons/calc/**/*"/>
+ <exclude name="org/opensha/refFaultParamDb/**/*"/>
+ <exclude name="org/opensha/sha/**/*"/>
+ <exclude name="**/*Test*"/>
+ </patternset>
+
+ <fileset dir="${lib}" id="client.libraries">
+ <include name="BrowserLauncher2-1_3.jar"/>
+ <include name="Jama-1.0.2.jar"/>
+ <include name="commons-codec-1.3.jar"/>
+ <include name="commons-math-1.1.jar"/>
+ <include name="dom4j.jar"/>
+ <include name="itext-1.3.jar"/>
+ <include name="jcommon-1.0.5.jar"/>
+ <include name="jfreechart-1.0.2.jar"/>
+ <include name="poi-2.5.1-final-20040804.jar"/>
+ </fileset>
+
+ <patternset id="client.resources">
+ <include name="resources/images/icons/closeFile.png"/>
+ <include name="resources/images/icons/error_icon.png"/>
+ <include name="resources/images/icons/info_icon.jpg"/>
+ <include name="resources/images/icons/openFile.png"/>
+ <include name="resources/images/icons/printFile.jpg"/>
+ <include name="resources/images/icons/saveFile.jpg"/>
+ <include name="resources/images/logos/AgoraOpenRisk.jpg"/>
+ <include name="resources/images/logos/PoweredByOpenSHA_Agua.jpg"/>
+ <include name="resources/images/logos/usgs_logoonly.gif"/>
+ <include name="resources/images/logos/usgs_resrisk.gif"/>
+ <include name="resources/images/logos/usgslogo.gif"/>
+ </patternset>
+
+ <path id="client.classpath">
+ <fileset refid="client.libraries" />
+ <fileset dir="${lib}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+
+ <!-- SERVER References -->
+
+ <patternset id="server.classes">
+ <include name="org/opensha/commons/geo/LocationUtils*"/>
+ <include name="org/opensha/commons/data/ArbDiscretizedXYZ_DataSet*"/>
+ <include name="org/opensha/commons/data/Container2D*"/>
+ <include name="org/opensha/commons/data/Container2D$AllByColumnsIterator*"/>
+ <include name="org/opensha/commons/data/Container2D$AllByRowsIterator*"/>
+ <include name="org/opensha/commons/data/Container2DAPI*"/>
+ <include name="org/opensha/commons/data/Container2D$ColumnIterator*"/>
+ <include name="org/opensha/commons/data/Container2D$Container2DListIterator*"/>
+ <include name="org/opensha/commons/data/Container2D$RowIterator*"/>
+ <include name="org/opensha/commons/data/ContainerSubset2D*"/>
+ <include name="org/opensha/commons/data/ContainerSubset2D$AllByColumnsIterator*"/>
+ <include name="org/opensha/commons/data/ContainerSubset2D$AllByRowsIterator*"/>
+ <include name="org/opensha/commons/data/ContainerSubset2D$ColumnIterator*"/>
+ <include name="org/opensha/commons/data/ContainerSubset2D$Container2DListIterator*"/>
+ <include name="org/opensha/commons/data/ContainerSubset2D$RowIterator*"/>
+ <include name="org/opensha/commons/data/DataPoint2D*"/>
+ <include name="org/opensha/commons/data/DataPoint2DComparatorAPI*"/>
+ <include name="org/opensha/commons/data/DataPoint2DToleranceComparator*"/>
+ <include name="org/opensha/commons/data/DataPoint2DTreeMap*"/>
+ <include name="org/opensha/commons/data/Direction*"/>
+ <include name="org/opensha/commons/data/EmpiricalDistributionTreeMap*"/>
+ <include name="org/opensha/commons/data/function/ArbDiscrEmpiricalDistFunc*"/>
+ <include name="org/opensha/commons/data/function/ArbitrarilyDiscretizedFunc*"/>
+ <include name="org/opensha/commons/data/function/DiscretizedFunc*"/>
+ <include name="org/opensha/commons/data/function/DiscretizedFuncAPI*"/>
+ <include name="org/opensha/commons/data/function/DiscretizedFuncList*"/>
+ <include name="org/opensha/commons/data/function/EvenlyDiscretizedFunc*"/>
+ <include name="org/opensha/commons/data/function/WeightedFuncList*"/>
+ <include name="org/opensha/commons/data/Location*"/>
+ <include name="org/opensha/commons/data/LocationComparator*"/>
+ <include name="org/opensha/commons/data/Location$ImmutableLocation*"/>
+ <include name="org/opensha/commons/data/LocationList*"/>
+ <include name="org/opensha/commons/data/NamedObjectAPI*"/>
+ <include name="org/opensha/commons/data/Site*"/>
+ <include name="org/opensha/commons/data/TimeSpan*"/>
+ <include name="org/opensha/commons/data/TreeMap*"/>
+ <include name="org/opensha/commons/data/TreeMap$1*"/>
+ <include name="org/opensha/commons/data/TreeMap$2*"/>
+ <include name="org/opensha/commons/data/TreeMap$3*"/>
+ <include name="org/opensha/commons/data/TreeMap$Entry*"/>
+ <include name="org/opensha/commons/data/TreeMap$Iterator*"/>
+ <include name="org/opensha/commons/data/TreeMap$SubMap*"/>
+ <include name="org/opensha/commons/data/TreeMap$SubMap$EntrySetView*"/>
+ <include name="org/opensha/commons/data/Window2D*"/>
+ <include name="org/opensha/commons/data/XYZ_DataSetAPI*"/>
+ <include name="org/opensha/commons/exceptions/ConstraintException*"/>
+ <include name="org/opensha/commons/exceptions/DataPoint2DException*"/>
+ <include name="org/opensha/commons/exceptions/DiscretizedFuncException*"/>
+ <include name="org/opensha/commons/exceptions/EditableException*"/>
+ <include name="org/opensha/commons/exceptions/FaultException*"/>
+ <include name="org/opensha/commons/exceptions/GMT_MapException*"/>
+ <include name="org/opensha/commons/exceptions/IMRException*"/>
+ <include name="org/opensha/commons/exceptions/InvalidArrayShapeException*"/>
+ <include name="org/opensha/commons/exceptions/InvalidRangeException*"/>
+ <include name="org/opensha/commons/exceptions/LocationException*"/>
+ <include name="org/opensha/commons/exceptions/MagFreqDistException*"/>
+ <include name="org/opensha/commons/exceptions/NotResizableException*"/>
+ <include name="org/opensha/commons/exceptions/ParameterException*"/>
+ <include name="org/opensha/commons/exceptions/RegionConstraintException*"/>
+ <include name="org/opensha/commons/exceptions/TranslateException*"/>
+ <include name="org/opensha/commons/exceptions/WarningException*"/>
+ <include name="org/opensha/commons/metadata/XMLSaveable*"/>
+ <include name="org/opensha/commons/util/ByteSwapUtil*"/>
+ <include name="org/opensha/commons/util/ImageUtils*"/>
+ <include name="org/opensha/nshmp/exceptions/AnalysisOptionNotSupportedException*"/>
+ <include name="org/opensha/nshmp/exceptions/InterpolationException*"/>
+ <include name="org/opensha/nshmp/exceptions/LocationErrorException*"/>
+ <include name="org/opensha/nshmp/exceptions/RegionNotSupportedException*"/>
+ <include name="org/opensha/nshmp/exceptions/ZipCodeErrorException*"/>
+ <include name="org/opensha/nshmp/sha/calc/api/HazardDataCalcAPI*"/>
+ <include name="org/opensha/nshmp/sha/calc/HazardCurveCalculator*"/>
+ <include name="org/opensha/nshmp/sha/calc/HazardDataCalc*"/>
+ <include name="org/opensha/nshmp/sha/calc/SDSsS1Calculator*"/>
+ <include name="org/opensha/nshmp/sha/calc/servlet/HazardDataCalcServlet*"/>
+ <include name="org/opensha/nshmp/sha/calc/servlet/HazardDataCalcServletHelper*"/>
+ <include name="org/opensha/nshmp/sha/calc/SingleValueHazardCurveCalculator*"/>
+ <include name="org/opensha/nshmp/sha/calc/SMSsS1Calculator*"/>
+ <include name="org/opensha/nshmp/sha/calc/SpectrumCalculator*"/>
+ <include name="org/opensha/nshmp/sha/calc/SsS1Calculator*"/>
+ <include name="org/opensha/nshmp/sha/calc/StdDisplacementCalc*"/>
+ <include name="org/opensha/nshmp/sha/calc/UHS_SACalculator*"/>
+ <include name="org/opensha/nshmp/sha/calc/UHS_SpectrumCalculator*"/>
+ <include name="org/opensha/nshmp/sha/data/calc/FaFvCalc*"/>
+ <include name="org/opensha/nshmp/sha/data/DataGenerator_FEMA*"/>
+ <include name="org/opensha/nshmp/sha/data/DataGenerator_HazardCurves*"/>
+ <include name="org/opensha/nshmp/sha/data/DataGenerator_IRC*"/>
+ <include name="org/opensha/nshmp/sha/data/DataGenerator_NEHRP*"/>
+ <include name="org/opensha/nshmp/sha/data/DataGenerator_UHS*"/>
+ <include name="org/opensha/nshmp/sha/data/HazardDataMiner*"/>
+ <include name="org/opensha/nshmp/sha/data/HazardDataMinerAPI*"/>
+ <include name="org/opensha/nshmp/sha/data/HazardDataMinerServletMode*"/>
+ <include name="org/opensha/nshmp/sha/data/region/RegionBounds*"/>
+ <include name="org/opensha/nshmp/sha/data/SiteInterpolation*"/>
+ <include name="org/opensha/nshmp/sha/io/DataFileNameSelector*"/>
+ <include name="org/opensha/nshmp/sha/io/DataFileNameSelectorForFEMA*"/>
+ <include name="org/opensha/nshmp/sha/io/DataFileNameSelectorForHazardCurves*"/>
+ <include name="org/opensha/nshmp/sha/io/DataFileNameSelectorForUHS*"/>
+ <include name="org/opensha/nshmp/sha/io/DataRecord*"/>
+ <include name="org/opensha/nshmp/sha/io/HazardCurves_Record*"/>
+ <include name="org/opensha/nshmp/sha/io/NEHRP_Record*"/>
+ <include name="org/opensha/nshmp/sha/io/UHS_Record*"/>
+ <include name="org/opensha/nshmp/util/AppConfigurer*"/>
+ <include name="org/opensha/nshmp/util/BatchProgress*"/>
+ <include name="org/opensha/nshmp/util/FileViewer*"/>
+ <include name="org/opensha/nshmp/util/GlobalConstants*"/>
+ <include name="org/opensha/nshmp/util/Interpolation*"/>
+ <include name="org/opensha/nshmp/util/LocationUtil*"/>
+ <include name="org/opensha/nshmp/util/MapUtil*"/>
+ <include name="org/opensha/nshmp/util/RegionUtil*"/>
+ <include name="org/opensha/nshmp/util/ui/DataDisplayFormatter*"/>
+ <include name="org/opensha/nshmp/util/Versioner*"/>
+ <include name="org/opensha/nshmp/util/ZipCodeToLatLonConvertor*"/>
+ </patternset>
+
+ <fileset dir="${lib}" id="server.libraries">
+ <include name="commons-math-1.1.jar"/>
+ <include name="DBConnection.jar"/>
+ <include name="dom4j.jar"/>
+ <include name="jstl.jar"/>
+ <include name="ojdbc14.jar"/>
+ <include name="standard.jar"/>
+ <include name="USGSUtils.jar"/>
+ </fileset>
+
+ <patternset id="server.resources">
+ <include name="resources/images/logos/usgslogo.gif"/>
+ <include name="resources/images/logos/usgs_logoonly.gif"/>
+ </patternset>
+
+ <path id="server.classpath">
+ <fileset refid="server.libraries" />
+ <fileset dir="${lib}">
+ <include name="poi-2.5.1-final-20040804.jar"/>
+ <include name="commons-codec-1.3.jar"/>
+ <include name="servlet.jar"/>
+ </fileset>
+ </path>
+
+ <!-- TARGETS -->
+
+ <target name="init">
+ <mkdir dir="${build}" />
+ <mkdir dir="${dist}" />
+ <antcall target="clean.build" />
+ </target>
+
+ <target name="clean">
+ <delete dir="${dist}" />
+ <delete dir="${build}" />
+ </target>
+
+ <target name="clean.build">
+ <delete includeemptydirs="true">
+ <fileset dir="${build}" includes="**/*"/>
+ </delete>
+ </target>
+
+ <target name="build.app" depends="build.client, build.server">
+ <copy todir="${user.home}">
+ <fileset dir="${dist}">
+ <include name="${server.jar}.jar"/>
+ <include name="${client.jar}.jar"/>
+ </fileset>
+ </copy>
+ <echo message="Jar files sent to ${user.home}"/>
+ <antcall target="clean"/>
+ </target>
+
+ <target name="build.client" depends="compile.client">
+ <!-- Copy resource files (image etc) into build directory. -->
+ <copy todir="${build}">
+ <fileset dir="${src}">
+ <patternset refid="client.resources"/>
+ </fileset>
+ </copy>
+
+ <!-- Create a jar file with everything in the build directory. -->
+ <jar jarfile="${dist}/${client.jar}.jar"
+ basedir="${build}" excludes="**/*Test*">
+ <manifest>
+ <attribute name="Main-Class" value="org.opensha.nshmp.sha.gui.ProbabilisticHazardGui"/>
+ <attribute name="Built-By" value="${user.name}" />
+ </manifest>
+
+ <!-- Extract library jar files -->
+ <zipgroupfileset refid="client.libraries" />
+ </jar>
+ </target>
+
+ <target name="build.server" depends="compile.server">
+ <!-- Copy resource files (image etc) into build directory. -->
+ <copy todir="${build}">
+ <fileset dir="${src}">
+ <patternset refid="server.resources"/>
+ </fileset>
+ </copy>
+
+ <!-- Create a jar file with everything in the build directory. -->
+ <jar jarfile="${dist}/${server.jar}.jar"
+ basedir="${build}" excludes="**/*Test*">
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+ </manifest>
+
+ <!-- Extract library jar files -->
+ <zipgroupfileset refid="server.libraries" />
+ </jar>
+ </target>
+
+ <target name="compile.client" depends="init">
+ <!-- Clean the build directory fist. -->
+ <antcall target="clean.build"/>
+
+ <!-- Compile the required classes into the build path. -->
+ <javac srcdir="${src}" destdir="${build}" source="1.5" target="1.5" includeAntRuntime="no">
+ <patternset refid="client.classes" />
+ <classpath refid="client.classpath"/>
+ </javac>
+ </target>
+
+ <target name="compile.server" depends="init">
+ <!-- Clean the build directory first. -->
+ <antcall target="clean.build"/>
+
+ <!-- Compile the required classes into the build path. -->
+ <javac srcdir="${src}" destdir="${build}" source="1.5" target="1.5" includeAntRuntime="no">
+ <patternset refid="server.classes" />
+ <classpath refid="server.classpath"/>
+ </javac>
+ </target>
+
+</project>
View
28 ant/PortfolioEALCalculator.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="Portfolio EAL Calculator" default="jar" basedir="..">
+
+ <fileset dir="${basedir}" id="libraries">
+ <include name="lib/commons-math-1.1.jar"/>
+ <include name="lib/dom4j.jar"/>
+ <include name="lib/poi-2.5.1-final-20040804.jar"/>
+ <include name="dev/scratch/ISTI/isti.util.jar"/>
+ </fileset>
+
+ <target name="clean">
+ <delete file="${user.home}/Desktop/PortEalCalc.jar"/>
+ </target>
+
+ <target name="jar" depends="clean">
+ <jar destfile="${user.home}/Desktop/PortEalCalc.jar" basedir="classes">
+ <include name="org/**/*"/>
+ <include name="resources/data/vulnerability_20100223_keith.txt"/>
+ <include name="resources/data/region/*"/>
+ <include name="resources/images/**/*" />
+ <zipgroupfileset refid="libraries"/>
+ <manifest>
+ <attribute name="Main-Class" value="org.opensha.sra.gui.portfolioeal.PortfolioEALCalculatorController"/>
+ <attribute name="Built-By" value="${user.name}" />
+ </manifest>
+ </jar>
+ </target>
+</project>
View
419 ant/build.xml
@@ -0,0 +1,419 @@
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Copyright 2009 OpenSHA.org in partnership with
+ the Southern California Earthquake Center (SCEC, http://www.scec.org)
+ at the University of Southern California and the UnitedStates Geological
+ Survey (USGS; http://www.usgs.gov)
+
+ 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 basedir="." default="build" name="Compile">
+
+ <property name="build" value="../classes" />
+ <property name="tmpdest" value="../classes.temp" />
+ <property name="dist" value="../dist" />
+ <property name="src" value="../src/" />
+ <property name="dev" value="../dev/" />
+ <property name="test" value="../test/" />
+ <property name="lib.dir" value="../lib" />
+ <property name="ant.lib.dir" value="lib" />
+ <property name="svnant.lib.dir" value="${ant.lib.dir}/svnant-1.3.0" />
+ <property name="ant.jnlp.war.lib.dir" value="${ant.lib.dir}/ant-jnlp-war" />
+ <property name="javadoc.dir" value="../javadocs/" />
+ <property name="keystore.alias" value="opensha" />
+ <property name="keystore.pass" value="opensha" />
+ <property name="project.jnlp.dir" value="jnlp" />
+ <property name="app.build.type" value="nightly" />
+
+ <path id="library.classpath">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ <pathelement location="${dev}/scratch/ISTI/isti.util.jar" />
+ </path>
+
+ <target name="compile">
+ <javac debug="true" deprecation="false" optimize="true" destdir="${tmpdest}" nowarn="true" source="1.5" target="1.5" failonerror="yes" verbose="no" fork="yes" memoryInitialSize="512m" memoryMaximumSize="1024m">
+ <classpath>
+ <pathelement location="${build}" />
+ <path refid="library.classpath" />
+ </classpath>
+ <src path="${src}" />
+ <src path="${dev}" />
+ <src path="${test}" />
+ <include name="scratch/**" />
+ <include name="org/**" />
+ <include name="com/**" />
+ <include name="nnls/**" />
+ <exclude name="**/_nobuild/**" />
+ </javac>
+ </target>
+
+ <target name="compile.tets" depends="">
+ <javac debug="true" deprecation="false" optimize="true" destdir="${build}" nowarn="true" source="1.5" target="1.5" failonerror="yes" verbose="no" fork="yes" memoryInitialSize="512m" memoryMaximumSize="1024m">
+ <classpath>
+ <pathelement location="${build}" />
+ <path refid="library.classpath" />
+ </classpath>
+ <src path="${test}" />
+ <!--<include name="org/**" />-->
+ <exclude name="**/_nobuild/**" />
+ </javac>
+ </target>
+
+ <path id="svn.classpath">
+ <pathelement location="${svnant.lib.dir}/svnjavahl.jar" />
+ <pathelement location="${svnant.lib.dir}/svnant.jar" />
+ <pathelement location="${svnant.lib.dir}/svnClientAdapter.jar" />
+ </path>
+
+ <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" classpathref="svn.classpath" />
+
+ <target name="svn.update">
+ <svn>
+ <update revision="HEAD" dir="../" />
+ </svn>
+ </target>
+
+ <target name="init">
+ <mkdir dir="${tmpdest}" />
+ <mkdir dir="${build}" />
+ <mkdir dir="${dist}" />
+ </target>
+
+ <target name="precompilecleanup">
+ <delete dir="${tmpdest}" failonerror="yes" verbose="no" />
+ </target>
+
+ <target name="svn.build" depends="svn.update,build">
+ </target>
+
+ <target name="build" depends="precompilecleanup,init,compile,rmi.all">
+ <delete dir="${build}" failonerror="yes" verbose="no" />
+
+ <move todir="${build}">
+ <fileset dir="${tmpdest}" />
+ </move>
+
+ <delete dir="${tmpdest}" failonerror="yes" verbose="no" />
+ </target>
+
+ <target name="pre.jar" depends="precompilecleanup,init,compile,rmi.all">
+ </target>
+
+ <target name="sign.jar" if="sign.jars">
+ <echo message="signing ${app.jar}"/>
+ <signjar
+ jar="${app.jar}"
+ alias="${keystore.alias}"
+ storepass="${keystore.pass}"/>
+ </target>
+
+ <target name="update.jnlps">
+ <java
+ classname="org.opensha.sha.gui.util.JNLPGen"
+ fork="true"
+ dir="../">
+ <classpath>
+ <pathelement location="${build}" />
+ <path refid="library.classpath" />
+ </classpath>
+ </java>
+ </target>
+
+ <target name="update.wgcep.jnlps">
+ <java
+ classname="org.opensha.refFaultParamDb.gui.DBAppsJNLPGen"
+ fork="true"
+ dir="../">
+ <classpath>
+ <pathelement location="${build}" />
+ <path refid="library.classpath" />
+ </classpath>
+ </java>
+ </target>
+
+ <!-- This copies the jar from the build dist dir to the web dir -->
+ <target name="copy.server.jar" if="server.apps.dir">
+ <!-- copy all of the JNLP's and icons -->
+ <copy todir="${server.apps.dir}/${app.short.name}/${app.build.type}">
+ <fileset dir="${project.jnlp.dir}/${app.build.type}">
+ <include name="${app.short.name}.jnlp"/>
+ <include name="icons/${app.short.name}*"/>
+ </fileset>
+ </copy>
+ <!-- copy the jar file -->
+ <copy file="${app.jar}"
+ todir="${server.apps.dir}/${app.short.name}/${app.build.type}/"/>
+ <!-- delete the old link (which should point to most recent) -->
+ <delete file="${server.apps.dir}/${app.short.name}/${app.build.type}/${app.short.name}.jar"/>
+ <!-- set up a link to the new most recent build -->
+ <exec executable="/bin/ln" >
+ <arg value="-s"/>
+ <arg value="${server.apps.dir}/${app.short.name}/${app.build.type}/${app.jar.name}"/>
+ <arg value="${server.apps.dir}/${app.short.name}/${app.build.type}/${app.short.name}.jar"/>
+ </exec>
+ <!-- delete the version in the build dir -->
+ <delete file="${app.jar}"/>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ These targets are for copying resources
+ - - - - - - - - - - - - - - - - - -->
+
+ <target name="resource.erfs.main">
+ <copy todir="${build}/org/opensha/sha/earthquake/rupForecastImpl/" overwrite="true">
+ <fileset dir="${src}/org/opensha/sha/earthquake/rupForecastImpl/">
+ <include name="Frankel02/**" />
+ <exclude name="Frankel02/**/*.java" />
+ <include name="Frankel96/**" />
+ <exclude name="Frankel96/**/*.java" />
+ <include name="WG02/singleIterationWithModes.OpenSHA.30yr.txt" />
+ <include name="WGCEP_UCERF1/**" />
+ <exclude name="WGCEP_UCERF1/**/*.java" />
+ <include name="step/*.txt" />
+ <include name="YuccaMountain/*.txt" />
+ </fileset>
+ </copy>
+
+ <copy todir="${build}/org/opensha/sha/earthquake/rupForecastImpl/WGCEP_UCERF_2_Final/data" overwrite="true">
+ <fileset dir="${src}/org/opensha/sha/earthquake/rupForecastImpl/WGCEP_UCERF_2_Final/data">
+ <include name="**/*.txt" />
+ <include name="**/*.xml" />
+ <include name="**/*.xls" />
+ </fileset>
+ </copy>
+
+ <copy todir="${build}/org/opensha/sha/earthquake/rupForecastImpl/WGCEP_UCERF_2_Final/griddedSeis" overwrite="true">
+ <fileset dir="${src}/org/opensha/sha/earthquake/rupForecastImpl/WGCEP_UCERF_2_Final/griddedSeis">
+ <include name="**/*.txt" />
+ <include name="**/*.asc" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="resource.erfs.dev">
+ <!-- This is for ERFs that we won't include in our regular apps because they are under
+ development -->
+ <copy todir="${build}/scratch/bbradley" overwrite="true">
+ <fileset dir="${dev}/scratch/bbradley">
+ <include name="**/*.txt" />
+ </fileset>
+ </copy>
+
+ <copy todir="${build}/org/opensha/sha/earthquake/rupForecastImpl/GEM" overwrite="true">
+ <fileset dir="${src}/org/opensha/sha/earthquake/rupForecastImpl/GEM">
+ <include name="**/*.txt" />
+ </fileset>
+ </copy>
+
+ <copy todir="${build}/org/opensha/sha/earthquake/rupForecastImpl/NewZealand" overwrite="true">
+ <fileset dir="${src}/org/opensha/sha/earthquake/rupForecastImpl/NewZealand">
+ <include name="**/*.txt" />
+ </fileset>
+ </copy>
+ <copy todir="${build}/scratch/ned/slab/slab1_usgs_data" overwrite="true">
+ <fileset dir="${dev}/scratch/ned/slab/slab1_usgs_data">
+ <include name="**/*.txt" />
+ <include name="**/*.grd" />
+ </fileset>
+ </copy>
+
+ </target>
+
+ <target name="resource.erfs.gem">
+ <!-- This is for the GEM ERFs...which we may or may not include in our regular apps. -->
+ <copy todir="${build}/org/opensha/gem/GEM1/data/nshmp/south_america" overwrite="true">
+ <fileset dir="${src}/org/opensha/gem/GEM1/data/nshmp/south_america">
+ <include name="**/*.in" />
+ <include name="**/*.out" />
+ <include name="**/*.char*" />
+ <include name="**/*.gr*" />
+ </fileset>
+ </copy>
+ <copy todir="${build}/org/opensha/gem/GEM1/data/nshmp/us" overwrite="true">
+ <fileset dir="${src}/org/opensha/gem/GEM1/data/nshmp/us">
+ <include name="**/*.in" />
+ <include name="**/*.out" />
+ <include name="**/*.char*" />
+ <include name="**/*.gr*" />
+ <include name="**/*.65" />
+ <include name="**/*.65" />
+ <include name="**/grid/*" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="resource.erfs.aux">
+ <!-- This is for ERFs that we won't include in our regular apps because they require
+ too much data, but may be useful to someone. -->
+ <copy todir="${build}/org/opensha/sha/earthquake/rupForecastImpl/NSHMP_CEUS08/" overwrite="true">
+ <fileset dir="${src}/org/opensha/sha/earthquake/rupForecastImpl/NSHMP_CEUS08/">
+ <include name="inputFiles/*.txt" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="resource.imrs">
+ <copy todir="${build}/org/opensha/sha/imr/attenRelImpl/" overwrite="true">
+ <fileset dir="${src}/org/opensha/sha/imr/attenRelImpl/">
+ <include name="**/*.txt" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="resource.misc.required">
+ <!-- Put things in here that are required by lots of our apps, but don't
+ fit into another category well -->
+
+ <copy todir="${build}/" overwrite="true" file="include/build.version"/>
+ <copy todir="${build}/" overwrite="true" file="../LICENSE.txt"/>
+
+ <copy todir="${build}/resources/images" overwrite="true">
+ <fileset dir="${src}/resources/images" />
+ </copy>
+
+ <antcall target="resource.app.icons" />
+
+ <copy todir="${build}/resources/help" overwrite="true">
+ <fileset dir="${src}/resources/help" />
+ </copy>
+
+ <copy todir="${build}/resources/data/region" overwrite="true">
+ <fileset dir="${src}/resources/data/region" />
+ </copy>
+
+ <copy todir="${build}/org/opensha/refFaultParamDb/dao/db/" overwrite="true">
+ <fileset dir="${src}/org/opensha/refFaultParamDb/dao/db/">
+ <include name="*.dat" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="resource.app.icons" if="app.short.name">
+ <copy todir="${build}/resources/images/icons" overwrite="true">
+ <fileset dir="${project.jnlp.dir}/${app.build.type}/icons">
+ <include name="${app.short.name}*.png" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="resource.hazard.apps.server">
+ <!-- IMR Resources -->
+ <antcall target="resource.imrs" />
+
+ <!-- Other Resources -->
+ <antcall target="resource.misc.required" />
+ </target>
+
+ <target name="resource.hazard.apps">
+ <!-- ERF Resources -->
+ <antcall target="resource.erfs.main" />
+ <antcall target="resource.erfs.gem" />
+
+ <antcall target="resource.hazard.apps.server" />
+ </target>
+
+ <target name="resource.all">
+ <antcall target="resource.hazard.apps" />
+
+ <antcall target="resource.erfs.dev" />
+ <antcall target="resource.erfs.gem" />
+ <antcall target="resource.erfs.aux" />
+ </target>
+
+ <target name="resource.tests">
+ <copy todir="${build}" overwrite="true">
+ <fileset dir="${test}">
+ <include name="**/*.txt" />
+ <include name="**/*.xml" />
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ These targets are for unjar-ing lib files
+ - - - - - - - - - - - - - - - - - -->
+
+ <target name="unjar.libs.common">
+ <unjar src="${lib.dir}/itext-1.3.jar" dest="${build}" />
+ <unjar src="${lib.dir}/jpedal.jar" dest="${build}" />
+ <unjar src="${lib.dir}/jcommon-1.0.5.jar" dest="${build}" />
+ <unjar src="${lib.dir}/jfreechart-1.0.2.jar" dest="${build}" />
+ <unjar src="${lib.dir}/mysql-connector-java-3.1.6-bin.jar" dest="${build}" />
+ <unjar src="${lib.dir}/dom4j.jar" dest="${build}" />
+ <unjar src="${lib.dir}/poi-2.5.1-final-20040804.jar" dest="${build}" />
+ <unjar src="${lib.dir}/f2jutil.jar" dest="${build}" />
+ <unjar src="${lib.dir}/BrowserLauncher2-1_3.jar" dest="${build}" />
+ <unjar src="${lib.dir}/commons-math-2.1.jar" dest="${build}" />
+ <unjar src="${lib.dir}/commons-lang-2.4.jar" dest="${build}" />
+ <unjar src="${lib.dir}/commons-codec-1.4.jar" dest="${build}" />
+ <unjar src="${lib.dir}/ncCore-4.0.jar" dest="${build}" />
+ <unjar src="${lib.dir}/junit-4.5.jar" dest="${build}" />
+ <unjar src="${lib.dir}/sdoapi.jar" dest="${build}" />
+ <unjar src="${lib.dir}/ojdbc5.jar" dest="${build}" />
+ <unjar src="${lib.dir}/jh.jar" dest="${build}" />
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ These targets are for RMIC
+ - - - - - - - - - - - - - - - - - -->
+
+ <target name="rmi.erfs">
+ <rmic base="${build}">
+ <include name="org/opensha/sha/earthquake/rupForecastImpl/remote/RemoteERF_ListFactoryImpl.class" />
+ <include name="org/opensha/sha/earthquake/rupForecastImpl/remote/RemoteEqkRupForecast_Impl.class" />
+ <include name="org/opensha/sha/earthquake/rupForecastImpl/remote/RemoteERF_ListImpl.class" />
+ <include name="org/opensha/sha/earthquake/rupForecastImpl/remote/RemoteERF_FactoryImpl.class" />
+ </rmic>
+ </target>
+
+ <target name="rmi.hazard.curve">
+ <antcall target="rmi.erfs" />
+ <rmic base="${build}">
+ <include name="org/opensha/sha/calc/remoteCalc/RemoteHazardCurveFactoryImpl.class" />
+ <include name="org/opensha/sha/calc/remoteCalc/RemoteDisaggregationCalcFactoryImpl.class" />
+ <include name="org/opensha/sha/calc/disaggregation/DisaggregationCalculator.class" />
+ <include name="org/opensha/sha/calc/HazardCurveCalculator.class" />
+ </rmic>
+ </target>
+
+ <target name="rmi.hazard.spectrum">
+ <antcall target="rmi.hazard.curve" />
+ <rmic base="${build}">
+ <include name="org/opensha/sha/calc/remoteCalc/RemoteResponseSpectrumFactoryImpl.class" />
+ <include name="org/opensha/sha/calc/SpectrumCalculator.class" />
+ </rmic>
+ </target>
+
+ <target name="rmi.all">
+ <antcall target="rmi.hazard.spectrum" />
+ </target>
+
+ <target name="javadoc">
+ <delete dir="${javadoc.dir}" failonerror="yes" verbose="no" />
+ <javadoc destdir="${javadoc.dir}" author="true" version="true" use="true" windowtitle="OpenSHA">
+
+ <fileset dir="${src}" defaultexcludes="yes">
+ <include name="**/*.java" />
+ </fileset>
+
+ <doctitle><![CDATA[<h1>OpenSHA <a href="http://www.opensha.org">www.OpenSHA.org</a></h1>]]></doctitle>
+ <!-- <bottom><![CDATA[<i>Copyright &#169; 2000 Dummy Corp. All Rights Reserved.</i>]]></bottom> -->
+ <!-- <tag name="todo" scope="all" description="To do:"/> -->
+ <!-- <link offline="true" href="http://java.sun.com/j2se/1.5.0/docs/api/" packagelistLoc="C:\tmp"/>
+ <link href="http://developer.java.sun.com/developer/products/xml/docs/api/"/> -->
+ </javadoc>
+ </target>
+</project>
View
82 ant/cc-build-test.xml
@@ -0,0 +1,82 @@
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Copyright 2009 OpenSHA.org in partnership with
+ the Southern California Earthquake Center (SCEC, http://www.scec.org)
+ at the University of Southern California and the UnitedStates Geological
+ Survey (USGS; http://www.usgs.gov)
+
+ 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 basedir="." default="svn.build.run.common.tests" name="Cruise Control Build File">
+
+ <target name="svn.update">
+ <ant antfile="build.xml" target="svn.update"/>
+ </target>
+
+ <target name="svn.update.build" depends="svn.update">
+ <ant antfile="build.xml" target="build"/>
+ <ant antfile="build.xml" target="resource.all"/>
+ <ant antfile="build.xml" target="rmi.all"/>
+ </target>
+
+ <target name="svn.build.run.common.tests" depends="svn.update.build">
+ <ant antfile="test.xml" target="run.common.tests"/>
+ </target>
+
+ <target name="run.operational.tests">
+ <ant antfile="test.xml" target="run.operational.tests"/>
+ </target>
+
+ <target name="svn.update.app.build" depends="svn.update.build">
+ <ant antfile="MultiAppBuilder.xml" target="build.nightly"/>
+ <antcall target="restart.tomcat"/>
+ </target>
+
+ <target name="svn.build.run.daily.coverage" depends="svn.update.build">
+ <ant antfile="test.xml" target="run.cobertura"/>
+ <antcall target="javadoc"/>
+ </target>
+
+ <target name="javadoc">
+ <ant antfile="build.xml" target="javadoc">
+ <property name="javadoc.dir" value="/var/www/html/docs/opensha/javadoc/" />
+ </ant>
+ </target>
+
+ <target name="svn.build.run.weekly.coverage" depends="svn.update.build">
+ <ant antfile="test.xml" target="run.cobertura.weekly"/>
+ </target>
+
+ <target name="restart.tomcat">
+ <echo message="shutting down tomcat"/>
+ <!-- shutdown tomcat -->
+ <exec executable="/bin/bash" timeout="10000">
+ <arg value="/usr/local/tomcat/default/bin/shutdown.sh"/>
+ </exec>
+ <!-- sleep -->
+ <echo message="sleeping for 5 seconds"/>
+ <sleep seconds="5"/>
+ <echo message="making sure it's really dead!"/>
+ <exec executable="/bin/bash" spawn="true">
+ <arg value="../scripts/cron/force_kill_tomcat.sh"/>
+ </exec>
+ <sleep seconds="1"/>
+ <!-- start tomcat -->
+ <echo message="starting up tomcat"/>
+ <exec executable="/bin/bash" spawn="true">
+ <arg value="/usr/local/tomcat/default/bin/startup.sh"/>
+ </exec>
+ </target>
+
+</project>
View
5 ant/include/build.version
@@ -0,0 +1,5 @@
+#OpensHA version file. Do NOT edit!
+#Mon Aug 09 15:39:53 PDT 2010
+build.number=1
+major.version=1
+minor.version=0
View
90 ant/include/utils.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Copyright 2009 OpenSHA.org in partnership with
+ the Southern California Earthquake Center (SCEC, http://www.scec.org)
+ at the University of Southern California and the UnitedStates Geological
+ Survey (USGS; http://www.usgs.gov)
+
+ 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.
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
+<!-- This file includes additional and shared tasks and properties -->
+
+<project basedir="." name="buildutils">
+
+ <dirname property="imported.basedir" file="${ant.file.buildutils}"/>
+ <property name="antlib.dir" value="${imported.basedir}/../lib" />
+ <property name="include.dir" value="${imported.basedir}/../include" />
+
+
+ <!-- svnant tasks -->
+ <typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
+ <classpath>
+ <fileset dir= "${antlib.dir}/svnant-1.3.0" >
+ <include name= "*.jar" />
+ </fileset>
+ </classpath>
+ </typedef>
+
+
+ <!-- ant-contrib tasks -->
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties">
+ <classpath>
+ <pathelement location="${antlib.dir}/ant-contrib-1.0b3/ant-contrib-1.0b3.jar" />
+ </classpath>
+ </taskdef>
+
+
+ <!-- versioning properties:
+ app.version
+
+ versioning targets:
+ set.app.version : assembles app version values
+ update.major.version : increments major version
+ update.minor.version : increments minor version
+ update.build.number : increments build
+ -->
+ <property name="prop.file.name" value="${include.dir}/build.version" />
+ <property name="prop.file.comment" value="OpensHA version file. Do NOT edit!" />
+ <property file="${prop.file.name}" />
+ <!--<var name="app.version" value="test" />-->
+ <target name="set.app.version">
+ <svn>
+ <wcVersion path=".." prefix="svn." />
+ </svn>
+ <tstamp>
+ <format property="build.date" pattern="yyyy_MM_dd" unit="day"/>
+ </tstamp>
+ <var name="app.version"
+ value="${major.version}.${minor.version}.${build.number}-${svn.revision.max}-${build.date}"/>
+ </target>
+ <target name="update.major.version">
+ <propertyfile file="${prop.file.name}" comment="${prop.file.comment}">
+ <entry key="major.version" type="int" default="0" operation="+" />
+ <entry key="minor.version" type="int" value="0" />
+ <entry key="build.number" type="int" value="0" />
+ </propertyfile>
+ </target>
+ <target name="update.minor.version">
+ <propertyfile file="${prop.file.name}" comment="${prop.file.comment}">
+ <entry key="minor.version" type="int" default="0" operation="+" />
+ <entry key="build.number" type="int" value="0" />
+ </propertyfile>
+ </target>
+ <target name="update.build.number">
+ <propertyfile file="${prop.file.name}" comment="${prop.file.comment}">
+ <entry key="build.number" type="int" default="0" operation="+" />
+ </propertyfile>
+ </target>
+
+</project>
View
BIN  ant/lib/ant-contrib-1.0b3/ant-contrib-1.0b3.jar
Binary file not shown
View
340 ant/lib/cobertura-1.9.3/COPYING
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>