Skip to content

Commit 54de901

Browse files
committed
Clone commit
1 parent 856f3c8 commit 54de901

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+9608
-0
lines changed

LICENSE.txt

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2006-, IPD Boehm, Universitaet Karlsruhe (TH) / KIT, by Guido Sautter
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
* Neither the name of the Universit�t Karlsruhe (TH) nor the
13+
names of its contributors may be used to endorse or promote products
14+
derived from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY UNIVERSIT�T KARLSRUHE (TH) / KIT AND CONTRIBUTORS
17+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19+
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
20+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.txt

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
Copyright (c) 2006-, IPD Boehm, Universitaet Karlsruhe (TH) / KIT, by Guido Sautter
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
* Neither the name of the Universit�t Karlsruhe (TH) nor the
13+
names of its contributors may be used to endorse or promote products
14+
derived from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY UNIVERSIT�T KARLSRUHE (TH) / KIT AND CONTRIBUTORS
17+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19+
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
20+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26+
27+
28+
This project is not an application proper; it rather provides additional (shared)
29+
base libraries for multiple other projects. The Ant build script produces ten
30+
JAR files in the "dist" folder, namely:
31+
32+
- GamtaFeedbackAPI.jar: Utilities and widgets for getting input from users, both
33+
in a desktop environment with a Swing UI and via web based
34+
forms
35+
36+
- GamtaImagingAPI.jar: Utilities and widgets for analyzing (scanned) text images
37+
38+
- AbbreviationUtils.jar: Utilities for resolving abbreviations in documents
39+
40+
- BibRefUtils.jar: Utilities and widgets for working with bibliographic reference
41+
data
42+
43+
- DateTimeUtils.jar: Utilities for parsing and normalizing dates and times
44+
45+
- GeoUtils.jar: Utilities for working with geo-coordinates
46+
47+
- MaterialsCitationUtils.jar: Utilities for working with materials citations in
48+
taxonomic documents
49+
50+
- QuantityUtils.jar: Utilities for working with quantities
51+
52+
- TableUtils.jar: Utilities for and widgets for working with tables
53+
54+
- TaxonomicNameUtils.jar: Utilities and widgets for working with taxonomic names
55+
56+
57+
All ten JAR files generated by Ant include both the Java sources and the class files,
58+
as well as other resources required for the code to work.
59+
60+
61+
This project depends on the following external JAR files to build (all included in the
62+
"lib" folder for convenience):
63+
- servlet-api.jar
64+
- icepdf-core.jar (by IceSoft, http://www.icesoft.org/java/projects/ICEpdf/overview.jsf,
65+
used under the terms of the Mozilla Public License)
66+
67+
In addition, it requires the JAR files build by the Ant script in the idaho-core
68+
project (http://code.google.com/p/idaho-core/) and the JAR files referenced from
69+
there. See http://code.google.com/p/idaho-core/source/browse/README.txt for the
70+
latter. You can either check out idaho-core as a project into the same workspace
71+
and build it first, or include the JAR files it generates in the "lib" folder.

ant/config.ant

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<!-- the project global configuration for the build system.
4+
5+
Please: be very careful when modifing this, as this file lives in GIT and you can easily break
6+
other peoples system when commiting changes to this file. -->
7+
8+
<project name="config">
9+
10+
<!-- =================================================================== -->
11+
<!-- DIRECTORY CONFIGURATION -->
12+
13+
<!-- root directory of the common source tree -->
14+
<property name="src.home" value="src" />
15+
16+
<!-- directory that contains all libraries that are required in the .war -->
17+
<property name="lib.home" value="lib" />
18+
19+
<!-- build directory that will contain all the .jars and what else is required for a .war -->
20+
<property name="build.home" value="build" />
21+
22+
<!-- build directory that contains all files to include in the .zips except for the .jars -->
23+
<property name="file.home" value="files" />
24+
25+
<!-- directory that contains packed archives, such as the .war -->
26+
<property name="dist.home" value="dist" />
27+
28+
<!-- path to the .jar file that shall be created -->
29+
<property name="jar.imagine" value="${dist.home}/GgImagine.jar" />
30+
31+
<!-- path to the .jar file that shall be created -->
32+
<property name="jar.configmanager" value="${dist.home}/Plugins/ImagineConfigurationManager.jar" />
33+
34+
<!-- path to the .jar file that shall be created -->
35+
<property name="jar.starter" value="${dist.home}/GgImagineStarter.jar" />
36+
37+
<!-- path to the .jar file that shall be created -->
38+
<property name="jar.vpacker" value="${dist.home}/_VersionPacker.imagine.jar" />
39+
40+
<!-- path to the application .zip file that shall be created -->
41+
<property name="app.imagine" value="${dist.home}/GoldenGateImagine.zip" />
42+
43+
<!-- path to the application .zip file that shall be created -->
44+
<property name="app.vpacker" value="${dist.home}/VersionPacker.imagine.zip" />
45+
</project>

ant/dir.ant

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<!-- manages the directory structure for the build process.
4+
5+
This means it creates all the temporary directories and copies files between them.
6+
It is also responsible for cleaning up the whole mess afterwards. -->
7+
8+
<project name="dir">
9+
10+
<!-- create the required directories -->
11+
<target name="mkdirs">
12+
<mkdir dir="${build.home}" />
13+
<mkdir dir="${build.home}/classes" />
14+
<mkdir dir="${dist.home}" />
15+
<mkdir dir="${dist.home}/Plugins" />
16+
</target>
17+
18+
<!-- more or less the reverse of it, delete all the directories again -->
19+
<target name="clean" description="remove all auto-generated files" >
20+
<!--delete dir="${build.home}/classes" /-->
21+
<delete includeemptydirs="true">
22+
<fileset dir="${build.home}" includes="**/*.class"/>
23+
</delete>
24+
<!--delete dir="${dist.home}" /-->
25+
<delete includeemptydirs="true">
26+
<fileset dir="${dist.home}" includes="*.jar"/>
27+
</delete>
28+
<delete includeemptydirs="true">
29+
<fileset dir="${dist.home}/Plugins" includes="*.jar"/>
30+
</delete>
31+
<delete includeemptydirs="true">
32+
<fileset dir="${dist.home}" includes="*.zip"/>
33+
</delete>
34+
</target>
35+
36+
37+
<!-- copy everything that needs to be in the distro -->
38+
<target name="copy" depends="mkdirs" >
39+
40+
<!-- copy required libraries -->
41+
<copy todir="${dist.home}/Plugins/ImagineConfigurationManagerBin" overwrite="true" verbose="false">
42+
<fileset dir="${lib.home}">
43+
<include name="ImageMarkup.jar" />
44+
</fileset>
45+
</copy>
46+
</target>
47+
</project>

ant/dist.ant

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<!--
4+
Does all the packing. That is, creates the files that live in dist/
5+
-->
6+
7+
<project name="dist">
8+
<target name="zips" depends="imaginezip,vpackerzip,imfdocio">
9+
</target>
10+
11+
<target name="imagine">
12+
<delete file="${jar.imagine}" />
13+
<jar destfile="${jar.imagine}" manifest="${file.home}/MANIFEST.imagine.MF">
14+
<fileset dir="${build.home}/classes">
15+
<include name="**/**.class" />
16+
<exclude name="**/utilities/**.class" />
17+
<exclude name="**/starter/**.class" />
18+
</fileset>
19+
<fileset dir="${src.home}">
20+
<include name="**/**.java" />
21+
<exclude name="**/utilities/**.java" />
22+
<exclude name="**/starter/**.java" />
23+
</fileset>
24+
<fileset dir="." includes="LICENSE.txt"/>
25+
</jar>
26+
</target>
27+
28+
<target name="configmanager">
29+
<delete file="${jar.configmanager}" />
30+
<jar destfile="${jar.configmanager}">
31+
<fileset dir="${build.home}/classes" includes="**/GoldenGateImagineConfigurationManager.class"/>
32+
<fileset dir="${build.home}/classes" includes="**/GoldenGateImagineConfigurationManager$**.class"/>
33+
<fileset dir="${src.home}" includes="**/configuration/GoldenGateImagineConfigurationManager.java"/>
34+
<fileset dir="." includes="LICENSE.txt"/>
35+
</jar>
36+
</target>
37+
38+
<target name="starter">
39+
<delete file="${jar.starter}"/>
40+
<jar destfile="${jar.starter}" manifest="${file.home}/MANIFEST.starter.MF">
41+
<fileset dir="${build.home}/classes" includes="**/GoldenGateImagineStarter.class"/>
42+
<fileset dir="${build.home}/classes" includes="**/GoldenGateImagineStarter$**.class"/>
43+
<fileset dir="${build.home}/classes" includes="**/GoldenGateImagineConstants.class"/>
44+
<fileset dir="${build.home}/classes" includes="**/GoldenGateImagineConstants$**.class"/>
45+
<fileset dir="${build.home}/classes" includes="**/UpdateUtils.class"/>
46+
<fileset dir="${build.home}/classes" includes="**/UpdateUtils$**.class"/>
47+
<fileset dir="${src.home}" includes="**/GoldenGateImagineStarter.java"/>
48+
<fileset dir="${src.home}" includes="**/GoldenGateImagineConstants.java"/>
49+
<fileset dir="${src.home}" includes="**/UpdateUtils.java"/>
50+
<fileset dir="." includes="LICENSE.txt"/>
51+
</jar>
52+
</target>
53+
54+
<target name="imaginezip" depends="imagine,configmanager,starter">
55+
<delete file="${app.imagine}" />
56+
<zip destfile="${app.imagine}">
57+
<fileset dir="${lib.home}"/>
58+
<fileset dir="${file.home}/imagine"/>
59+
<fileset dir="${dist.home}/" includes="GgImagine.jar"/>
60+
<fileset dir="${dist.home}/" includes="GgImagineStarter.jar"/>
61+
<fileset dir="." includes="LICENSE.txt"/>
62+
</zip>
63+
</target>
64+
65+
66+
<target name="vpacker">
67+
<delete file="${jar.vpacker}"/>
68+
<jar destfile="${jar.vpacker}" manifest="${file.home}/MANIFEST.versionpacker.MF">
69+
<fileset dir="${build.home}/classes" includes="**/VersionPacker.class"/>
70+
<fileset dir="${build.home}/classes" includes="**/VersionPacker$**.class"/>
71+
<fileset dir="${build.home}/classes" includes="**/PackerUtils.class"/>
72+
<fileset dir="${build.home}/classes" includes="**/PackerUtils$**.class"/>
73+
<fileset dir="${src.home}" includes="**/VersionPacker.java"/>
74+
<fileset dir="${src.home}" includes="**/PackerUtils.java"/>
75+
<fileset dir="." includes="LICENSE.txt"/>
76+
</jar>
77+
</target>
78+
79+
<target name="vpackerzip" depends="vpacker">
80+
<delete file="${app.vpacker}"/>
81+
<zip destfile="${app.vpacker}">
82+
<fileset dir="${file.home}/versionpacker"/>
83+
<fileset dir="${dist.home}/" includes="_VersionPacker.imagine.jar"/>
84+
<fileset dir="." includes="LICENSE.txt"/>
85+
</zip>
86+
</target>
87+
88+
<target name="imfdocio">
89+
<delete file="${dist.home}/Plugins/ImfDocumentFormat.jar"/>
90+
<jar destfile="${dist.home}/Plugins/ImfDocumentFormat.jar">
91+
<fileset dir="${build.home}/classes" includes="**/ImfDocumentFormatProvider.class"/>
92+
<fileset dir="${build.home}/classes" includes="**/ImfDocumentFormatProvider$**.class"/>
93+
<fileset dir="${src.home}" includes="**/ImfDocumentFormatProvider.java"/>
94+
<fileset dir="." includes="LICENSE.txt"/>
95+
</jar>
96+
</target>
97+
</project>

ant/import.ant

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<!--
4+
Fetches OpenStringPool and RefParse from projects existing in same workspace
5+
-->
6+
7+
<project name="import">
8+
<target name="fetch" depends="fetch-ic,fetch-ie,fetch-im,fetch-gg" />
9+
10+
<target name="check-fetch-ic" unless="ic.exists">
11+
<available property="ic.exists" file="../idaho-core/lib/mail.jar"/>
12+
</target>
13+
<target name="fetch-ic" depends="check-fetch-ic" if="${ic.exists}">
14+
<copy file="../idaho-core/lib/mail.jar" todir="${lib.home}" overwrite="true" verbose="false" />
15+
<copy file="../idaho-core/dist/StringUtils.jar" todir="${lib.home}" overwrite="true" verbose="false" />
16+
<copy file="../idaho-core/dist/HtmlXmlUtil.jar" todir="${lib.home}" overwrite="true" verbose="false" />
17+
<copy file="../idaho-core/dist/Gamta.jar" todir="${lib.home}" overwrite="true" verbose="false" />
18+
<copy file="../idaho-core/dist/EasyIO.jar" todir="${lib.home}" overwrite="true" verbose="false" />
19+
</target>
20+
21+
<target name="check-fetch-ie" unless="ie.exists">
22+
<available property="ie.exists" file="../idaho-extensions/dist/GamtaImagingAPI.jar"/>
23+
</target>
24+
<target name="fetch-ie" depends="check-fetch-ie" if="${ie.exists}">
25+
<copy file="../idaho-extensions/dist/GamtaImagingAPI.jar" todir="${lib.home}" overwrite="true" verbose="false" />
26+
</target>
27+
28+
<target name="check-fetch-im" unless="im.exists">
29+
<available property="im.exists" file="../idaho-imagemarkup/dist/ImageMarkup.jar"/>
30+
</target>
31+
<target name="fetch-im" depends="check-fetch-im" if="${im.exists}">
32+
<copy file="../idaho-imagemarkup/lib/icepdf-core.jar" todir="${lib.home}" overwrite="true" verbose="false" />
33+
<copy file="../idaho-imagemarkup/dist/ImageMarkup.jar" todir="${lib.home}" overwrite="true" verbose="false" />
34+
<copy file="../idaho-imagemarkup/dist/ImageMarkupOCR.jar" todir="${lib.home}" overwrite="true" verbose="false" />
35+
<copy file="../idaho-imagemarkup/dist/ImageMarkupOCR.bin.jar" todir="${lib.home}" overwrite="true" verbose="false" />
36+
<copy file="../idaho-imagemarkup/dist/ImageMarkupPDF.jar" todir="${lib.home}" overwrite="true" verbose="false" />
37+
<copy file="../idaho-imagemarkup/dist/ImageMarkupPDF.bin.jar" todir="${lib.home}" overwrite="true" verbose="false" />
38+
</target>
39+
40+
<target name="check-fetch-gg" unless="gg.exists">
41+
<available property="gg.exists" file="../goldengate-editor/dist/GoldenGATE.jar"/>
42+
</target>
43+
<target name="fetch-gg" depends="check-fetch-gg" if="${gg.exists}">
44+
<copy file="../goldengate-editor/dist/GoldenGATE.jar" todir="${lib.home}" overwrite="true" verbose="false" />
45+
</target>
46+
</project>

ant/javac.ant

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!--
3+
Handles the compilation step itself. Especially the classpath is set up
4+
here.
5+
-->
6+
7+
<project name="javac">
8+
9+
<!-- set up the classpath for compilation, this should always match the
10+
Eclipse configuration. -->
11+
<path id="compile.classpath">
12+
<!-- include all .jar in the lib/ directory -->
13+
<fileset dir="${lib.home}">
14+
<include name="*.jar" />
15+
</fileset>
16+
</path>
17+
18+
<!-- The task off all tasks -->
19+
<target name="compile" description="Compile GoldenGATE Imagine Java sources">
20+
21+
<!-- Compile Java classes as necessary -->
22+
<javac destdir="${build.home}/classes" includeantruntime="false" target="1.5" debug="true" debuglevel="lines,vars,source">
23+
<src path="${src.home}" />
24+
<classpath refid="compile.classpath" />
25+
</javac>
26+
</target>
27+
</project>

0 commit comments

Comments
 (0)