libis-format 0.9.30 → 0.9.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/format/converter/image_converter.rb +2 -2
- data/lib/libis/format/office_to_pdf.rb +1 -1
- data/lib/libis/format/version.rb +1 -1
- data/spec/converter_spec.rb +43 -27
- data/spec/data/test-options.png +0 -0
- data/spec/data/test.pdf.tif +0 -0
- data/tools/droid/{DROID_SignatureFile_V82.xml → DROID_SignatureFile_V90.xml} +8202 -701
- data/tools/droid/{container-signature-20150307.xml → container-signature-20170330.xml} +3584 -2235
- data/tools/droid/droid-command-line-6.3.jar +0 -0
- data/tools/droid/droid.bat +152 -154
- data/tools/droid/droid.sh +30 -16
- data/tools/droid/lib/aspectjrt-1.8.7.jar +0 -0
- data/tools/droid/lib/aspectjweaver-1.8.7.jar +0 -0
- data/tools/droid/lib/byteseek-2.0.3.jar +0 -0
- data/tools/droid/lib/commons-codec-1.10.jar +0 -0
- data/tools/droid/lib/commons-collections-3.2.2.jar +0 -0
- data/tools/droid/lib/droid-container-6.3.jar +0 -0
- data/tools/droid/lib/droid-core-6.3.jar +0 -0
- data/tools/droid/lib/droid-core-interfaces-6.3.jar +0 -0
- data/tools/droid/lib/droid-export-6.3.jar +0 -0
- data/tools/droid/lib/droid-export-interfaces-6.3.jar +0 -0
- data/tools/droid/lib/{droid-help-6.1.5.jar → droid-help-6.3.jar} +0 -0
- data/tools/droid/lib/droid-report-6.3.jar +0 -0
- data/tools/droid/lib/droid-report-interfaces-6.3.jar +0 -0
- data/tools/droid/lib/droid-results-6.3.jar +0 -0
- data/tools/droid/lib/jwat-arc-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-archive-common-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-common-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-gzip-1.0.3.jar +0 -0
- data/tools/droid/lib/jwat-warc-1.0.2.jar +0 -0
- data/tools/droid/lib/poi-3.13.jar +0 -0
- data/tools/droid/lib/saaj-api-1.3.jar +0 -0
- data/tools/droid/lib/trove4j-3.0.3.jar +0 -0
- data/tools/fido/__init__.py +50 -0
- data/tools/fido/conf/DROID_SignatureFile-v90.xml +2 -0
- data/tools/fido/conf/{container-signature-20150307.xml → container-signature-20170330.xml} +1487 -141
- data/tools/fido/conf/format_extensions.xml +0 -14
- data/tools/fido/conf/{formats-v81.xml → formats-v90.xml} +11409 -887
- data/tools/fido/conf/{pronom-xml-v81.zip → pronom-xml-v90.zip} +0 -0
- data/tools/fido/conf/versions.xml +6 -6
- data/tools/fido/fido.py +437 -407
- data/tools/fido/package.py +96 -0
- data/tools/fido/prepare.py +217 -188
- data/tools/fido/pronomutils.py +143 -58
- data/tools/fido/toxml.py +54 -46
- data/tools/fido/update_signatures.py +139 -127
- metadata +34 -40
- data/tools/droid/droid-command-line-6.1.5.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/aspectjrt-1.7.2.jar +0 -0
- data/tools/droid/lib/aspectjweaver-1.7.2.jar +0 -0
- data/tools/droid/lib/byteseek-1.1.1.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/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-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/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/jandex-1.1.0.Final.jar +0 -0
- data/tools/droid/lib/javassist-3.18.1-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/poi-3.7.jar +0 -0
- data/tools/droid/lib/stringtemplate-3.2.jar +0 -0
- data/tools/fido/argparselocal.py +0 -2355
- data/tools/fido/conf/DROID_SignatureFile-v81.xml +0 -2
|
Binary file
|
data/tools/droid/droid.bat
CHANGED
|
@@ -1,154 +1,152 @@
|
|
|
1
|
-
@REM
|
|
2
|
-
@REM Copyright (c)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
86
|
-
REM it defaults to INFO level logging, unless running in quiet
|
|
87
|
-
REM mode from the command
|
|
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
|
|
104
|
-
SET
|
|
105
|
-
|
|
106
|
-
IF "%droidMemory%"=="" GOTO UserDir
|
|
107
|
-
SET
|
|
108
|
-
|
|
109
|
-
:UserDir
|
|
110
|
-
IF "%droidUser%"=="" GOTO TempDir
|
|
111
|
-
SET
|
|
112
|
-
|
|
113
|
-
:TempDir
|
|
114
|
-
IF "%droidTemp%"=="" GOTO LogOptions
|
|
115
|
-
SET
|
|
116
|
-
|
|
117
|
-
:LogOptions
|
|
118
|
-
IF "%droidLog%"=="" GOTO Log4JConfig
|
|
119
|
-
SET
|
|
120
|
-
|
|
121
|
-
:Log4JConfig
|
|
122
|
-
IF "%log4j%"=="" GOTO LogLevel
|
|
123
|
-
SET
|
|
124
|
-
|
|
125
|
-
:LogLevel
|
|
126
|
-
IF "%logLevel%"=="" GOTO RunDROID
|
|
127
|
-
SET
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
REM Run DROID:
|
|
131
|
-
REM ==========
|
|
132
|
-
:RunDROID
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
1
|
+
@REM
|
|
2
|
+
@REM Copyright (c) 2016, 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 DROID_OPTIONS="-Xmx512m"
|
|
105
|
+
|
|
106
|
+
IF "%droidMemory%"=="" GOTO UserDir
|
|
107
|
+
SET DROID_OPTIONS="-Xmx%droidMemory%m"
|
|
108
|
+
|
|
109
|
+
:UserDir
|
|
110
|
+
IF "%droidUser%"=="" GOTO TempDir
|
|
111
|
+
SET DROID_OPTIONS=%DROID_OPTIONS% "-DdroidUserDir=%droidUser%"
|
|
112
|
+
|
|
113
|
+
:TempDir
|
|
114
|
+
IF "%droidTemp%"=="" GOTO LogOptions
|
|
115
|
+
SET DROID_OPTIONS=%DROID_OPTIONS% "-DdroidTempDir=%droidTemp%"
|
|
116
|
+
|
|
117
|
+
:LogOptions
|
|
118
|
+
IF "%droidLog%"=="" GOTO Log4JConfig
|
|
119
|
+
SET DROID_OPTIONS=%DROID_OPTIONS% "-DdroidLogDir=%droidLog%"
|
|
120
|
+
|
|
121
|
+
:Log4JConfig
|
|
122
|
+
IF "%log4j%"=="" GOTO LogLevel
|
|
123
|
+
SET DROID_OPTIONS=%DROID_OPTIONS% "-Dlog4j.configuration=%log4j%"
|
|
124
|
+
|
|
125
|
+
:LogLevel
|
|
126
|
+
IF "%logLevel%"=="" GOTO RunDROID
|
|
127
|
+
SET DROID_OPTIONS=%DROID_OPTIONS% "-DconsoleLogThreshold=%logLevel%"
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
REM Run DROID:
|
|
131
|
+
REM ==========
|
|
132
|
+
:RunDROID
|
|
133
|
+
|
|
134
|
+
REM Infer DROID_HOME from script location
|
|
135
|
+
SET DROID_HOME=%~dp0
|
|
136
|
+
|
|
137
|
+
REM ECHO Running DROID with the following options: %DROID_OPTIONS%
|
|
138
|
+
|
|
139
|
+
REM Choose whether to run the command-line or GUI version of DROID:
|
|
140
|
+
IF "%1"=="" GOTO NOPARAM
|
|
141
|
+
|
|
142
|
+
:PARAM
|
|
143
|
+
REM Has command-line parameters -- run command-line version:
|
|
144
|
+
java %DROID_OPTIONS% -jar "%DROID_HOME%droid-command-line-6.3.jar" %*
|
|
145
|
+
|
|
146
|
+
GOTO end
|
|
147
|
+
|
|
148
|
+
:NOPARAM
|
|
149
|
+
REM No command-line parameters passed -- run GUI version:
|
|
150
|
+
start javaw %DROID_OPTIONS% -jar "%DROID_HOME%droid-ui-6.3.jar"
|
|
151
|
+
|
|
152
|
+
:END
|
data/tools/droid/droid.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c)
|
|
3
|
+
# Copyright (c) 2016, The National Archives <pronom@nationalarchives.gsi.gov.uk>
|
|
4
4
|
# All rights reserved.
|
|
5
5
|
#
|
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
# Default work dir: droidUserDir
|
|
42
42
|
# ------------------------------
|
|
43
|
-
# This is where
|
|
43
|
+
# This is where DROID will place user settings
|
|
44
44
|
# If not set, it will default to a directory called ".droid6"
|
|
45
45
|
# under the user's home directory.
|
|
46
46
|
# It can be configured using this property, or by an environment
|
|
@@ -49,7 +49,7 @@ droidUserDir=""
|
|
|
49
49
|
|
|
50
50
|
# Default work dir: droidTempDir
|
|
51
51
|
# ------------------------------
|
|
52
|
-
# This is where
|
|
52
|
+
# This is where DROID will create temporary files.
|
|
53
53
|
# If not set, it will default to a directory called "tmp"
|
|
54
54
|
# under the droid user directory.
|
|
55
55
|
# It can be configured using this property, or by an environment
|
|
@@ -58,14 +58,13 @@ droidTempDir=""
|
|
|
58
58
|
|
|
59
59
|
# Default log dir: droidLogDir
|
|
60
60
|
# ----------------------------
|
|
61
|
-
# This is where
|
|
61
|
+
# This is where DROID will write its log files.
|
|
62
62
|
# If not set, it will default to a folder called "logs"
|
|
63
63
|
# under the droidWorkDir.
|
|
64
64
|
# It can be configured using this property, or by an environment
|
|
65
65
|
# variable of the same name.
|
|
66
66
|
droidLogDir=""
|
|
67
67
|
|
|
68
|
-
|
|
69
68
|
# Log configuration: log4j
|
|
70
69
|
# ------------------------
|
|
71
70
|
# This is the location of the lo4j configuration file to use.
|
|
@@ -75,7 +74,6 @@ droidLogDir=""
|
|
|
75
74
|
# variable called log4j.configuration
|
|
76
75
|
log4j=""
|
|
77
76
|
|
|
78
|
-
|
|
79
77
|
# Default console logging level
|
|
80
78
|
# -----------------------------
|
|
81
79
|
# This allows you to set the default logging level used by DROID
|
|
@@ -91,22 +89,40 @@ logLevel=""
|
|
|
91
89
|
droidMemory="512m"
|
|
92
90
|
|
|
93
91
|
|
|
94
|
-
|
|
95
92
|
# Run DROID:
|
|
96
93
|
# ==========
|
|
97
94
|
|
|
95
|
+
# Infer DROID_HOME from script location
|
|
96
|
+
SCRIPT=$0
|
|
97
|
+
|
|
98
|
+
# Resolve absolute and relative symlinks
|
|
99
|
+
while [ -h "$SCRIPT" ]; do
|
|
100
|
+
LS=$( ls -ld "$SCRIPT" )
|
|
101
|
+
LINK=$( expr "$LS" : '.*-> \(.*\)$' )
|
|
102
|
+
if expr "$LINK" : '/.*' > /dev/null; then
|
|
103
|
+
SCRIPT="$LINK"
|
|
104
|
+
else
|
|
105
|
+
SCRIPT="$( dirname "$SCRIPT" )/$LINK"
|
|
106
|
+
fi
|
|
107
|
+
done
|
|
108
|
+
|
|
109
|
+
# Store absolute location
|
|
110
|
+
CWD=$( pwd )
|
|
111
|
+
DROID_HOME="$( cd "$(dirname "$SCRIPT" )" && pwd )"
|
|
112
|
+
cd "$CWD"
|
|
113
|
+
|
|
98
114
|
# Collect settings into runtime options for droid:
|
|
99
115
|
OPTIONS=""
|
|
100
116
|
|
|
101
|
-
# Detect if we are running on a
|
|
102
|
-
|
|
103
|
-
if [ "Darwin" = "$
|
|
117
|
+
# Detect if we are running on a Mac:
|
|
118
|
+
OS=$( uname )
|
|
119
|
+
if [ "Darwin" = "$OS" ]; then
|
|
104
120
|
OPTIONS=$OPTIONS" -Xdock:name=DROID"
|
|
105
121
|
OPTIONS=$OPTIONS" -Dcom.apple.mrj.application.growbox.intrudes=false"
|
|
106
122
|
OPTIONS=$OPTIONS" -Dcom.apple.mrj.application.live-resize=true"
|
|
107
123
|
fi
|
|
108
124
|
|
|
109
|
-
# Build command
|
|
125
|
+
# Build command-line options from the settings above:
|
|
110
126
|
if [ -n "$droidMemory" ]; then
|
|
111
127
|
OPTIONS=$OPTIONS" -Xmx$droidMemory"
|
|
112
128
|
fi
|
|
@@ -128,11 +144,9 @@ fi
|
|
|
128
144
|
|
|
129
145
|
# echo "Running DROID with these options: $OPTIONS $@"
|
|
130
146
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
# Run the command line or user interface version with the options:
|
|
147
|
+
# Run the command-line or user interface version with the options:
|
|
134
148
|
if [ $# -gt 0 ]; then
|
|
135
|
-
java $OPTIONS -jar $
|
|
149
|
+
java $OPTIONS -jar "$DROID_HOME/droid-command-line-6.3.jar" "$@"
|
|
136
150
|
else
|
|
137
|
-
java $OPTIONS -jar $
|
|
151
|
+
java $OPTIONS -jar "$DROID_HOME/droid-ui-6.3.jar"
|
|
138
152
|
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
|