ucb_deployer 0.1.11 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -18,6 +18,7 @@ spec/fixtures/confluence/web.xml
18
18
  spec/fixtures/jira/bad_deploy.yml
19
19
  spec/fixtures/jira/deploy.yml
20
20
  spec/fixtures/jira/entityengine.xml
21
+ spec/fixtures/jira/jira-application.properties
21
22
  spec/fixtures/jira/seraph-config.xml
22
23
  spec/fixtures/jira/web.xml
23
24
  spec/spec_helper.rb
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'echoe'
4
4
  require 'spec/rake/spectask'
5
5
 
6
6
 
7
- Echoe.new('ucb_deployer', '0.1.11') do |p|
7
+ Echoe.new('ucb_deployer', '0.2.0') do |p|
8
8
  p.description = "Tool for deploying Confluence/JIRA war files to tomcat"
9
9
  p.url = "http://ucbrb.rubyforge.org"
10
10
  p.author = "Steven Hansen"
@@ -22,7 +22,8 @@ module UcbDeployer
22
22
  def configure()
23
23
  config_web_xml()
24
24
  config_seraph_config_xml()
25
- config_entityengine_xml()
25
+ config_entityengine_xml()
26
+ config_jira_application_properties()
26
27
  reshuffle_jars()
27
28
  end
28
29
 
@@ -70,6 +71,13 @@ module UcbDeployer
70
71
  "#{build_dir}/src/webapp/WEB-INF/classes/seraph-config.xml"
71
72
  end
72
73
 
74
+ ##
75
+ # Shortcut to jira-application.properties file
76
+ #
77
+ def jira_application_properties()
78
+ "#{build_dir}/src/edit-webapp/WEB-INF/classes/jira-application.properties"
79
+ end
80
+
73
81
  def web_xml_token()
74
82
  "<!-- filters -->"
75
83
  end
@@ -86,6 +94,10 @@ module UcbDeployer
86
94
  "schema-name=\"PUBLIC\""
87
95
  end
88
96
 
97
+ def jira_home_token()
98
+ "jira.home ="
99
+ end
100
+
89
101
  def seraph_config_xml_logout_url_token()
90
102
  "/secure/Logout!default.jspa"
91
103
  end
@@ -182,6 +194,26 @@ module UcbDeployer
182
194
  end
183
195
  end
184
196
 
