Produced by Araxis Merge on 6/20/2018 10:24:21 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | CCRS.zip\CCRS\Reports-Sprint_5.zip\Reports-Sprint_5-aa03f94869cda45ee08ca75641e61a7376f2c2a5\CCRSBaseHelper\src\main\java\gov\va\ccrs\helpers | PropertiesHelper.java | Fri Mar 30 15:47:12 2018 UTC |
2 | CCRS.zip\CCRS\Reports-Sprint_5.zip\Reports-Sprint_5-aa03f94869cda45ee08ca75641e61a7376f2c2a5\CCRSBaseHelper\src\main\java\gov\va\ccrs\helpers | PropertiesHelper.java | Fri Jun 15 13:11:27 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 88 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | package go v.va.ccrs. helpers; | |
2 | ||
3 | import jav a.io.IOExc eption; | |
4 | import jav a.io.Input Stream; | |
5 | import jav a.util.Pro perties; | |
6 | ||
7 | import org .apache.lo g4j.Level; | |
8 | ||
9 | /** | |
10 | * @author p i
|
|
11 | * | |
12 | */ | |
13 | public cla ss Propert iesHelper { | |
14 | ||
15 | privat e static f inal Strin g PROPERTY _FILE_NAME = "config .propertie s"; | |
16 | privat e static P roperties prop; | |
17 | ||
18 | ||
19 | privat e static v oid loadPr operties() throws Ex ception { | |
20 | In putStream input = nu ll; | |
21 | tr y { | |
22 | input = P ropertiesH elper.clas s.getClass Loader().g etResource AsStream(P ROPERTY_FI LE_NAME); | |
23 | if (inpu t == null) { | |
24 | thro w new Exce ption("Con figuration File Not found"); | |
25 | } | |
26 | prop = n ew Propert ies(); | |
27 | prop.loa d(input); | |
28 | } catch (IOE xception e x) { | |
29 | throw ne w Exceptio n("Configu ration Fil e Not foun d"); | |
30 | } finally { | |
31 | if (inpu t != null) { | |
32 | try { | |
33 | input.clos e(); | |
34 | } ca tch (IOExc eption e) { | |
35 | LogHelper. Log(Level. ERROR, e); | |
36 | } | |
37 | } | |
38 | } | |
39 | } | |
40 | ||
41 | public static St ring getPr operty(Str ing proper tyName) th rows Excep tion{ | |
42 | if (prop == n ull) loadP roperties( ); | |
43 | re turn prop. getPropert y(property Name); | |
44 | } | |
45 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.