libis-format 0.9.5-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.gitignore +18 -0
- data/.travis.yml +41 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +39 -0
- data/Rakefile +8 -0
- data/bin/droid +15 -0
- data/bin/fido +12 -0
- data/bin/pdf_copy +13 -0
- data/data/ISOcoated_v2_eci.icc +0 -0
- data/data/PDFA_def.ps +40 -0
- data/data/ead.xsd +2728 -0
- data/data/eciRGB_v2.icc +0 -0
- data/data/lias_formats.xml +106 -0
- data/data/types.yml +217 -0
- data/lib/libis/format/config.rb +35 -0
- data/lib/libis/format/converter/base.rb +101 -0
- data/lib/libis/format/converter/chain.rb +167 -0
- data/lib/libis/format/converter/image_converter.rb +214 -0
- data/lib/libis/format/converter/office_converter.rb +50 -0
- data/lib/libis/format/converter/pdf_converter.rb +139 -0
- data/lib/libis/format/converter/repository.rb +98 -0
- data/lib/libis/format/converter.rb +11 -0
- data/lib/libis/format/droid.rb +45 -0
- data/lib/libis/format/fido.rb +102 -0
- data/lib/libis/format/identifier.rb +189 -0
- data/lib/libis/format/office_to_pdf.rb +52 -0
- data/lib/libis/format/pdf_copy.rb +40 -0
- data/lib/libis/format/pdf_merge.rb +41 -0
- data/lib/libis/format/pdf_split.rb +39 -0
- data/lib/libis/format/pdf_to_pdfa.rb +76 -0
- data/lib/libis/format/pdfa_validator.rb +61 -0
- data/lib/libis/format/type_database.rb +170 -0
- data/lib/libis/format/version.rb +5 -0
- data/lib/libis/format.rb +23 -0
- data/lib/libis-format.rb +1 -0
- data/libis-format.gemspec +34 -0
- data/spec/converter_spec.rb +212 -0
- data/spec/data/Cevennes2.bmp +0 -0
- data/spec/data/Cevennes2.jp2 +0 -0
- data/spec/data/Cevennes2.ppm +22492 -0
- data/spec/data/test-ead.xml +392 -0
- data/spec/data/test-jpg.tif +0 -0
- data/spec/data/test-lzw.tif +0 -0
- data/spec/data/test-options.jpg +0 -0
- data/spec/data/test.bmp +0 -0
- data/spec/data/test.doc +0 -0
- data/spec/data/test.docx +0 -0
- data/spec/data/test.gif +0 -0
- data/spec/data/test.jpg +0 -0
- data/spec/data/test.ods +0 -0
- data/spec/data/test.odt +0 -0
- data/spec/data/test.pdf +0 -0
- data/spec/data/test.pdf.tif +0 -0
- data/spec/data/test.png +0 -0
- data/spec/data/test.ps +8631 -0
- data/spec/data/test.psd +0 -0
- data/spec/data/test.rtf +1455 -0
- data/spec/data/test.tif +0 -0
- data/spec/data/test.txt +12 -0
- data/spec/data/test.xcf +0 -0
- data/spec/data/test.xls +0 -0
- data/spec/data/test.xlsx +0 -0
- data/spec/data/test.xml +4 -0
- data/spec/data/test_pdfa.pdf +0 -0
- data/spec/identifier_spec.rb +60 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/test_types.yml +12 -0
- data/spec/type_database_spec.rb +140 -0
- data/tools/PdfTool.jar +0 -0
- data/tools/bcpkix-jdk15on-1.49.jar +0 -0
- data/tools/bcprov-jdk15on-1.49.jar +0 -0
- data/tools/droid/DROID_SignatureFile_V82.xml +32681 -0
- data/tools/droid/container-signature-20150307.xml +2235 -0
- data/tools/droid/droid-command-line-6.1.5.jar +0 -0
- data/tools/droid/droid.bat +154 -0
- data/tools/droid/droid.sh +138 -0
- data/tools/droid/lib/XmlSchema-1.4.7.jar +0 -0
- data/tools/droid/lib/activation-1.1.jar +0 -0
- data/tools/droid/lib/antlr-2.7.7.jar +0 -0
- data/tools/droid/lib/antlr-3.2.jar +0 -0
- data/tools/droid/lib/antlr-runtime-3.2.jar +0 -0
- data/tools/droid/lib/aopalliance-1.0.jar +0 -0
- data/tools/droid/lib/asm-2.2.3.jar +0 -0
- data/tools/droid/lib/aspectjrt-1.7.2.jar +0 -0
- data/tools/droid/lib/aspectjweaver-1.7.2.jar +0 -0
- data/tools/droid/lib/bcmail-jdk14-138.jar +0 -0
- data/tools/droid/lib/bcprov-jdk14-138.jar +0 -0
- data/tools/droid/lib/beansbinding-1.2.1.jar +0 -0
- data/tools/droid/lib/byteseek-1.1.1.jar +0 -0
- data/tools/droid/lib/cglib-nodep-2.2.2.jar +0 -0
- data/tools/droid/lib/classmate-1.0.0.jar +0 -0
- data/tools/droid/lib/commons-cli-1.2.jar +0 -0
- data/tools/droid/lib/commons-codec-1.4.jar +0 -0
- data/tools/droid/lib/commons-collections-3.2.1.jar +0 -0
- data/tools/droid/lib/commons-compress-1.4.1.jar +0 -0
- data/tools/droid/lib/commons-configuration-1.8.jar +0 -0
- data/tools/droid/lib/commons-dbcp-1.4.jar +0 -0
- data/tools/droid/lib/commons-httpclient-3.1.jar +0 -0
- data/tools/droid/lib/commons-io-2.4.jar +0 -0
- data/tools/droid/lib/commons-lang-2.6.jar +0 -0
- data/tools/droid/lib/commons-logging-1.1.1.jar +0 -0
- data/tools/droid/lib/commons-pool-1.5.4.jar +0 -0
- data/tools/droid/lib/cxf-api-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-common-schemas-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-common-utilities-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-http-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-soap-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-xml-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-core-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-databinding-jaxb-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-frontend-jaxws-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-frontend-simple-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-transports-http-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-ws-addr-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-tools-common-2.2.12.jar +0 -0
- data/tools/droid/lib/de.huxhorn.lilith.3rdparty.flyingsaucer.core-renderer-8RC1.jar +0 -0
- data/tools/droid/lib/derby-10.10.2.0.jar +0 -0
- data/tools/droid/lib/dom4j-1.6.1.jar +0 -0
- data/tools/droid/lib/droid-container-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-core-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-core-interfaces-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-export-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-export-interfaces-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-help-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-report-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-report-interfaces-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-results-6.1.5.jar +0 -0
- data/tools/droid/lib/ejb3-persistence-1.0.2.GA.jar +0 -0
- data/tools/droid/lib/geronimo-activation_1.1_spec-1.0.2.jar +0 -0
- data/tools/droid/lib/geronimo-annotation_1.0_spec-1.1.1.jar +0 -0
- data/tools/droid/lib/geronimo-javamail_1.4_spec-1.6.jar +0 -0
- data/tools/droid/lib/geronimo-jaxws_2.1_spec-1.0.jar +0 -0
- data/tools/droid/lib/geronimo-stax-api_1.0_spec-1.0.1.jar +0 -0
- data/tools/droid/lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar +0 -0
- data/tools/droid/lib/hibernate-commons-annotations-4.0.4.Final.jar +0 -0
- data/tools/droid/lib/hibernate-core-4.3.5.Final.jar +0 -0
- data/tools/droid/lib/hibernate-entitymanager-4.3.5.Final.jar +0 -0
- data/tools/droid/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar +0 -0
- data/tools/droid/lib/hibernate-validator-5.1.0.Final.jar +0 -0
- data/tools/droid/lib/itext-2.0.8.jar +0 -0
- data/tools/droid/lib/jandex-1.1.0.Final.jar +0 -0
- data/tools/droid/lib/javahelp-2.0.05.jar +0 -0
- data/tools/droid/lib/javassist-3.18.1-GA.jar +0 -0
- data/tools/droid/lib/jaxb-api-2.1.jar +0 -0
- data/tools/droid/lib/jaxb-impl-2.1.13.jar +0 -0
- data/tools/droid/lib/jboss-logging-3.1.3.GA.jar +0 -0
- data/tools/droid/lib/jboss-logging-annotations-1.2.0.Beta1.jar +0 -0
- data/tools/droid/lib/jboss-transaction-api_1.2_spec-1.0.0.Final.jar +0 -0
- data/tools/droid/lib/joda-time-1.6.2.jar +0 -0
- data/tools/droid/lib/jra-1.0-alpha-4.jar +0 -0
- data/tools/droid/lib/jta-1.1.jar +0 -0
- data/tools/droid/lib/log4j-1.2.13.jar +0 -0
- data/tools/droid/lib/neethi-2.0.4.jar +0 -0
- data/tools/droid/lib/opencsv-2.3.jar +0 -0
- data/tools/droid/lib/org-netbeans-swing-outline-7.2.jar +0 -0
- data/tools/droid/lib/org-openide-util-7.2.jar +0 -0
- data/tools/droid/lib/org-openide-util-lookup-7.2.jar +0 -0
- data/tools/droid/lib/poi-3.7.jar +0 -0
- data/tools/droid/lib/saaj-api-1.3.jar +0 -0
- data/tools/droid/lib/saaj-impl-1.3.2.jar +0 -0
- data/tools/droid/lib/slf4j-api-1.4.2.jar +0 -0
- data/tools/droid/lib/slf4j-log4j12-1.4.2.jar +0 -0
- data/tools/droid/lib/spring-aop-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-beans-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-context-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-core-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-expression-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-jdbc-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-orm-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-tx-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-web-2.5.6.jar +0 -0
- data/tools/droid/lib/stax-api-1.0-2.jar +0 -0
- data/tools/droid/lib/stringtemplate-3.2.jar +0 -0
- data/tools/droid/lib/truezip-6.8.4.jar +0 -0
- data/tools/droid/lib/validation-api-1.1.0.Final.jar +0 -0
- data/tools/droid/lib/wsdl4j-1.6.2.jar +0 -0
- data/tools/droid/lib/wstx-asl-3.2.9.jar +0 -0
- data/tools/droid/lib/xercesImpl-2.9.1.jar +0 -0
- data/tools/droid/lib/xml-apis-1.3.04.jar +0 -0
- data/tools/droid/lib/xml-resolver-1.2.jar +0 -0
- data/tools/droid/lib/xz-1.0.jar +0 -0
- data/tools/fido/__init__.py +0 -0
- data/tools/fido/argparselocal.py +2355 -0
- data/tools/fido/conf/DROID_SignatureFile-v81.xml +2 -0
- data/tools/fido/conf/container-signature-20150307.xml +2238 -0
- data/tools/fido/conf/dc.xsd +119 -0
- data/tools/fido/conf/dcmitype.xsd +53 -0
- data/tools/fido/conf/dcterms.xsd +383 -0
- data/tools/fido/conf/fido-formats.xsd +173 -0
- data/tools/fido/conf/format_extension_template.xml +105 -0
- data/tools/fido/conf/format_extensions.xml +498 -0
- data/tools/fido/conf/formats-v81.xml +38355 -0
- data/tools/fido/conf/pronom-xml-v81.zip +0 -0
- data/tools/fido/conf/versions.xml +8 -0
- data/tools/fido/fido.bat +4 -0
- data/tools/fido/fido.py +854 -0
- data/tools/fido/fido.sh +5 -0
- data/tools/fido/prepare.py +616 -0
- data/tools/fido/pronomutils.py +115 -0
- data/tools/fido/toxml.py +52 -0
- data/tools/fido/update_signatures.py +171 -0
- data/tools/pdfbox/pdfbox-app-1.8.10.jar +0 -0
- data/tools/pdfbox/preflight-app-1.8.10.jar +0 -0
- metadata +396 -0
Binary file
|
@@ -0,0 +1,154 @@
|
|
1
|
+
@REM
|
2
|
+
@REM Copyright (c) 2012, The National Archives <pronom@nationalarchives.gsi.gov.uk>
|
3
|
+
@REM All rights reserved.
|
4
|
+
@REM
|
5
|
+
@REM Redistribution and use in source and binary forms, with or without
|
6
|
+
@REM modification, are permitted provided that the following
|
7
|
+
@REM conditions are met:
|
8
|
+
@REM
|
9
|
+
@REM * Redistributions of source code must retain the above copyright
|
10
|
+
@REM notice, this list of conditions and the following disclaimer.
|
11
|
+
@REM
|
12
|
+
@REM * Redistributions in binary form must reproduce the above copyright
|
13
|
+
@REM notice, this list of conditions and the following disclaimer in the
|
14
|
+
@REM documentation and/or other materials provided with the distribution.
|
15
|
+
@REM
|
16
|
+
@REM * Neither the name of the The National Archives nor the
|
17
|
+
@REM names of its contributors may be used to endorse or promote products
|
18
|
+
@REM derived from this software without specific prior written permission.
|
19
|
+
@REM
|
20
|
+
@REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
21
|
+
@REM AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
22
|
+
@REM IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
23
|
+
@REM PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
24
|
+
@REM CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
25
|
+
@REM EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
26
|
+
@REM PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
27
|
+
@REM PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
28
|
+
@REM LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
29
|
+
@REM NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
30
|
+
@REM SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
31
|
+
@REM
|
32
|
+
|
33
|
+
@ECHO OFF
|
34
|
+
|
35
|
+
REM DROID launch script for Windows systems
|
36
|
+
REM ========================================
|
37
|
+
|
38
|
+
REM Settings:
|
39
|
+
REM =========
|
40
|
+
|
41
|
+
REM Default user dir:
|
42
|
+
REM -----------------
|
43
|
+
REM This is where droid will place user settings
|
44
|
+
REM If not set, it will default to a directory called ".droid6"
|
45
|
+
REM under the user's home directory.
|
46
|
+
REM Also configure this property using the environment variable: droidUserDir
|
47
|
+
REM Remove the "REM " from the line below and set the working dir path after the "=".
|
48
|
+
REM SET droidUser=
|
49
|
+
|
50
|
+
|
51
|
+
REM Default temporary file dir:
|
52
|
+
REM ---------------------------
|
53
|
+
REM This is where droid will place temporary working files,
|
54
|
+
REM including decompressed archival files and working profile databases.
|
55
|
+
REM If not set, it will default to the droidUserDir
|
56
|
+
REM (by default, under the user's home directory)
|
57
|
+
REM Also configure this property using the environment variable: droidTempDir
|
58
|
+
REM Remove the "REM " from the line below and set the working dir path after the "=".
|
59
|
+
REM SET droidTemp=
|
60
|
+
|
61
|
+
|
62
|
+
REM Default log dir:
|
63
|
+
REM ----------------
|
64
|
+
REM This is where droid will write its log files.
|
65
|
+
REM If not set, it will default to a folder called "logs"
|
66
|
+
REM under the droidUserDir.
|
67
|
+
REM Also configure this property using the environment variable: droidLogDir
|
68
|
+
REM Remove the "REM " from the line below and set the log dir path after the "=".
|
69
|
+
REM SET droidLog=
|
70
|
+
|
71
|
+
|
72
|
+
REM Log configuration:
|
73
|
+
REM ------------------
|
74
|
+
REM This is the location of the lo4j configuration file to use.
|
75
|
+
REM By default, it will use a file called "log4j.properties"
|
76
|
+
REM which is found under the droidUserDir.
|
77
|
+
REM Also configure this property using the environment variable: log4j.configuration
|
78
|
+
REM Remove the "REM " from the line below and set the log config file path after the "=".
|
79
|
+
REM SET log4j=
|
80
|
+
|
81
|
+
|
82
|
+
REM Default console logging level:
|
83
|
+
REM ------------------------------
|
84
|
+
REM This allows you to set the default logging level used by
|
85
|
+
REM DROID when logging to the command line console. If not set,
|
86
|
+
REM it defaults to INFO level logging, unless running in quiet
|
87
|
+
REM mode from the command-line, in which case the log level is
|
88
|
+
REM overridden to be ERROR.
|
89
|
+
REM SET logLevel=INFO
|
90
|
+
|
91
|
+
|
92
|
+
REM Maximum memory:
|
93
|
+
REM ---------------
|
94
|
+
REM This is the maximum memory DROID can use in megabytes.
|
95
|
+
REM Remove the "REM " from the line below and set the maximum memory after the "=".
|
96
|
+
REM Also configure this property using the environment variable: droidMemory.
|
97
|
+
REM SET droidMemory=512
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
REM Assemble options
|
102
|
+
REM ================
|
103
|
+
REM default to using 512 megabytes of memory if no other settings provided:
|
104
|
+
SET DROIDOPTIONS="-Xmx512m"
|
105
|
+
|
106
|
+
IF "%droidMemory%"=="" GOTO UserDir
|
107
|
+
SET DROIDOPTIONS="-Xmx%droidMemory%m"
|
108
|
+
|
109
|
+
:UserDir
|
110
|
+
IF "%droidUser%"=="" GOTO TempDir
|
111
|
+
SET DROIDOPTIONS=%DROIDOPTIONS% "-DdroidUserDir=%droidUser%"
|
112
|
+
|
113
|
+
:TempDir
|
114
|
+
IF "%droidTemp%"=="" GOTO LogOptions
|
115
|
+
SET DROIDOPTIONS=%DROIDOPTIONS% "-DdroidTempDir=%droidTemp%"
|
116
|
+
|
117
|
+
:LogOptions
|
118
|
+
IF "%droidLog%"=="" GOTO Log4JConfig
|
119
|
+
SET DROIDOPTIONS=%DROIDOPTIONS% "-DdroidLogDir=%droidLog%"
|
120
|
+
|
121
|
+
:Log4JConfig
|
122
|
+
IF "%log4j%"=="" GOTO LogLevel
|
123
|
+
SET DROIDOPTIONS=%DROIDOPTIONS% "-Dlog4j.configuration=%log4j%"
|
124
|
+
|
125
|
+
:LogLevel
|
126
|
+
IF "%logLevel%"=="" GOTO RunDROID
|
127
|
+
SET DROIDOPTIONS=%DROIDOPTIONS% "-DconsoleLogThreshold=%logLevel%"
|
128
|
+
|
129
|
+
|
130
|
+
REM Run DROID:
|
131
|
+
REM ==========
|
132
|
+
:RunDROID
|
133
|
+
|
134
|
+
SET BASEDIR=%~dp0
|
135
|
+
|
136
|
+
REM ECHO Running DROID with the following options: %DROIDOPTIONS%
|
137
|
+
|
138
|
+
REM Choose whether to run the command line or gui version of DROID:
|
139
|
+
IF "%1"=="" GOTO NOPARAM
|
140
|
+
|
141
|
+
:PARAM
|
142
|
+
REM has command line parameters passed - run command line version:
|
143
|
+
java %DROIDOPTIONS% -jar %BASEDIR%\droid-command-line-6.1.5.jar %*
|
144
|
+
|
145
|
+
GOTO end
|
146
|
+
|
147
|
+
:NOPARAM
|
148
|
+
REM no command line parameters passed - run GUI version:
|
149
|
+
start javaw %DROIDOPTIONS% -jar %BASEDIR%\droid\droid-ui-6.1.5.jar
|
150
|
+
|
151
|
+
:END
|
152
|
+
|
153
|
+
|
154
|
+
|
@@ -0,0 +1,138 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Copyright (c) 2012, The National Archives <pronom@nationalarchives.gsi.gov.uk>
|
4
|
+
# All rights reserved.
|
5
|
+
#
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
7
|
+
# modification, are permitted provided that the following
|
8
|
+
# conditions are met:
|
9
|
+
#
|
10
|
+
# * Redistributions of source code must retain the above copyright
|
11
|
+
# notice, this list of conditions and the following disclaimer.
|
12
|
+
#
|
13
|
+
# * Redistributions in binary form must reproduce the above copyright
|
14
|
+
# notice, this list of conditions and the following disclaimer in the
|
15
|
+
# documentation and/or other materials provided with the distribution.
|
16
|
+
#
|
17
|
+
# * Neither the name of the The National Archives nor the
|
18
|
+
# names of its contributors may be used to endorse or promote products
|
19
|
+
# derived from this software without specific prior written permission.
|
20
|
+
#
|
21
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
22
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
23
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
24
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
25
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
26
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
27
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
28
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
29
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
30
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
31
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
32
|
+
#
|
33
|
+
|
34
|
+
|
35
|
+
# DROID launch script for UNIX/Linux/Mac systems
|
36
|
+
# ==============================================
|
37
|
+
|
38
|
+
# Settings:
|
39
|
+
# =========
|
40
|
+
|
41
|
+
# Default work dir: droidUserDir
|
42
|
+
# ------------------------------
|
43
|
+
# This is where droid will place user settings
|
44
|
+
# If not set, it will default to a directory called ".droid6"
|
45
|
+
# under the user's home directory.
|
46
|
+
# It can be configured using this property, or by an environment
|
47
|
+
# variable of the same name.
|
48
|
+
droidUserDir=""
|
49
|
+
|
50
|
+
# Default work dir: droidTempDir
|
51
|
+
# ------------------------------
|
52
|
+
# This is where droid will create temporary files.
|
53
|
+
# If not set, it will default to a directory called "tmp"
|
54
|
+
# under the droid user directory.
|
55
|
+
# It can be configured using this property, or by an environment
|
56
|
+
# variable of the same name.
|
57
|
+
droidTempDir=""
|
58
|
+
|
59
|
+
# Default log dir: droidLogDir
|
60
|
+
# ----------------------------
|
61
|
+
# This is where droid will write its log files.
|
62
|
+
# If not set, it will default to a folder called "logs"
|
63
|
+
# under the droidWorkDir.
|
64
|
+
# It can be configured using this property, or by an environment
|
65
|
+
# variable of the same name.
|
66
|
+
droidLogDir=""
|
67
|
+
|
68
|
+
|
69
|
+
# Log configuration: log4j
|
70
|
+
# ------------------------
|
71
|
+
# This is the location of the lo4j configuration file to use.
|
72
|
+
# By default, it will use a file called "log4j.properties"
|
73
|
+
# which is found under the droidWorkDir.
|
74
|
+
# It can be configured using this setting, or by an environment
|
75
|
+
# variable called log4j.configuration
|
76
|
+
log4j=""
|
77
|
+
|
78
|
+
|
79
|
+
# Default console logging level
|
80
|
+
# -----------------------------
|
81
|
+
# This allows you to set the default logging level used by DROID
|
82
|
+
# when logging to the command line console. If not set,
|
83
|
+
# it defaults to INFO level logging, unless running in quiet
|
84
|
+
# mode from the command-line, in which case the log level is
|
85
|
+
# overridden to be ERROR.
|
86
|
+
logLevel=""
|
87
|
+
|
88
|
+
# Max memory: droidMemory
|
89
|
+
# -----------------------
|
90
|
+
# The maximum memory for DROID to use in megabytes.
|
91
|
+
droidMemory="512m"
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
# Run DROID:
|
96
|
+
# ==========
|
97
|
+
|
98
|
+
# Collect settings into runtime options for droid:
|
99
|
+
OPTIONS=""
|
100
|
+
|
101
|
+
# Detect if we are running on a mac or not:
|
102
|
+
os=`uname`
|
103
|
+
if [ "Darwin" = "$os" ]; then
|
104
|
+
OPTIONS=$OPTIONS" -Xdock:name=DROID"
|
105
|
+
OPTIONS=$OPTIONS" -Dcom.apple.mrj.application.growbox.intrudes=false"
|
106
|
+
OPTIONS=$OPTIONS" -Dcom.apple.mrj.application.live-resize=true"
|
107
|
+
fi
|
108
|
+
|
109
|
+
# Build command line options from the settings above:
|
110
|
+
if [ -n "$droidMemory" ]; then
|
111
|
+
OPTIONS=$OPTIONS" -Xmx$droidMemory"
|
112
|
+
fi
|
113
|
+
if [ -n "$droidUserDir" ]; then
|
114
|
+
OPTIONS=$OPTIONS" -DdroidUserDir=$droidUserDir"
|
115
|
+
fi
|
116
|
+
if [ -n "$droidTempDir" ]; then
|
117
|
+
OPTIONS=$OPTIONS" -DdroidTempDir=$droidTempDir"
|
118
|
+
fi
|
119
|
+
if [ -n "$droidLogDir" ]; then
|
120
|
+
OPTIONS=$OPTIONS" -DdroidLogDir=$droidLogDir"
|
121
|
+
fi
|
122
|
+
if [ -n "$log4j" ]; then
|
123
|
+
OPTIONS=$OPTIONS" -Dlog4j.configuration=$log4j"
|
124
|
+
fi
|
125
|
+
if [ -n "$logLevel" ]; then
|
126
|
+
OPTIONS=$OPTIONS" -DconsoleLogThreshold=$logLevel"
|
127
|
+
fi
|
128
|
+
|
129
|
+
# echo "Running DROID with these options: $OPTIONS $@"
|
130
|
+
|
131
|
+
BASEDIR=$(dirname $0)
|
132
|
+
|
133
|
+
# Run the command line or user interface version with the options:
|
134
|
+
if [ $# -gt 0 ]; then
|
135
|
+
java $OPTIONS -jar $BASEDIR/droid-command-line-6.1.5.jar "$@"
|
136
|
+
else
|
137
|
+
java $OPTIONS -jar $BASEDIR/droid-ui-6.1.5.jar
|
138
|
+
fi
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|