avmtrf1-tools 0.38.2 → 0.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avmtrf1/check_point/session/login.rb +6 -2
- data/lib/avmtrf1/docker/image_runner.rb +2 -2
- data/lib/avmtrf1/esosti/session/login.rb +1 -1
- data/lib/avmtrf1/esosti/session/solicitacao.rb +4 -6
- data/lib/avmtrf1/forponto/parsers/espelho/summary_node.rb +3 -7
- data/lib/avmtrf1/forponto/parsers/espelho/utils.rb +1 -1
- data/lib/avmtrf1/forponto/user/day_registers.rb +1 -1
- data/lib/avmtrf1/forponto/user/month.rb +1 -1
- data/lib/avmtrf1/git/push_large/lfs_commit/cache.rb +1 -1
- data/lib/avmtrf1/git/push_large/lfs_commit/commit_changes.rb +1 -1
- data/lib/avmtrf1/git/push_large/lfs_commit/pick_source_revision.rb +1 -1
- data/lib/avmtrf1/git/push_large.rb +1 -1
- data/lib/avmtrf1/git/reference.rb +1 -3
- data/lib/avmtrf1/ini/profile.rb +3 -7
- data/lib/avmtrf1/inventario_sistemas/parser.rb +1 -3
- data/lib/avmtrf1/inventario_sistemas/site_build.rb +2 -2
- data/lib/avmtrf1/inventario_sistemas.rb +1 -3
- data/lib/avmtrf1/openvpn/config/builder.rb +2 -2
- data/lib/avmtrf1/oracle/objects/sql_builder.rb +1 -1
- data/lib/avmtrf1/red/profile.rb +1 -3
- data/lib/avmtrf1/redmine/entities/issue.rb +1 -3
- data/lib/avmtrf1/redmine/instance.rb +1 -1
- data/lib/avmtrf1/rest_provider/response.rb +2 -6
- data/lib/avmtrf1/tools/msgraph/token_retrieve.rb +1 -1
- data/lib/avmtrf1/tools/runner/forponto.rb +1 -1
- data/lib/avmtrf1/tools/runner/git/gitlab/commit_link.rb +3 -3
- data/lib/avmtrf1/tools/runner/oracle/source_get.rb +2 -6
- data/lib/avmtrf1/tools/runner/{app_src.rb → source.rb} +2 -2
- data/lib/avmtrf1/tools/version.rb +1 -1
- metadata +47 -12
- data/lib/avmtrf1/tools/runner/trf1_dspace_base0/deploy.rb +0 -18
- data/lib/avmtrf1/tools/runner/trf1_dspace_base0.rb +0 -25
- data/lib/avmtrf1/trf1_dspace_base0/deploy.rb +0 -71
- data/lib/avmtrf1/trf1_dspace_base0/instance.rb +0 -11
- data/template/avmtrf1/trf1_dspace_base0/deploy/build.properties.template +0 -186
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd64d76397e3809b07f574cdf7452b7b3140e0ab17dd70c212e19449a81668e4
|
4
|
+
data.tar.gz: 5b345d3e854d87d99e03dc662f9fa9ca5f467d5dc62974eec4f08cf86b4e1212
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b1b36a0440b0103dfacc9bafd011facceeb5e6839de3e9fb8a97ef2a22e80b150a7ca53a14388fd4a993d6f593fcd1244fbf028f654cf5a639d428d48e2b784
|
7
|
+
data.tar.gz: 487c8476da28d45658b40cdccbe8f6d645fc4347f0ad0c479c1c8c0e2d3810a5e32dacb72a1112f34e38d9d0f534410bf4a73fc08cf7bab2b0fae0ff0fbae3ae
|
@@ -30,17 +30,21 @@ module Avmtrf1
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def fill_username
|
33
|
-
|
33
|
+
element_send_keys('LoginUserPassword_auth_username', parent.username)
|
34
34
|
end
|
35
35
|
|
36
36
|
def fill_password
|
37
|
-
|
37
|
+
element_send_keys('LoginUserPassword_auth_password', parent.password)
|
38
38
|
end
|
39
39
|
|
40
40
|
def click_login_button
|
41
41
|
session.wait_for_element(id: 'UserCheck_Login_Button_span').click
|
42
42
|
end
|
43
43
|
|
44
|
+
def element_send_keys(element_id, text)
|
45
|
+
session.wait_for_click(id: element_id).send_keys(text)
|
46
|
+
end
|
47
|
+
|
44
48
|
def wait_for_result_page
|
45
49
|
session.wait.until do
|
46
50
|
element = session.find_element(id: 'usercheck_title_div')
|
@@ -26,7 +26,7 @@ module Avmtrf1
|
|
26
26
|
|
27
27
|
def default_versions
|
28
28
|
::EacConfig::Node.context.current.entry(default_versions_config_key).value.split(',')
|
29
|
-
|
29
|
+
.map(&:strip).reject(&:blank?)
|
30
30
|
end
|
31
31
|
|
32
32
|
def versions_to_s
|
@@ -53,7 +53,7 @@ module Avmtrf1
|
|
53
53
|
|
54
54
|
def registry_name
|
55
55
|
parsed.registry_name || ::EacConfig::Node.context.current.entry('docker.registry.name')
|
56
|
-
|
56
|
+
.value
|
57
57
|
end
|
58
58
|
|
59
59
|
def registry_uncached
|
@@ -57,12 +57,10 @@ module Avmtrf1
|
|
57
57
|
|
58
58
|
def click_on_first_result
|
59
59
|
session.wait.until do
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
false
|
65
|
-
end
|
60
|
+
first_result.click
|
61
|
+
true
|
62
|
+
rescue Selenium::WebDriver::Error::ElementClickInterceptedError
|
63
|
+
false
|
66
64
|
end
|
67
65
|
end
|
68
66
|
|
@@ -13,20 +13,16 @@ module Avmtrf1
|
|
13
13
|
|
14
14
|
FIELDS = %w[code description time minutes].freeze
|
15
15
|
|
16
|
-
|
17
|
-
code_description_parsed.code
|
18
|
-
end
|
16
|
+
delegate :code, to: :code_description_parsed
|
19
17
|
|
20
|
-
|
21
|
-
code_description_parsed.description
|
22
|
-
end
|
18
|
+
delegate :description, to: :code_description_parsed
|
23
19
|
|
24
20
|
def time
|
25
21
|
column_text('20%')
|
26
22
|
end
|
27
23
|
|
28
24
|
def minutes
|
29
|
-
return nil
|
25
|
+
return nil if time.blank?
|
30
26
|
|
31
27
|
m = /\A(\d+):(\d+)\z/.match(time)
|
32
28
|
raise "\"#{time}\" does not match time pattern" unless m
|
@@ -13,7 +13,7 @@ module Avmtrf1
|
|
13
13
|
|
14
14
|
def cherry_pick_source_revision_uncached
|
15
15
|
checkout_base
|
16
|
-
return
|
16
|
+
return if previous_revision.blank?
|
17
17
|
|
18
18
|
infom message("Cherry pick #{source_commit.sha1}")
|
19
19
|
result = git.execute('cherry-pick', '--allow-empty', '--allow-empty-message',
|
data/lib/avmtrf1/ini/profile.rb
CHANGED
@@ -17,17 +17,13 @@ module Avmtrf1
|
|
17
17
|
@self_data = self_data
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
data[key]
|
22
|
-
end
|
20
|
+
delegate :[], to: :data
|
23
21
|
|
24
|
-
|
25
|
-
data.fetch(key)
|
26
|
-
end
|
22
|
+
delegate :fetch, to: :data
|
27
23
|
|
28
24
|
def to_h(prefix = '')
|
29
25
|
data.select { |k, _v| k.start_with?(prefix) }
|
30
|
-
|
26
|
+
.map { |e| [e[0].gsub(/\A#{Regexp.quote(prefix)}/, ''), e[1]] }.to_h
|
31
27
|
end
|
32
28
|
|
33
29
|
private
|
@@ -43,8 +43,8 @@ module Avmtrf1
|
|
43
43
|
|
44
44
|
def sistemas_uncached
|
45
45
|
parser.body_rows
|
46
|
-
|
47
|
-
|
46
|
+
.map { |body_row| new_sistema(body_row) }
|
47
|
+
.sort_by { |sistema| [sistema.title.downcase] }
|
48
48
|
end
|
49
49
|
|
50
50
|
def indexed_columns_uncached
|
@@ -27,8 +27,8 @@ module Avmtrf1
|
|
27
27
|
|
28
28
|
def simple
|
29
29
|
source_data.fetch(:simple)
|
30
|
-
|
31
|
-
|
30
|
+
.map { |s| ::Shellwords.join([s.fetch(:attribute)] + s.fetch(:args)) }
|
31
|
+
.map { |s| "#{s}\n" }.join
|
32
32
|
end
|
33
33
|
|
34
34
|
def simple_add_or_update(name, args)
|
data/lib/avmtrf1/red/profile.rb
CHANGED
@@ -23,9 +23,7 @@ module Avmtrf1
|
|
23
23
|
body_data
|
24
24
|
end
|
25
25
|
|
26
|
-
|
27
|
-
performed_curl.body_str
|
28
|
-
end
|
26
|
+
delegate :body_str, to: :performed_curl
|
29
27
|
|
30
28
|
def body_str_or_raise
|
31
29
|
raise_unless_200
|
@@ -43,9 +41,7 @@ module Avmtrf1
|
|
43
41
|
performed_curl.status.to_i
|
44
42
|
end
|
45
43
|
|
46
|
-
|
47
|
-
curl.url
|
48
|
-
end
|
44
|
+
delegate :url, to: :curl
|
49
45
|
|
50
46
|
def to_s
|
51
47
|
"URL: #{url}\nStatus: #{status}\nBody:\n\n#{body_str}"
|
@@ -46,7 +46,7 @@ module Avmtrf1
|
|
46
46
|
|
47
47
|
def value_by_entry(name, read_options)
|
48
48
|
::EacConfig::Node.context.current.entry("trf1.forponto.#{name}", read_options)
|
49
|
-
|
49
|
+
.send(read_options[:noecho] ? :secret_value : :value)
|
50
50
|
end
|
51
51
|
|
52
52
|
def user_uncached
|
@@ -37,7 +37,7 @@ module Avmtrf1
|
|
37
37
|
|
38
38
|
def commits_uncached
|
39
39
|
parsed.revisions.if_present(['HEAD'])
|
40
|
-
|
40
|
+
.map { |source| ::Avmtrf1::Gitlab::Commit.new(repository, git_repo, source) }
|
41
41
|
end
|
42
42
|
|
43
43
|
def commit_banner(commit)
|
@@ -70,8 +70,8 @@ module Avmtrf1
|
|
70
70
|
|
71
71
|
def repository_uncached
|
72
72
|
git_repo.remotes.lazy
|
73
|
-
|
74
|
-
|
73
|
+
.map { |r| ::Avmtrf1::Gitlab::Repository.by_uri(r.url) }
|
74
|
+
.find(&:present?) || raise('Gitlab remote not found')
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/tools/runner/
|
3
|
+
require 'avm/tools/runner/source'
|
4
4
|
require 'avmtrf1/tools/core_ext'
|
5
5
|
|
6
6
|
module Avmtrf1
|
7
7
|
module Tools
|
8
8
|
class Runner
|
9
|
-
class
|
9
|
+
class Source < ::Avm::Tools::Runner::Source
|
10
10
|
require_sub __FILE__
|
11
11
|
end
|
12
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avmtrf1-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo H. Bogoni
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-selenium
|
@@ -30,20 +30,60 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.2.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: avm-eac_webapp_base0
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.3'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.3.1
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.3'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.3.1
|
33
53
|
- !ruby/object:Gem::Dependency
|
34
54
|
name: avm-tools
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
36
56
|
requirements:
|
37
57
|
- - "~>"
|
38
58
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
59
|
+
version: '0.131'
|
40
60
|
type: :runtime
|
41
61
|
prerelease: false
|
42
62
|
version_requirements: !ruby/object:Gem::Requirement
|
43
63
|
requirements:
|
44
64
|
- - "~>"
|
45
65
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
66
|
+
version: '0.131'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: eac_rest
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.6'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.6.1
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.6'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 0.6.1
|
47
87
|
- !ruby/object:Gem::Dependency
|
48
88
|
name: inifile
|
49
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,14 +164,14 @@ dependencies:
|
|
124
164
|
requirements:
|
125
165
|
- - "~>"
|
126
166
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
167
|
+
version: 0.5.1
|
128
168
|
type: :development
|
129
169
|
prerelease: false
|
130
170
|
version_requirements: !ruby/object:Gem::Requirement
|
131
171
|
requirements:
|
132
172
|
- - "~>"
|
133
173
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
174
|
+
version: 0.5.1
|
135
175
|
description:
|
136
176
|
email:
|
137
177
|
executables:
|
@@ -287,7 +327,6 @@ files:
|
|
287
327
|
- lib/avmtrf1/tools/msgraph.rb
|
288
328
|
- lib/avmtrf1/tools/msgraph/token_retrieve.rb
|
289
329
|
- lib/avmtrf1/tools/runner.rb
|
290
|
-
- lib/avmtrf1/tools/runner/app_src.rb
|
291
330
|
- lib/avmtrf1/tools/runner/check_point.rb
|
292
331
|
- lib/avmtrf1/tools/runner/check_point/login.rb
|
293
332
|
- lib/avmtrf1/tools/runner/esosti.rb
|
@@ -317,11 +356,8 @@ files:
|
|
317
356
|
- lib/avmtrf1/tools/runner/php.rb
|
318
357
|
- lib/avmtrf1/tools/runner/php/docker.rb
|
319
358
|
- lib/avmtrf1/tools/runner/red.rb
|
320
|
-
- lib/avmtrf1/tools/runner/
|
321
|
-
- lib/avmtrf1/tools/runner/trf1_dspace_base0/deploy.rb
|
359
|
+
- lib/avmtrf1/tools/runner/source.rb
|
322
360
|
- lib/avmtrf1/tools/version.rb
|
323
|
-
- lib/avmtrf1/trf1_dspace_base0/deploy.rb
|
324
|
-
- lib/avmtrf1/trf1_dspace_base0/instance.rb
|
325
361
|
- template/avmtrf1/node_js/docker_image/Dockerfile.template
|
326
362
|
- template/avmtrf1/node_js/docker_image/auxiliary/config_banner.sh
|
327
363
|
- template/avmtrf1/node_js/docker_image/auxiliary/init.sh
|
@@ -343,7 +379,6 @@ files:
|
|
343
379
|
- template/avmtrf1/php/docker_image/aux/start.sh
|
344
380
|
- template/avmtrf1/php/docker_image/aux/templates/apache_site.conf
|
345
381
|
- template/avmtrf1/tools/msgraph/token_retrieve/python_retriever.py
|
346
|
-
- template/avmtrf1/trf1_dspace_base0/deploy/build.properties.template
|
347
382
|
homepage: http://redmine.trf1.gov.br/projects/avm-trf1
|
348
383
|
licenses: []
|
349
384
|
metadata: {}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avmtrf1/trf1_dspace_base0/deploy'
|
4
|
-
require 'avm/eac_webapp_base0/runner/deploy'
|
5
|
-
|
6
|
-
module Avmtrf1
|
7
|
-
module Tools
|
8
|
-
class Runner
|
9
|
-
class Trf1DspaceBase0
|
10
|
-
class Deploy < ::Avm::EacWebappBase0::Runner::Deploy
|
11
|
-
def stereotype_module
|
12
|
-
::Avmtrf1::Trf1DspaceBase0
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avmtrf1/tools/core_ext'
|
4
|
-
require 'avmtrf1/trf1_dspace_base0/instance'
|
5
|
-
|
6
|
-
module Avmtrf1
|
7
|
-
module Tools
|
8
|
-
class Runner
|
9
|
-
class Trf1DspaceBase0
|
10
|
-
require_sub __FILE__
|
11
|
-
runner_with :help, :subcommands do
|
12
|
-
desc 'Utilities for Trf1DspaceBase0 instances.'
|
13
|
-
pos_arg :instance_id
|
14
|
-
subcommands
|
15
|
-
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
def instance_uncached
|
20
|
-
::Avmtrf1::Trf1DspaceBase0::Instance.by_id(parsed.instance_id)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_webapp_base0/deploy'
|
4
|
-
require 'avm/eac_webapp_base0/deploy/file_unit' # To be fixed in gem "avm-tools"
|
5
|
-
|
6
|
-
module Avmtrf1
|
7
|
-
module Trf1DspaceBase0
|
8
|
-
class Deploy < ::Avm::EacWebappBase0::Deploy
|
9
|
-
set_callback :assert_instance_branch, :after do
|
10
|
-
mvn_package
|
11
|
-
ant_update
|
12
|
-
link_apps_to_tomcat
|
13
|
-
restart_tomcat
|
14
|
-
end
|
15
|
-
|
16
|
-
def mvn_package
|
17
|
-
infom 'Executando "mvn package"...'
|
18
|
-
command('mvn', '-Ddb.name=oracle', '-U', 'package').system!
|
19
|
-
end
|
20
|
-
|
21
|
-
def ant_update
|
22
|
-
infom 'Executando "ant update"...'
|
23
|
-
command('ant', 'update').chdir(
|
24
|
-
fs_path.join('dspace', 'target', 'dspace-installer')
|
25
|
-
).system!
|
26
|
-
end
|
27
|
-
|
28
|
-
def link_apps_to_tomcat
|
29
|
-
{ 'jspui' => 'dspace', 'solr' => 'solr', 'xmlui' => 'xmlui' }.each do |app, context|
|
30
|
-
link_app_to_tomcat(app, context)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def restart_tomcat
|
35
|
-
infom 'Parando Tomcat...'
|
36
|
-
%w[shutdown startup].each do |script|
|
37
|
-
infom "Executando Tomcat:\"#{script}\".."
|
38
|
-
command(tomcat_fs_path.join('bin', "#{script}.sh")).system!
|
39
|
-
end
|
40
|
-
infom 'Esperando 15 segundos pelo Tomcat...'
|
41
|
-
sleep(15.seconds)
|
42
|
-
end
|
43
|
-
|
44
|
-
private
|
45
|
-
|
46
|
-
def command(*args)
|
47
|
-
instance.host_env.command(*args).chdir(fs_path)
|
48
|
-
end
|
49
|
-
|
50
|
-
def fs_path
|
51
|
-
::Pathname.new(instance.read_entry('fs_path'))
|
52
|
-
end
|
53
|
-
|
54
|
-
def install_fs_path
|
55
|
-
::Pathname.new(instance.read_entry('install_fs_path'))
|
56
|
-
end
|
57
|
-
|
58
|
-
def tomcat_fs_path
|
59
|
-
::Pathname.new(instance.read_entry('tomcat_fs_path'))
|
60
|
-
end
|
61
|
-
|
62
|
-
def link_app_to_tomcat(app, context)
|
63
|
-
infom "Ligando aplicação \"#{app}\" => \"#{context}\" ao tomcat..."
|
64
|
-
source_path = install_fs_path.join('webapps', app)
|
65
|
-
target_path = tomcat_fs_path.join('webapps', context)
|
66
|
-
command('rm', '-f', target_path).system!
|
67
|
-
command('ln', '-s', source_path, target_path).system!
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
@@ -1,186 +0,0 @@
|
|
1
|
-
# DSpace build.properties
|
2
|
-
# This file should be customised to suit your build environment.
|
3
|
-
# Note that not all configuration is handled here, only the most common
|
4
|
-
# properties that tend to differ between build environments.
|
5
|
-
# For adjusting global settings or more complex settings, edit the relevant config file.
|
6
|
-
#
|
7
|
-
# IMPORTANT: Do not remove or comment out settings in build.properties
|
8
|
-
# When you edit the "build.properties" file (or a custom *.properties file),
|
9
|
-
# take care not to remove or comment out any settings. Doing so, may cause
|
10
|
-
# your final "dspace.cfg" file to be misconfigured with regards to that
|
11
|
-
# particular setting. Instead, if you wish to remove/disable a particular
|
12
|
-
# setting, just clear out its value. For example, if you don't want to be
|
13
|
-
# notified of new user registrations, ensure the "mail.registration.notify"
|
14
|
-
# setting has no value, e.g. "mail.registration.notify="
|
15
|
-
#
|
16
|
-
|
17
|
-
##########################
|
18
|
-
# SERVER CONFIGURATION ##
|
19
|
-
##########################
|
20
|
-
|
21
|
-
# DSpace installation directory. This is the location where you want
|
22
|
-
# to install DSpace. NOTE: this value will be copied over to the
|
23
|
-
# "dspace.dir" setting in the final "dspace.cfg" file. It can be
|
24
|
-
# modified later on in your "dspace.cfg", if needed.
|
25
|
-
#dspace.install.dir=/dspace
|
26
|
-
dspace.install.dir=%%INSTALL_FS_PATH%%
|
27
|
-
|
28
|
-
# DSpace host name - should match base URL. Do not include port number
|
29
|
-
dspace.hostname = localhost
|
30
|
-
|
31
|
-
# DSpace base host URL. Include port number etc.
|
32
|
-
dspace.baseUrl = %%WEB.SCHEME%%://%%WEB.HOSTNAME%%:%%WEB.PORT%%
|
33
|
-
|
34
|
-
# The user interface you will be using for DSpace. Common usage is either xmlui or jspui
|
35
|
-
dspace.ui = jspui
|
36
|
-
|
37
|
-
# Full link your end users will use to access DSpace. In most cases, this will be the baseurl followed by
|
38
|
-
# the context path to the UI you are using.
|
39
|
-
#
|
40
|
-
# Alternatively, you can use a url redirect or deploy the web application under the servlet container root.
|
41
|
-
# In this case, make sure to remove the /${dspace.ui} from the dspace.url property.
|
42
|
-
dspace.url = ${dspace.baseUrl}/${dspace.ui}
|
43
|
-
|
44
|
-
# Name of the site
|
45
|
-
dspace.name = BDTRF1 - Biblioteca Digital do TRF1 da 1\u00aa Regi\u00e3o
|
46
|
-
|
47
|
-
# Solr server
|
48
|
-
solr.server=%%WEB.SCHEME%%://%%WEB.HOSTNAME%%:%%WEB.PORT%%/solr
|
49
|
-
|
50
|
-
# Default language for metadata values
|
51
|
-
default.language = pt_BR
|
52
|
-
|
53
|
-
##########################
|
54
|
-
# DATABASE CONFIGURATION #
|
55
|
-
##########################
|
56
|
-
|
57
|
-
# Uncomment the appropriate block below for your database.
|
58
|
-
# postgres
|
59
|
-
#db.driver=org.postgresql.Driver
|
60
|
-
#db.url=jdbc:postgresql://localhost:5432/dspace
|
61
|
-
#db.username=dspace
|
62
|
-
#db.password=dspace
|
63
|
-
|
64
|
-
# oracle
|
65
|
-
db.driver= oracle.jdbc.OracleDriver
|
66
|
-
#PRD
|
67
|
-
#db.url = jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = srvbdrac2-scan-trf1.trf1.gov.br)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME=dspace)))
|
68
|
-
#dsv
|
69
|
-
# URL for connecting to database
|
70
|
-
db.url = jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = %%DATABASE.HOSTNAME%%)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME=%%DATABASE.SERVICE_NAME%%)))
|
71
|
-
|
72
|
-
|
73
|
-
# Database username and password
|
74
|
-
db.username = %%DATABASE.USERNAME%%
|
75
|
-
db.password = %%DATABASE.PASSWORD%%
|
76
|
-
|
77
|
-
#db.url=jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.221.1.200)(PORT = 5500)) (CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME=orcl)))
|
78
|
-
#db.url=jdbc:oracle:thin:@10.221.1.200:5500/orcl
|
79
|
-
#db.url=jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL=TCP)(HOST=10.221.1.141)(PORT=1521)))(CONNECT_DATA=(SID=xe)(SERVER=DEDICATED)))
|
80
|
-
|
81
|
-
#db.username=dspace
|
82
|
-
#db.password=dspace
|
83
|
-
|
84
|
-
# Schema name - if your database contains multiple schemas, you can avoid
|
85
|
-
# problems with retrieving the definitions of duplicate object names by
|
86
|
-
# specifying the schema name that is used for DSpace.
|
87
|
-
# ORACLE USAGE NOTE: In Oracle, schema is equivalent to "username". This means
|
88
|
-
# specifying a "db.schema" is often unnecessary (i.e. you can leave it blank),
|
89
|
-
# UNLESS your Oracle DB Account (in db.username) has access to multiple schemas.
|
90
|
-
db.schema =
|
91
|
-
|
92
|
-
# Maximum number of DB connections in pool
|
93
|
-
db.maxconnections = 30
|
94
|
-
|
95
|
-
# Maximum time to wait before giving up if all connections in pool are busy (milliseconds)
|
96
|
-
db.maxwait = 5000
|
97
|
-
|
98
|
-
# Maximum number of idle connections in pool (-1 = unlimited)
|
99
|
-
db.maxidle = -1
|
100
|
-
|
101
|
-
# Determine if prepared statement should be cached. (default is true)
|
102
|
-
db.statementpool = true
|
103
|
-
|
104
|
-
# Specify a name for the connection pool (useful if you have multiple applications sharing Tomcat's dbcp)
|
105
|
-
# If not specified, defaults to 'dspacepool'
|
106
|
-
db.poolname = dspacepool
|
107
|
-
|
108
|
-
#######################
|
109
|
-
# EMAIL CONFIGURATION #
|
110
|
-
#######################
|
111
|
-
|
112
|
-
# SMTP mail server
|
113
|
-
mail.server = smtp.example.com
|
114
|
-
|
115
|
-
# SMTP mail server authentication username and password (if required)
|
116
|
-
# mail.server.username = myusername
|
117
|
-
# mail.server.password = mypassword
|
118
|
-
mail.server.username=
|
119
|
-
mail.server.password=
|
120
|
-
|
121
|
-
# SMTP mail server alternate port (defaults to 25)
|
122
|
-
mail.server.port = 25
|
123
|
-
|
124
|
-
# From address for mail
|
125
|
-
mail.from.address = dspace-noreply@myu.edu
|
126
|
-
|
127
|
-
# Currently limited to one recipient!
|
128
|
-
mail.feedback.recipient = dspace-help@myu.edu
|
129
|
-
|
130
|
-
# General site administration (Webmaster) e-mail
|
131
|
-
mail.admin = serau@trf1.jus.br
|
132
|
-
|
133
|
-
# Recipient for server errors and alerts
|
134
|
-
#mail.alert.recipient = email-address-here
|
135
|
-
mail.alert.recipient=
|
136
|
-
|
137
|
-
# Recipient for new user registration emails
|
138
|
-
#mail.registration.notify = email-address-here
|
139
|
-
mail.registration.notify=
|
140
|
-
|
141
|
-
|
142
|
-
########################
|
143
|
-
# HANDLE CONFIGURATION #
|
144
|
-
########################
|
145
|
-
|
146
|
-
# Canonical Handle URL prefix
|
147
|
-
#
|
148
|
-
# By default, DSpace is configured to use http://hdl.handle.net/
|
149
|
-
# as the canonical URL prefix when generating dc.identifier.uri
|
150
|
-
# during submission, and in the 'identifier' displayed in JSPUI
|
151
|
-
# item record pages.
|
152
|
-
#
|
153
|
-
# If you do not subscribe to CNRI's handle service, you can change this
|
154
|
-
# to match the persistent URL service you use, or you can force DSpace
|
155
|
-
# to use your site's URL, eg.
|
156
|
-
#handle.canonical.prefix = ${dspace.url}/handle/
|
157
|
-
#
|
158
|
-
# Note that this will not alter dc.identifer.uri metadata for existing
|
159
|
-
# items (only for subsequent submissions), but it will alter the URL
|
160
|
-
# in JSPUI's 'identifier' message on item record pages for existing items.
|
161
|
-
#
|
162
|
-
# If omitted, the canonical URL prefix will be http://hdl.handle.net/
|
163
|
-
handle.canonical.prefix = http://www.trf1.jus.br/dspace/handle/
|
164
|
-
|
165
|
-
# CNRI Handle prefix
|
166
|
-
handle.prefix = 123
|
167
|
-
|
168
|
-
#######################
|
169
|
-
# PROXY CONFIGURATION #
|
170
|
-
#######################
|
171
|
-
# uncomment and specify both properties if proxy server required
|
172
|
-
# proxy server for external http requests - use regular hostname without port number
|
173
|
-
http.proxy.host =
|
174
|
-
|
175
|
-
# port number of proxy server
|
176
|
-
http.proxy.port =
|
177
|
-
|
178
|
-
#####################
|
179
|
-
# LOGLEVEL SETTINGS #
|
180
|
-
#####################
|
181
|
-
loglevel.other = INFO
|
182
|
-
# loglevel.other: Log level for other third-party tools/APIs used by DSpace
|
183
|
-
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|
184
|
-
loglevel.dspace = INFO
|
185
|
-
# loglevel.dspace: Log level for all DSpace-specific code (org.dspace.*)
|
186
|
-
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
|