197
+ ##
198
+ # Sets the jira.home property in the file: jira-application.properties.
199
+ #
200
+ def config_jira_application_properties()
201
+ jira_props = File.readlines(self.jira_application_properties).map do |line|
202
+ if m = /(#{Regexp.quote(jira_home_token)})/.match(line)
203
+ debug(m[0])
204
+ new_str = "#{jira_home_token} #{data_dir}"
205
+ debug(new_str)
206
+ new_str
207
+ else
208
+ line
209
+ end
210
+ end
211
+
212
+ File.open(self.jira_application_properties, "w") do |io|
213
+ jira_props.each { |line| io.puts(line) }
214
+ end
215
+ end
216
+
185
217
  def reshuffle_jars()
186
218
  FileUtils.mkdir_p("#{build_dir}/src/edit-webapp/WEB-INF/lib/")
187
219
  FileUtils.cp(Dir["#{UcbDeployer::RESOURCES_DIR}/soulwing-casclient-*"],
@@ -4,4 +4,5 @@ war_name: war_name
4
4
  svn_username: runner
5
5
  svn_project_url: svn.berkeley.edu/svn/ist-svn/berkeley/projects/ist/as/webapps/jira_archives/tags
6
6
  cas_server_url: https://auth.berkeley.edu/cas
7
- cas_service_url: https://wikihub.berkeley.edu
7
+ cas_service_url: https://wikihub.berkeley.edu
8
+ data_dir: /path/to/data_dir
@@ -0,0 +1,881 @@
1
+ ########################################################################################################################
2
+ #
3
+ # JIRA HOME
4
+ #
5
+ ########################################################################################################################
6
+ #
7
+ # The jira.home property must be set before you start JIRA. It specifies the directory in which JIRA will store its data files.
8
+ #
9
+ # This must be set to an absolute path. Relative paths are not allowed.
10
+ #
11
+ # Ensure that only one JIRA instance uses the specified JIRA Home.
12
+ #
13
+ # NOTE: If you are using Windows, you will need to use double \ characters, for example c:\jira\home should be written
14
+ # as c:\\jira\\home
15
+ #
16
+ # You can also use Unix-like paths which Java/JIRA can handle, eg c:/jira/home
17
+ #
18
+ jira.home =
19
+
20
+ ########################################################################################################################
21
+ #
22
+ # JIRA SECURITY SETTINGS
23
+ #
24
+ ########################################################################################################################
25
+
26
+ #-----------------------------------------------------------------------------------------------------------------------
27
+ #
28
+ # This property controls whether XSRF security token protection is enabled in JIRA
29
+ #
30
+ # (See http://en.wikipedia.org/wiki/Cross-site_request_forgery for more general information about this type of web attack vector.)
31
+ #
32
+ # This setting is ON by default in JIRA and is only shown here as an example. We recommend that you NEVER set this to 'false'.
33
+ #
34
+ #jira.xsrf.enabled=true
35
+
36
+ #-----------------------------------------------------------------------------------------------------------------------
37
+ #
38
+ # This property controls whether to show the 'Remember my login on this computer' checkbox on login.
39
+ # Storing cookies is conceivably a security risk if users frequently share computers.
40
+ #
41
+ jira.option.allowcookies=true
42
+
43
+ #-----------------------------------------------------------------------------------------------------------------------
44
+ # Emulation of Internet Explorer MIME sniffing:
45
+ #-----------------------------------------------------------------------------------------------------------------------
46
+ #
47
+ # JIRA accepts attachments from users and as such, when showing those attachments to other users, risks a form of
48
+ # security breach known as a Cross Site Scripting (XSS) attack. Hostile users (or their compromised accounts) who can
49
+ # upload an attachment could be able to acquire access to JIRA on behalf of another user (such as an administrator)
50
+ # with a specially crafted attachment. Internet Explorer ignores the Content-Type header sent by a server
51
+ # to indicate whether or not a file is text/html (and can contain a script) and will execute script code deviously
52
+ # embedded in other file types. The default behaviour as of JIRA 3.12 is to detect when IE would do this and in those
53
+ # cases force IE to download the file (or at least to prompt the user). Firefox and Safari users are unaffected by this
54
+ # since those browsers comply with the standard regarding Content-Type headers sent by the server.
55
+ #
56
+ # Three options for attachment downloading policy are available: 'secure', 'workaround', 'insecure'
57
+ #
58
+ # 'workaround' (default) is a reasonably safe option which forces Internet Explorer to download attachments that its
59
+ # "mime sniffing" would mistakenly detect it to be an html file. In addition, actual declared html attachments are
60
+ # never displayed inline for any browser.
61
+ #
62
+ # 'secure' is a more paranoid mode which forces all attachments to be downloaded rather than displayed inline. This
63
+ # option is designed for high security requirements. Note that users who are prompted may still choose to let IE handle
64
+ # the file and may still be prey to an XSS attack.
65
+ #
66
+ # 'insecure' is an open mode which allows all attachments to be shown inline. If a user decides to add javascript to an
67
+ # attachment, this will run in the context of the application and any user who views the attachment is at risk of the
68
+ # javascript code being run in their session on their behalf. Only use this option if you know what you are doing and
69
+ # have done your own research to determine that this does not undermine your security expectations.
70
+
71
+ jira.attachment.download.mime.sniffing.workaround=workaround
72
+
73
+ #-----------------------------------------------------------------------------------------------------------------------
74
+ # Trusted Applications
75
+ #-----------------------------------------------------------------------------------------------------------------------
76
+ #
77
+ # Default URL matches (the URLs that TrustedApplications are allowed to access must START WITH the urls in the URL Match)
78
+ #
79
+ # Note: use '\n' as a delimiter between multiple urls so they appear on different lines
80
+ #
81
+ jira.trustedapps.urlmatch.default=/sr/jira.issueviews:searchrequest\n/secure/RunPortlet\n/rest\n/rpc/soap\n/plugins/servlet/streams\n/plugins/servlet/applinks
82
+
83
+ #
84
+ # Default Timeout. The TrustedApplication sends an encrypted timestamp in the request. Do not allow if the timestamp is
85
+ # greater than the timeout (in milliseconds) ago.
86
+ #
87
+ jira.trustedapps.timeout.default=10000
88
+
89
+ #
90
+ # The UserNameTransformer class name. This is useful if the external clients return user-names in mixed case
91
+ # and the JIRA internal database is all lower-case by default. This setting should only be changed under instruction
92
+ # from Atlassian support.
93
+ #
94
+ # For further info please see JRA-14414
95
+ #
96
+ # This defaults to com.atlassian.jira.security.auth.trustedapps.UserNameTransformer.LowerCase if empty or missing
97
+ #
98
+ # Possible values:
99
+ # empty (LowerCase - default)
100
+ # com.atlassian.jira.security.auth.trustedapps.UserNameTransformer.LowerCase
101
+ # com.atlassian.jira.security.auth.trustedapps.UserNameTransformer.NoOp
102
+ #
103
+ # The NoOp version will simply pass through the supplied username in whatever case it retrieves it.
104
+ #
105
+ #jira.trustedapps.user.name.transformation.policy.class=
106
+
107
+
108
+ ########################################################################################################################
109
+ #
110
+ # JIRA LOOK AND FEEL
111
+ #
112
+ ########################################################################################################################
113
+ #
114
+ # NOTE: Many of these properties can also be changed via the Administration interface.
115
+ # See the 'JIRA ADMINISTRATOR'S GUIDE' for details.
116
+ #
117
+ #-----------------------------------------------------------------------------------------------------------------------
118
+ # This property specifies an 'Announcement Banner' to display at the top of all pages. It can contain HTML tags.
119
+ #
120
+ # jira.alertheader =
121
+
122
+ # This property sets the visibility of the Announcement Banner.
123
+ # Values are: 'public' (show to anyone) or 'private' (show to logged-in users only)
124
+ #
125
+ jira.alertheader.visibility=private
126
+
127
+ #-----------------------------------------------------------------------------------------------------------------------
128
+ # This property specifies the name that will be displayed on the JIRA login page and the dashboard.
129
+ #
130
+ jira.title = JIRA
131
+
132
+ #-----------------------------------------------------------------------------------------------------------------------
133
+ # These properties control the global 'Logo' image which is displayed on every page in JIRA:
134
+ #
135
+ jira.lf.logo.url = /images/jira111x30.png
136
+ jira.lf.logo.width = 111
137
+ jira.lf.logo.height = 30
138
+
139
+ # This property applies to project logos ('Avatars').
140
+ # It specifies the maximum size of images that the Avatar Picker can handle,
141
+ # in MegaPixels (where one megapixel is one million pixels)
142
+ #
143
+ jira.avatar.megapixels=10
144
+
145
+ #
146
+ # JIRA displays error messages about unsupported browsers.
147
+ # If you want to suppress these warnings set the value to true
148
+ jira.browser.unsupported.warnings.disabled=false
149
+
150
+ #-----------------------------------------------------------------------------------------------------------------------
151
+ # This id is used to scope CSS selectors for javascript controls:
152
+ #
153
+ jira.lf.application.id = jira
154
+
155
+ #-----------------------------------------------------------------------------------------------------------------------
156
+ # Colors
157
+ #-----------------------------------------------------------------------------------------------------------------------
158
+ #
159
+ # These are the background and foreground colors of the top half of the header banner:
160
+ #
161
+ jira.lf.top.bgcolour = #114070
162
+ jira.lf.top.textcolour = #ffffff
163
+
164
+ # These are the background and foreground highlight colors of the top half of the header banner:
165
+ #
166
+ jira.lf.top.hilightcolour = #325c82
167
+ jira.lf.top.texthilightcolour = #f0f0f0
168
+
169
+ # This is the color of the menu separator, a small line between the top and bottom sections of the header banner:
170
+ #
171
+ jira.lf.top.separator.bgcolor = #114070
172
+
173
+ # These are the background and foreground colors of the bottom half of the header banner (eg the menu section):
174
+ #
175
+ jira.lf.menu.bgcolour = #3c78b5
176
+ jira.lf.menu.textcolour = #ffffff
177
+ jira.lf.menu.separator = #f0f0f0
178
+
179
+ # These are the colors of hyperlinks in JIRA:
180
+ #
181
+ jira.lf.text.linkcolour = #3c78b5
182
+ jira.lf.text.activelinkcolour = #3c78b5
183
+
184
+ # This is the color of JIRA page headings:
185
+ #
186
+ jira.lf.text.headingcolour = #3c78b5
187
+
188
+ # These colors control the default values of the gadget chromes on the dashboard:
189
+ #
190
+ jira.lf.gadget.color1=#369
191
+ jira.lf.gadget.color2=#900925
192
+ jira.lf.gadget.color3=#d94625
193
+ jira.lf.gadget.color4=#346006
194
+ jira.lf.gadget.color5=#003366
195
+ jira.lf.gadget.color6=#411E66
196
+ jira.lf.gadget.color7=#bbb
197
+
198
+ #-----------------------------------------------------------------------------------------------------------------------
199
+ # Gadgets
200
+ #-----------------------------------------------------------------------------------------------------------------------
201
+ #
202
+ # This property limits the number of gadgets that may be added to a dashboard in JIRA.
203
+ # If this property is omitted, it will default to 20.
204
+ #
205
+ jira.dashboard.max.gadgets=20
206
+
207
+ # If this property is set to true, the 'Login' gadget will not be added to the dashboard for logged-out users.
208
+ # If you would like to force https only for the login screen but nowhere else in JIRA, set this property to true.
209
+ # See JRA-17727
210
+ #
211
+ jira.disable.login.gadget = false
212
+
213
+ # The default columns for the 'Voted' gadget
214
+ #
215
+ jira.table.cols.voted = issuetype, issuekey, summary, priority, status
216
+ #
217
+ # The default columns for the 'Watched' gadget
218
+ #
219
+ jira.table.cols.watched = issuetype, issuekey, summary, priority, status
220
+
221
+ # The maximum number of rows a user can display in a table gadget. A higher number my result in performance issues
222
+ #
223
+ jira.table.gadget.max.rows = 50
224
+
225
+ # The columns to view when viewing issues on the dashboard.
226
+ # The values that you can put here are valid values from IssueFieldConstants.
227
+ #
228
+ jira.table.cols.dashboard = issuetype, issuekey, summary, priority
229
+
230
+
231
+ #-----------------------------------------------------------------------------------------------------------------------
232
+ # Charts
233
+ #-----------------------------------------------------------------------------------------------------------------------
234
+ #
235
+ # These properties specify the maximum number of 'Days Previous' for which a chart can be generated for a certain time period.
236
+ # Generally this should be limited such that you can only generate about 250 datapoints. This means that the generated chart
237
+ # will have 1-2 pixel wide bars if the maxium data range is generated for a period.
238
+ #
239
+ # Please note that increasing these values can have a very large impact on performance, and will generally produce charts
240
+ # that don't show useful information.
241
+ #
242
+ # Valid periods as defined by com.atlassian.jira.charts.ChartFactory.PeriodName are:
243
+ # hourly, daily, weekly, monthly, quarterly, yearly
244
+ #
245
+ # If no mapping can be found, the default value of 1000 days will be used.
246
+ #
247
+ jira.chart.days.previous.limit.yearly=36500
248
+ jira.chart.days.previous.limit.quarterly=22500
249
+ jira.chart.days.previous.limit.monthly=7500
250
+ jira.chart.days.previous.limit.weekly=1750
251
+ jira.chart.days.previous.limit.daily=300
252
+ jira.chart.days.previous.limit.hourly=10
253
+
254
+ #-----------------------------------------------------------------------------------------------------------------------
255
+ # Project 'Summary' screen
256
+ #-----------------------------------------------------------------------------------------------------------------------
257
+ # The number of issues shown on the 'Summary' tab when browsing a project.
258
+ #
259
+ jira.project.summary.max.issues=3
260
+
261
+ #-----------------------------------------------------------------------------------------------------------------------
262
+ # Project Release Notes
263
+ #-----------------------------------------------------------------------------------------------------------------------
264
+ #
265
+ # These list the templates that can be used for generating Release Notes (ie. changelogs).
266
+ # For each template, there needs to a corresponding entry in *both* of the following properties:
267
+ #
268
+ jira.releasenotes.templatenames = Html, Text
269
+ jira.releasenotes.templates = releasenotes-html.vm, releasenotes-text.vm
270
+
271
+ # The default format for Release Notes:
272
+ #
273
+ jira.releasenotes.default = Html
274
+
275
+
276
+ #-----------------------------------------------------------------------------------------------------------------------
277
+ # 'View Issue' screen
278
+ #-----------------------------------------------------------------------------------------------------------------------
279
+ # The default order of actions (tab items like 'Comments', 'Change History' etc) on the 'View Issue' screen, by date, from top to bottom
280
+ # Possible values are: asc desc
281
+ #
282
+ jira.issue.actions.order=asc
283
+
284
+ # Specifies the sort order of the issue links on the 'View Issue' screen.
285
+ # The value is a comma-separated list which can contain 'key', 'type', 'status', 'priority' or 'resolution'
286
+ #
287
+ jira.view.issue.links.sort.order = type, status, priority
288
+
289
+ # The width of field labels on the 'View Issue' screen. This must be a number and is converted into 'm'-widths on the page.
290
+ #
291
+ #jira.lf.field.label.width=11
292
+
293
+ # Uncommenting the following property (and leaving it set to true) will prevent the 'Operations' bar on the 'View Issue' page
294
+ # from tracking down the page with the user.
295
+ #
296
+ #jira.disable.operations.bar=true
297
+
298
+ # This is the default group size for the 'Operations' bar (before adding a drop-down)
299
+ #
300
+ #ops.bar.group.size = 2
301
+
302
+ # This is the size of the 'Actions' group in the 'Operations' bar:
303
+ #
304
+ #ops.bar.group.size.opsbar-operations = 2
305
+
306
+ # This is the size of the 'Workflow' group in the 'Operations' bar:
307
+ #
308
+ #ops.bar.group.size.opsbar-transitions = 2
309
+
310
+ # The columns to show when viewing issues in a table (eg. the 'Linked Issues' section on the 'View Issue' page).
311
+ # The values that you can put here are valid values from IssueFieldConstants.
312
+ #
313
+ jira.table.cols.linkedissue = issuetype, issuekey, summary, status, priority
314
+
315
+
316
+ #-----------------------------------------------------------------------------------------------------------------------
317
+ # Sub-Tasks
318
+ #-----------------------------------------------------------------------------------------------------------------------
319
+
320
+ # The columns to show when viewing sub-task issues in a table (ie. the 'Sub-Tasks' section on the 'View Issue' page).
321
+ # The values that you can put here are valid values from IssueFieldConstants.
322
+ # Note that the 'Summary' field is put in by default, as it uses a different summary field to normal.
323
+ #
324
+ jira.table.cols.subtasks = issuetype, status, assignee, progress
325
+
326
+ # This property controls whether to show the 'Subtask quick creation form' on the 'View Issue' page for issues that have no sub-tasks yet.
327
+ jira.view.issue.show.quicksubtask.when.no.subtasks=false
328
+
329
+ # This template formats the 'Subtask quick creation form' that appears on the 'View Issue' page.
330
+ # Horizontal and vertical forms are provided (vertical works better if fields need labels or use textareas)
331
+ jira.subtask.quickcreateform.template = templates/jira/issue/subtask/quickcreationform-vertical.vm
332
+ #jira.subtask.quickcreateform.template = templates/jira/issue/subtask/quickcreationform-horizontal.vm
333
+
334
+ # The fields to show on the 'Subtask quick creation form' that appears on the 'View Issue' page.
335
+ # The values must be valid issue field ids (see IssueFieldConstants class) and can contain custom fields
336
+ # The issue field id may be followed by the label text or an i18n message key for the label, separated by colon (':').
337
+ # This will be used to display the label for this field if horizontal template is selected.
338
+ # The format of the custom field is 'customfield_<id>' where <id> is the numeric id of the field in the database
339
+ # Field values may be preset, eg. 'summary,issuetype=7,assignee=-1' where only 'summary' would show.
340
+ jira.subtask.quickcreateform.fields = summary,issuetype,assignee,timetracking
341
+
342
+
343
+ #-----------------------------------------------------------------------------------------------------------------------
344
+ # Autocomplete
345
+ #-----------------------------------------------------------------------------------------------------------------------
346
+ # Specifies the number of results to display in the AJAX autocomplete pickers
347
+ jira.ajax.autocomplete.limit=20
348
+
349
+ # Specifies Whether or not the AJAX issue-picker is enabled
350
+ jira.ajax.autocomplete.issuepicker.enabled = true
351
+
352
+ # Specifies the maximum number of users that can be used with the AJAX user-picker
353
+ jira.ajax.autocomplete.userpicker.limit = 5000
354
+
355
+ # Specifies the maximum number of suggestions to show for labels. Setting this property to 0 will not impose a limit on
356
+ # suggestions at all. This may be quite slow, however.
357
+ jira.ajax.autocomplete.labelsuggestion.limit = 20
358
+
359
+
360
+ #-----------------------------------------------------------------------------------------------------------------------
361
+ # Links
362
+ #-----------------------------------------------------------------------------------------------------------------------
363
+ # These two settings control whether Trackback is enabled in JIRA.
364
+ # (Trackback is a means of telling websites that a page has been linked to.)
365
+ # By default, JIRA will receive trackbacks but not send them.
366
+ #
367
+ jira.option.trackback.send = false
368
+ jira.option.trackback.receive = true
369
+
370
+ # The prefix added to the Summary field of cloned issues:
371
+ jira.clone.prefix = CLONE -
372
+ # The type of link to create between a cloned issue and the issue from which it was cloned:
373
+ jira.clone.linktype.name = Cloners
374
+
375
+ # A prefix for the custom field that links to the old issue for imported issues (eg from Mantis/Bugzilla).
376
+ # Bugzilla example:
377
+ # jira.importid.prefix = http://localhost/bugzilla/show_bug.cgi?id=
378
+ #
379
+ # Mantis example:
380
+ # jira.importid.prefix = http://localhost/mantis/bug_view_advanced_page.php?bug_id=
381
+ #
382
+ # Commenting out this property will render the ID non-linked.
383
+ # Special (default) value 'unconfigured' notifies the admin that the property needs configuring
384
+ jira.importid.prefix = unconfigured
385
+
386
+ # Option specifying the CVS root type to pass when accessing ViewCVS
387
+ # Example ViewCVS URL: http://viewcvspath/viewcvs.cgi/path?<CVS ROOT _TYPE>=cvs_root
388
+ # Valid CVS root types are:
389
+ # 1. cvsroot
390
+ # 2. root
391
+ jira.viewcvs.root.type=cvsroot
392
+
393
+
394
+
395
+ ########################################################################################################################
396
+ #
397
+ # USER SETTINGS
398
+ #
399
+ ########################################################################################################################
400
+
401
+ # Specifies the default number of issues per Issue Navigator page. (Individual users can change this.)
402
+ user.issues.per.page=50
403
+
404
+ # Specifies whether to notify users about their own changes on watched issues. (Individual users can change this.)
405
+ user.notify.own.changes=true
406
+
407
+ # Specifies whether filters and dashboards are shared with everyone by default. (Individual users can change this.)
408
+ user.default.share.private=true
409
+
410
+ # Specifies the default value for notification mimetype preference (ie. html or text emails) in User Preferences:
411
+ user.notifications.mimetype=text
412
+
413
+ # Specifies whether to show 'Actions' and 'Operations' in the Issue Navigator
414
+ user.show.actions.in.navigator=true
415
+
416
+ # Whether the keyboard shortcuts are enabled or not
417
+ user.keyboard.shortcuts.disabled=false
418
+
419
+ # Specifies the maximum number of 'Issue History' records to keep for each user:
420
+ jira.max.Issue.history.items = 50
421
+
422
+ # Specifies the maximum number of issue entries to show in the 'Issue History' drop-down. This is actually one more than shown.
423
+ jira.max.issue.history.dropdown.items = 6
424
+
425
+ # Specifies the maximum number of filter entries to show in the 'Issue Filter' drop-down.
426
+ jira.max.issue.filter.dropdown.items = 10
427
+
428
+ # Specifies the default maximum number of history records to keep for a user.
429
+ # This is used for items we tore history for but don't specify an explicit key for in the form - jira.max.<type>.history.items
430
+ jira.max.history.items = 10
431
+
432
+ # Specifies the default maximum number of JQL queries in the history.
433
+ jira.max.JQLQuery.history.items = 10
434
+
435
+ # Specifies the default maximum number of Admin Pages in the history.
436
+ jira.max.AdminPage.history.items = 5
437
+
438
+ # Controls whether JIRA will prompt users for logout confirmation.
439
+ # Valid values are 'never' (default), 'cookie' (ie. prompt only if the user was logged in via a cookie), 'always'.
440
+ jira.option.logoutconfirm = never
441
+
442
+ # If this option is set to false, users avatars will no longer be shown anywhere in the UI. This will also disable
443
+ # the user hover.
444
+ jira.user.avatar.enabled=true
445
+
446
+ ########################################################################################################################
447
+ #
448
+ # GROUPS
449
+ #
450
+ ########################################################################################################################
451
+ #
452
+ # Controls the maximum number of users that will be displayed for a group when managing group membership in bulk.
453
+ jira.usermanagement.maxdisplaymembers = 200
454
+
455
+ # This setting applies to comment visibility. It determines whether the 'Viewable by' drop-down includes groups or only project roles.
456
+ # true = Both Groups and Project Roles are included
457
+ # false = Groups are not included
458
+ #
459
+ jira.comment.level.visibility.groups=false
460
+
461
+ # This setting applies to 'Scheme Tools', which are used for migrating users from groups to project roles.
462
+ # It determines how many schemes you can run a comparison against at one time.
463
+ # This should stay at or around 5 as the tool presents far too much information as the number goes up.
464
+ #
465
+ jira.schemes.comparison.max=5
466
+
467
+
468
+ ########################################################################################################################
469
+ #
470
+ # PROJECT KEY SETTINGS
471
+ #
472
+ ########################################################################################################################
473
+ #
474
+ # Project Key Pattern
475
+ #
476
+ # Specify the perl5 regexp for defining the project key - this regex will be prepended with "^" and closed with "$" for an exact matching rule.
477
+ # Note that the project key must only be allowed to contain ASCII characters, as it is used in HTTP GET requests. This means that
478
+ # you should not allow slashes (/) in your project keys, as they will make it impossible for JIRA to distinguish between
479
+ # project keys and unrelated URL parts. See http://jira.atlassian.com/browse/JRA-12819.
480
+ # Hyphens should also be excluded. See http://jira.atlassian.com/browse/JRA-13910 for more information.
481
+ #
482
+ # Also specify the warning and description that will be displayed to inform the user how the project key should be formed.
483
+ #
484
+ # If you wish to have alphaNumeric project keys, use the pattern: ([A-Z][A-Z0-9]+)
485
+ jira.projectkey.pattern = ([A-Z][A-Z]+)
486
+
487
+ # The 2 properties below use the i18n packages to obtain the project key warning and description
488
+ # However it is still possible change the text here. For example, the below will still work:
489
+ # jira.projectkey.warning = This is a test warning!
490
+ #
491
+ jira.projectkey.warning = admin.errors.must.specify.unique.project.key
492
+ jira.projectkey.description = admin.projects.key.description
493
+
494
+ # A space/comma separated list of reserved words that cannot be used as keywords.
495
+ # Please see JRA-8051 for more information. Generally this is a list of keywords
496
+ # that are reserved, and cannot be used for creating directories on the filesystem.
497
+ #
498
+ jira.projectkey.reservedwords.list = PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, CON, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
499
+
500
+
501
+ ########################################################################################################################
502
+ #
503
+ # ISSUE KEY SETTINGS
504
+ #
505
+ ########################################################################################################################
506
+ #
507
+ # Specifies whether a string containing URLs with a JIRA Key on the end should be considered to contain a JIRA Key.
508
+ # Set to true to ignore keys on the ends of URLs
509
+ # Set to false to include keys on the ends of URLs
510
+ jira.option.ignore.url.with.key=true
511
+
512
+ # Uncomment the following option if you'd like to revert back to the old issue key detection behaviour.
513
+ # For more info see http://jira.atlassian.com/browse/JRA-12354
514
+ #
515
+ #jira.option.key.detection.backwards.compatible=true
516
+
517
+
518
+ ########################################################################################################################
519
+ #
520
+ # TIME AND DATE SETTINGS
521
+ #
522
+ ########################################################################################################################
523
+ #
524
+ jira.lf.date.time = h:mm a
525
+ jira.lf.date.day = EEEE h:mm a
526
+ #
527
+ # These are in Java format (see http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html).
528
+ # If you specify yyyy in the format for a SimpleDateFormatter then '08' becomes '0008'. If you specify yy then '08' becomes '2008'.
529
+ # Read the SimpleDateFormat documentation for more details before changing the year field.
530
+ #
531
+ jira.lf.date.complete = dd/MMM/yy h:mm a
532
+ jira.lf.date.dmy = dd/MMM/yy
533
+ #
534
+ # This property controls whether to display dates relative to now (eg.'Today, 2:12pm'):
535
+ jira.lf.date.relativize = true
536
+
537
+ #-----------------------------------------------------------------------------------------------------------------------
538
+ #
539
+ # These two properties need to match for the date-picker to perform correctly.
540
+ # The first date is in Java format (see http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html).
541
+ # The second is in Unix format (see the FORMAT section of http://unixhelp.ed.ac.uk/CGI/man-cgi?date)
542
+ # Please note that the following options are not recognised: %c %D %E, %F, %G, %g, %h %r %R %T %x %X %z %Z - _ ^ #
543
+ #
544
+ # After editing, ensure the date-picker creates valid dates.
545
+ # We also recommend you make this format the same as Day/Month/Year Format in the JIRA administration interface.
546
+ #
547
+ # If you specify yyyy in the format for a SimpleDateFormatter then '08' becomes '0008'. If you specify yy then '08' becomes '2008'.
548
+ # Read the SimpleDateFormat documentation for more details before changing the year field.
549
+ #
550
+ jira.date.picker.java.format = d/MMM/yy
551
+ jira.date.picker.javascript.format = %e/%b/%y
552
+
553
+ #-----------------------------------------------------------------------------------------------------------------------
554
+ #
555
+ # These two properties need to match for the date-time-picker to perform correctly.
556
+ # The first date is in Java format (see http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html).
557
+ # The second in Unix format (see the FORMAT section of http://unixhelp.ed.ac.uk/CGI/man-cgi?date)
558
+ # Please note that the following options are not recognised: %c %D %E, %F, %G, %g, %h %r %R %T %x %X %z %Z - _ ^ #
559
+ #
560
+ # After editing, ensure the date-time custom field picker creates valid dates.
561
+ #
562
+ # If you specify yyyy in the format for a SimpleDateFormatter then '08' becomes '0008'. If you specify yy then '08' becomes '2008'.
563
+ # Read the SimpleDateFormat documentation for more details before changing the year field.
564
+ #
565
+ jira.date.time.picker.java.format = dd/MMM/yy h:mm a
566
+ jira.date.time.picker.javascript.format = %e/%b/%y %I:%M %p
567
+
568
+ # This property controls whether ISO8601 standard is used to render calendar days/weeks
569
+ # (see http://en.wikipedia.org/wiki/ISO_8601 for more details)
570
+ #
571
+ jira.date.time.picker.use.iso8061 = false
572
+
573
+
574
+ ########################################################################################################################
575
+ #
576
+ # TIME TRACKING
577
+ #
578
+ ########################################################################################################################
579
+ #
580
+ # These properties define your organization's number of working hours per day and working days per week.
581
+ # You can use a decimal point if you wish.
582
+ #
583
+ jira.timetracking.hours.per.day=8
584
+ jira.timetracking.days.per.week=5
585
+
586
+ #
587
+ # Valid values for format are 'pretty', 'hours', 'days':
588
+ #
589
+ jira.timetracking.format=pretty
590
+
591
+ #
592
+ # Since JIRA 4.2, Logging Work can now be done on transitions by adding the Log Work field to the transition's screen.
593
+ # However, only one input for the comment of the transition and the work description is displayed.
594
+ # If this flag is set to true, the value of that input will be used for both the transition comment (and security level)
595
+ # and the work description (and worklog security level).
596
+ # If this flag is set to false, the value of the input will only be used for the transition comment (and security level);
597
+ # the work description will contain no comment and will be visible to all.
598
+ #
599
+ jira.timetracking.copy.comment.to.work.desc.on.transition=true
600
+
601
+ #-----------------------------------------------------------------------------------------------------------------------
602
+ #
603
+ # Prior to JIRA 4.2, the 'Original Estimate' and 'Remaining Estimate' could not be edited independently and
604
+ # would synchronize values when work had not been logged.
605
+ #
606
+ # Since 4.2 the values can be independently edited and are not tied to each other in any way.
607
+ #
608
+ # This property allows you to change back to the legacy behavior:
609
+ #
610
+ jira.timetracking.estimates.legacy.behaviour=true
611
+
612
+ ########################################################################################################################
613
+ #
614
+ # ATTACHMENTS
615
+ #
616
+ ########################################################################################################################
617
+ #
618
+ # Specifies whether to show thumbnails of images attached to issues (default is 'true').
619
+ #
620
+ jira.option.allowthumbnails=true
621
+
622
+ # Thumbnail width and height params for creating thumbnails
623
+ # If you change this value, then you need to delete the thumbnails ('*_thumb_*') currently stored on disk.
624
+ #
625
+ jira.thumbnail.maxwidth=200
626
+ jira.thumbnail.maxheight=200
627
+
628
+ #
629
+ # Defines the number of zip entries to show on the view issue screen
630
+ #
631
+ jira.attachment.number.of.zip.entries=30
632
+
633
+ # JIRA can interpret ZIP files and also download all attachments as ZIP files. This may be expensive
634
+ # when it involves very large attachments or large files that do not compress well.
635
+ #
636
+ jira.attachment.allow.zip.support=true
637
+
638
+ # If you would like to disable the 'Screenshot' applet, set this property to false:
639
+ #
640
+ jira.screenshotapplet.enabled=true
641
+
642
+ # If you would like to enable the screenshot applet for linux set this property to true. Linux sceenshot support is known to be flakey.
643
+ #
644
+ jira.screenshotapplet.linux.enabled=false
645
+
646
+ #
647
+ # Defines a comma-separated list of the file extensions that JIRA won't expand as a ZIP in the view issue screen.
648
+ # By default, it includes the MS Office OpenXml extensions and OpenOffice OpenDocument extensions.
649
+ #
650
+ jira.attachment.do.not.expand.as.zip.extensions.list=docx, docm, dotx, dotm, xlsx, xlsm, xltx, xltm, xlsb, xlam, pptx, \
651
+ pptm, potx, potm, ppam, ppsx, ppsm, sldx, sldm, thmx, \
652
+ odt, odp, ods, odg, odb, odf, ott, otp, ots, otg, odm, sxw, stw, sxc, stc, sxi, sti, sxd, std, sxg
653
+
654
+
655
+ ########################################################################################################################
656
+ #
657
+ # EMAIL SETTINGS
658
+ #
659
+ ########################################################################################################################
660
+ #
661
+ # Specifies the 'From:' header format in notification emails. Default is of the form "John Doe (JIRA) <jira@company.com>".
662
+ # Available variables are ${fullname}, ${email} and ${email.hostname}
663
+ # If commented out, format is just 'jira@company.com'.
664
+ jira.email.fromheader.format = ${fullname} (JIRA)
665
+
666
+ #-----------------------------------------------------------------------------------------------------------------------
667
+ # Specifies the maximum number of issues that can be sent in an individual e-mail subscription.
668
+ # A value of -1 can be used to indicate there is no limit.
669
+ #
670
+ # WARNING: Setting to -1 can cause JIRA to run out of memory if there is a subscription with a large number of issues.
671
+ #
672
+ jira.subscription.email.max.issues=200
673
+
674
+ #-----------------------------------------------------------------------------------------------------------------------
675
+ # Specifies the encoding to use in outgoing emails
676
+ # jira.i18n.email.encoding = UTF-8
677
+
678
+ #-----------------------------------------------------------------------------------------------------------------------
679
+ # JIRA will send notification emails to both the previous assignee and the current assignee, whenever the 'Assignee' field changes.
680
+ #
681
+ # However, past versions of JIRA only sent a notification email to the previous assignee IF the operation that changed the event
682
+ # was the 'Assign Issue' operation. It did not send a notification if the issue was edited in some other way.
683
+ #
684
+ # This property allows the old behaviour to be re-instated, for those customers who liked the old behaviour.
685
+ #
686
+ # See http://jira.atlassian.com/browse/JRA-6344 for more details
687
+ #
688
+ jira.assignee.change.is.sent.to.both.parties=true
689
+
690
+ #-----------------------------------------------------------------------------------------------------------------------
691
+ # Specifies the number of recipients to send to in each email when using the 'Send Bulk Email' function in JIRA.
692
+ #
693
+ jira.sendmail.recipient.batch.size=100
694
+
695
+ #-----------------------------------------------------------------------------------------------------------------------
696
+ # Specifies how user email addresses are displayed on the 'Profile' page. The options are:
697
+ # 'show' - email addresses are visible to all users.
698
+ # 'mask' - email addresses are masked (e.g. 'user@example.com' is displayed as 'user at example dot com').
699
+ # 'hide' - email addresses are hidden from all users.
700
+ # 'logged-in' - only users logged in to JIRA can view the email addresses.
701
+ #
702
+ jira.option.emailvisible = show
703
+
704
+ #-----------------------------------------------------------------------------------------------------------------------
705
+ # Set this property to 'true' if you create issues via email and don't want to save attached email messages
706
+ # to the created JIRA issue (see JRA-15133).
707
+ #
708
+ #jira.option.ignore.email.message.attachments=false
709
+
710
+
711
+ ########################################################################################################################
712
+ #
713
+ # IMPORT/EXPORT SETTINGS
714
+ #
715
+ ########################################################################################################################
716
+
717
+ # If this property is set to 'true', JIRA will remove invalid characters during an import.
718
+ # WARNING: Don't enable under Tomcat in 3.0-beta, as it breaks things
719
+ jira.exportimport.cleanxml = true
720
+
721
+ # Thie property specifies whether whether automatic export (backup) of your JIRA issue data occurs on upgrade.
722
+ jira.autoexport=true
723
+
724
+
725
+ ########################################################################################################################
726
+ #
727
+ # SEARCHING
728
+ #
729
+ ########################################################################################################################
730
+ #
731
+ # The maximum number of results the Issue Navigator will request from a query
732
+ # - set this to zero or negative to be unrestricted (note that the server may forbid this, see below)
733
+ #
734
+ jira.search.views.default.max = 1000
735
+
736
+ # Whether search results are capped to a hard limit, otherwise return a 403 (Forbidden) to the client.
737
+ #
738
+ # Set this to negative (-1) or empty for unlimited results.
739
+ #
740
+ # NOTE: this must be EQUAL TO OR GREATER THAN jira.search.views.default.max above, otherwise all Issue Navigator links will fail with a 403
741
+ #
742
+ #jira.search.views.max.limit =
743
+
744
+ # Regardless of the above, users in this group will be able to request search requests that are unlimited.
745
+ #
746
+ # This MUST be a valid group or empty.
747
+ #
748
+ #jira.search.views.max.unlimited.group =
749
+
750
+ #-----------------------------------------------------------------------------------------------------------------------
751
+ # Option to control the maximum number of issue records that will be retrieved in one database 'OR' query
752
+ # A larger value should lead to better performance, but will consume more database resources
753
+ # Please ensure the database has enough resources to handle large 'OR' queries if you are increasing this value
754
+ jira.databasequery.batch.size = 100
755
+
756
+ # Option to set how many issues to fetch at once for re-indexing.
757
+ # This number of issues is fetched at once from the database & re-indexed.
758
+ # This option limits the amount of memory used by JIRA whilst re-indexing
759
+ jira.issueindex.fetch.size = 200
760
+
761
+ #-----------------------------------------------------------------------------------------------------------------------
762
+ #
763
+ # The maximum clause limit in Lucene.
764
+ # Set this to higher than your expected number of issues, to ensure that date-range searches across all issues will work (see JRA-3127).
765
+ jira.search.maxclauses=65000
766
+
767
+ #
768
+ # Whether to include pagebreaks between issues in the full content view.
769
+ # (Setting to 'true' may break old Mozilla-based browsers - see JRA-4226)
770
+ jira.search.fullcontentview.pagebreaks = true
771
+
772
+
773
+ #-----------------------------------------------------------------------------------------------------------------------
774
+ #
775
+ # If you want to override your jvm locale, uncomment the following line:
776
+ # jira.i18n.default.locale = en_US
777
+
778
+ # The following property specifies the locale used when sorting database results.
779
+ # Defaults to 'jira.i18n.default.locale' if not specified.
780
+ #
781
+ # There are times when JIRA has to sort database results itself instead of using the database. This setting
782
+ # controls the JIRA-side sorting. This setting should be as close as possible to the sorting locale that
783
+ # the database is using.
784
+ #
785
+ # We don't expect you to set this property unless directed to by JIRA Support.
786
+ #
787
+ # jira.i18n.sql.locale = en_US
788
+
789
+
790
+ #-----------------------------------------------------------------------------------------------------------------------
791
+ #
792
+ # This property controls the java.text.Collator that is used when JIRA does database result search itself.
793
+ #
794
+ # These string values are derived from the constants that apply to the java.text.Collator.setStrength() method. You can
795
+ # read more information about these values here at : http://java.sun.com/javase/6/docs/api/java/text/Collator.html
796
+ #
797
+ # We don't expect you to set this property unless directed to by JIRA support.
798
+ #
799
+ #jira.i18n.sql.collator.strength = PRIMARY
800
+ #jira.i18n.sql.collator.strength = SECONDARY
801
+ #jira.i18n.sql.collator.strength = TERTIARY
802
+ #jira.i18n.sql.collator.strength = IDENTICAL
803
+
804
+ #-----------------------------------------------------------------------------------------------------------------------
805
+
806
+ # Specified the 'wait time' for a file lock in the Lucene IssueIndexManager (in milliseconds)
807
+ # This value should only be modified if you are seeing a jira.issue.index.DefaultIndexManager 'Giving up reindex' ERROR
808
+ # in your log files or requested to do so by Atlassian support.
809
+ jira.index.lock.waittime=30000
810
+
811
+ # Number of issue index updates before automatic index optimization is triggered.
812
+ # A value of 0 indicates never trigger.
813
+ jira.index.max.reindexes=4000
814
+
815
+ # Number of issue indexes performed in bulk that will trigger index optimization.
816
+ # A value of 0 indicates never trigger.
817
+ jira.index.update.bulk.optimization=400
818
+
819
+ # Limits the number of issues that may be edited via a bulk operation in one go.
820
+ # This may be useful if you are experiencing performance issues due to a large number of concurrent edits of
821
+ # large number of issues. Please note that this should NOT be used to disable bulk edit operations. Use the
822
+ # Global 'Bulk Change' permission accessible via the Admin interface in JIRA to do this.
823
+ # If a user tries to edit more than the provided number of issues here, an error will be displayed.
824
+ # Set the count to a negative number (-1) or simply comment out this property for unlimited number of issues.
825
+ jira.bulk.edit.limit.issue.count = 1000
826
+
827
+
828
+ #-----------------------------------------------------------------------------------------------------------------------
829
+ # Lucene IndexWriter settings
830
+ #-----------------------------------------------------------------------------------------------------------------------
831
+
832
+ # Maximum number of Terms (words) that will be indexed for each field (eg. Issue Description or Environment).
833
+ jira.index.maxfieldlength = 10000
834
+
835
+ # Note: cannot set maxmergedocs any higher than 2147483647 as that is the MAXIMUM value for an integer
836
+
837
+ # Batch mode:
838
+ jira.index.batch.mergefactor = 50
839
+ jira.index.batch.maxmergedocs = 2147483647
840
+ jira.index.batch.maxbuffereddocs = 300
841
+
842
+ # Interactive mode:
843
+ jira.index.interactive.mergefactor = 4
844
+ jira.index.interactive.maxmergedocs = 2147483647
845
+ jira.index.interactive.maxbuffereddocs = 300
846
+
847
+
848
+ ########################################################################################################################
849
+ #
850
+ # TROUBLESHOOTING
851
+ #
852
+ ########################################################################################################################
853
+
854
+ # This property is a workaround for http://jira.atlassian.com/browse/JRA-13791. If this property is set to true,
855
+ # JIRA will only try to handle multipart POSTs. Multipart GETs will be ignored by the mulipart request handler.
856
+ # If the property is commented out or set to false, JIRA will also try to handle multipart GETs however,
857
+ # this may lead to a problem due to a bug in Safari, where a GET may be submitted with the multipart content-type
858
+ # header even though it isn't needed.
859
+ jira.disable.multipart.get.http.request=true
860
+
861
+ #-----------------------------------------------------------------------------------------------------------------------
862
+ # A counter that signifies the last time that static web resources were flushed
863
+ #
864
+ jira.webresource.flushcounter=1
865
+
866
+ # A counter that can be used to flush superbatched web-resources
867
+ #
868
+ jira.webresource.superbatch.flushcounter=1
869
+
870
+
871
+ ########################################################################################################################
872
+ #
873
+ # NOTES FOR DEVELOPERS
874
+ #
875
+ ########################################################################################################################
876
+ #
877
+ # The values in this file are not automatically handed to the application.
878
+ # The special call ApplicationProperties().getDefaultBackedString()
879
+ # will return the values in this file if they are not found in the database
880
+ #
881
+ # The keys must match up with the keys found in APKeys.java
data/spec/spec_helper.rb CHANGED
@@ -12,6 +12,8 @@ TEST_BUILD_DIR = File.expand_path(File.dirname(__FILE__) + "/build") unless defi
12
12
 
13
13
  Spec::Runner.configure do |config|
14
14
  config.before(:all) do
15
+ # puts "Running before(:all)"
16
+
15
17
  dir = TEST_BUILD_DIR
16
18
  pwd = File.expand_path(File.dirname(__FILE__))
17
19
 
@@ -42,7 +44,10 @@ Spec::Runner.configure do |config|
42
44
  "#{dir}/jira/src/webapp/WEB-INF")
43
45
  FileUtils.cp("#{pwd}/fixtures/jira/seraph-config.xml",
44
46
  "#{dir}/jira/src/webapp/WEB-INF/classes")
47
+
45
48
  FileUtils.cp("#{pwd}/fixtures/jira/entityengine.xml",
49
+ "#{dir}/jira/src/edit-webapp/WEB-INF/classes")
50
+ FileUtils.cp("#{pwd}/fixtures/jira/jira-application.properties",
46
51
  "#{dir}/jira/src/edit-webapp/WEB-INF/classes")
47
52
  end
48
53
 
@@ -1,7 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
+
3
4
  describe UcbDeployer::JiraDeployer do
4
-
5
5
  before(:each) do
6
6
  @deploy_file = File.expand_path(File.dirname(__FILE__) + '/../fixtures/jira/deploy.yml')
7
7
  @bad_deploy_file = File.expand_path(File.dirname(__FILE__) + '/../fixtures/jira/bad_deploy.yml')
@@ -12,6 +12,7 @@ describe UcbDeployer::JiraDeployer do
12
12
  "#{TEST_BUILD_DIR}/jira"
13
13
  end
14
14
 
15
+
15
16
  describe "#load_config" do
16
17
  it "should load configuration options" do
17
18
  @cdep.build_dir.should == "/path/to/build_dir/jira"
@@ -25,6 +26,7 @@ describe UcbDeployer::JiraDeployer do
25
26
  end
26
27
  end
27
28
 
29
+
28
30
  describe "#config_web_xml" do
29
31
  it "should configure souldwing (CAS auth) in web.xml" do
30
32
  @cdep.build_dir = test_build_dir
@@ -76,6 +78,21 @@ describe UcbDeployer::JiraDeployer do
76
78
  end
77
79
  end
78
80
 
81
+ describe "#config_jira_application_properties" do
82
+ it "should configure jira.home in the jira-application.properties file" do
83
+ @cdep.build_dir = test_build_dir
84
+ # just checking if spec_helper did the right
85
+ File.exists?(@cdep.jira_application_properties).should be_true
86
+
87
+ @cdep.config_jira_application_properties
88
+ File.exists?(@cdep.jira_application_properties).should be_true
89
+ lines = File.readlines(@cdep.jira_application_properties)
90
+ lines.any? { |l| l =~ /# JIRA HOME/ }.should be_true
91
+ lines.any? { |l| l =~ /# JIRA SECURITY SETTINGS/ }.should be_true
92
+ lines.any? { |l| l =~ /#{Regexp.quote(@cdep.jira_home_token + ' ' + @cdep.data_dir)}/ }.should be_true
93
+ lines.any? { |l| l =~ /# NOTES FOR DEVELOPERS/ }.should be_true
94
+ end
95
+ end
79
96
 
80
97
  describe "#reshuffle_jars" do
81
98
  it "should work" do
@@ -109,5 +126,4 @@ describe UcbDeployer::JiraDeployer do
109
126
  cdep.export()
110
127
  end
111
128
  end
112
-
113
129
  end
data/ucb_deployer.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ucb_deployer}
5
- s.version = "0.1.11"
5
+ s.version = "0.2.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steven Hansen"]
9
- s.date = %q{2010-11-18}
9
+ s.date = %q{2010-12-02}
10
10
  s.default_executable = %q{ucb_deploy}
11
11
  s.description = %q{Tool for deploying Confluence/JIRA war files to tomcat}
12
12
  s.email = %q{runner@berkeley.edu}
13
13
  s.executables = ["ucb_deploy"]
14
14
  s.extra_rdoc_files = ["README.md", "TODO.md", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb"]
15
- s.files = ["Manifest", "README.md", "Rakefile", "TODO.md", "bin/ucb_deploy", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb", "resources/confluence_cas_web.xml", "resources/jira_cas_web.xml", "resources/soulwing-casclient-0.5.3.jar", "spec/fixtures/confluence/bad_deploy.yml", "spec/fixtures/confluence/confluence-init.properties", "spec/fixtures/confluence/deploy.yml", "spec/fixtures/confluence/seraph-config.xml", "spec/fixtures/confluence/web.xml", "spec/fixtures/jira/bad_deploy.yml", "spec/fixtures/jira/deploy.yml", "spec/fixtures/jira/entityengine.xml", "spec/fixtures/jira/seraph-config.xml", "spec/fixtures/jira/web.xml", "spec/spec_helper.rb", "spec/ucb_deployer/confluence_deployer_spec.rb", "spec/ucb_deployer/jira_deployer_spec.rb", "spec/ucb_deployer/ucb_deployer_spec.rb", "ucb_deployer.gemspec"]
15
+ s.files = ["Manifest", "README.md", "Rakefile", "TODO.md", "bin/ucb_deploy", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb", "resources/confluence_cas_web.xml", "resources/jira_cas_web.xml", "resources/soulwing-casclient-0.5.3.jar", "spec/fixtures/confluence/bad_deploy.yml", "spec/fixtures/confluence/confluence-init.properties", "spec/fixtures/confluence/deploy.yml", "spec/fixtures/confluence/seraph-config.xml", "spec/fixtures/confluence/web.xml", "spec/fixtures/jira/bad_deploy.yml", "spec/fixtures/jira/deploy.yml", "spec/fixtures/jira/entityengine.xml", "spec/fixtures/jira/jira-application.properties", "spec/fixtures/jira/seraph-config.xml", "spec/fixtures/jira/web.xml", "spec/spec_helper.rb", "spec/ucb_deployer/confluence_deployer_spec.rb", "spec/ucb_deployer/jira_deployer_spec.rb", "spec/ucb_deployer/ucb_deployer_spec.rb", "ucb_deployer.gemspec"]
16
16
  s.homepage = %q{http://ucbrb.rubyforge.org}
17
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ucb_deployer", "--main", "README.md"]
18
18
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_deployer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 11
10
- version: 0.1.11
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Hansen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-18 00:00:00 -08:00
18
+ date: 2010-12-02 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -53,6 +53,7 @@ files:
53
53
  - spec/fixtures/jira/bad_deploy.yml
54
54
  - spec/fixtures/jira/deploy.yml
55
55
  - spec/fixtures/jira/entityengine.xml
56
+ - spec/fixtures/jira/jira-application.properties
56
57
  - spec/fixtures/jira/seraph-config.xml
57
58
  - spec/fixtures/jira/web.xml
58
59
  - spec/spec_helper.rb