Produced by Araxis Merge on 5/10/2018 8:40:56 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 | MHED_APPS_CIF.zip\VATS v2.1.2\var-utility-web-2.1.2@c27506c69b7.zip\gradle-builds | build.gradle | Fri Mar 9 16:50:58 2018 UTC |
2 | MHED_APPS_CIF.zip\VATS v2.1.2\var-utility-web-2.1.2@c27506c69b7.zip\gradle-builds | build.gradle | Thu May 3 17:15:37 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 262 |
Changed | 1 | 6 |
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 | apply plug in: 'idea' | |
2 | apply plug in: 'war' | |
3 | apply plug in: 'maven -publish' | |
4 | apply from : 'base- ui.gradle' | |
5 | apply plug in: 'org.h idetake.ss h' | |
6 | ||
7 | //options: | |
8 | // -b uildMode (SNAPS HOT/RELEAS E): skip b ranch dete ction and force requ ested buil d mode | |
9 | buildscrip t { | |
10 | reposito ries { | |
11 | maven { | |
12 | url "https://p lugins.gra dle.org/m2 /" | |
13 | } | |
14 | } | |
15 | dependen cies { | |
16 | classp ath "org.h idetake:gr adle-ssh-p lugin:1.1. 4" | |
17 | } | |
18 | } | |
19 | ||
20 | /********* ** | |
21 | * SSH info | |
22 | ********** */ | |
23 | remotes { | |
24 | apacheSe rver { | |
25 | host = " IP " | |
26 | user = " REDACTED " | |
27 | password = " REDACTED " | |
28 | } | |
29 | ||
30 | } | |
31 | ||
32 | /********* * | |
33 | * Deploy ZIPped app to Apache Server | |
34 | ********* */ | |
35 | def deploy WebArtifac ts() { | |
36 | ||
37 | // def docRoo t = "/var/ www2/html" | |
38 | de f appBase = "va-tool -set" | |
39 | ap acheServer Host = "$a pacheServe rHost"; | |
40 | pr intln(apac heServerHo st); | |
41 | ||
42 | de f targetDi r = "$docR oot" | |
43 | de f deployDi r = docRoo t | |
44 | ||
45 | ||
46 | de f unzipDir = "../dis t"; | |
47 | ||
48 | ||
49 | pr intln("Dep loying to target dir ectory: ${ targetDir} ") | |
50 | ||
51 | ss h.run { | |
52 | session(re motes.apac heServer) { | |
53 | execut eSudo("rm -rf $docRo ot/$appBas e", ignore Error: tru e) | |
54 | execut eSudo("mkd ir $docRoo t/$appBase ", ignoreE rror: true ) | |
55 | execut eSudo("rm -rf /tmp/d ist") | |
56 | put fr om: "${unz ipDir}", i nto: '/tmp ' | |
57 | execut eSudo("mv /tmp/dist/ * $docRoot /$appBase" ) | |
58 | execut eSudo("cho wn -R apac he:apache $docRoot") | |
59 | execut eSudo("res torecon -R $docRoot/ $appBase") | |
60 | } | |
61 | } | |
62 | prin tln("Succe ssfully co pied to re mote serve r"); | |
63 | ||
64 | } | |
65 | ||
66 | task grunt Build(depe ndsOn:'cre ateVersion Json', typ e:Exec) { | |
67 | if (bu ildMode == 'SNAPSHOT ') { | |
68 | co mmandLine 'grunt', ' build:dev' | |
69 | } else { | |
70 | co mmandLine 'grunt', ' build:dist ' | |
71 | } | |
72 | } | |
73 | ||
74 | task grunt BuildDev(d ependsOn:' createVers ionJson', type:Exec) { | |
75 | co mmandLine 'grunt', ' build:dev' | |
76 | } | |
77 | ||
78 | task grunt BuildProd( dependsOn: 'createVer sionJson', type:Exec ){ | |
79 | co mmandLine 'grunt', ' build:dist ' | |
80 | } | |
81 | ||
82 | List<Strin g> options = new Arr ayList<Str ing>() | |
83 | String app Name = 'va -tool-set- web' | |
84 | ||
85 | task getOp tions { | |
86 | if(Sys tem.proper ties['appN ame']) { | |
87 | op tions.add( '--appName =' + Syste m.properti es['appNam e']) | |
88 | ap pName = Sy stem.prope rties['app Name'] | |
89 | } | |
90 | } | |
91 | ||
92 | ||
93 | war { | |
94 | ba seName = a ppName | |
95 | we bAppDirNam e = '../di st' | |
96 | fr om 'dist' | |
97 | } | |
98 | ||
99 | war.depend sOn gruntB uild | |
100 | ||
101 | war.doFirs t { | |
102 | printl n 'build M ANIFEST.MF ' | |
103 | manife st { | |
104 | at tributes ' Implementa tion-Title ': war.bas eName, | |
105 | ' Implementa tion-Versi on': versi on, | |
106 | ' Implementa tion-Build -Mode': bu ildMode, | |
107 | ' Implementa tion-Times tamp': tim estamp, | |
108 | ' Commit-Bra nch': comm itBranch, | |
109 | ' Commit-Cou nt': commi tCount, | |
110 | ' Commit-Rev ision': co mmitRevisi on | |
111 | } | |
112 | } | |
113 | ||
114 | publishing { | |
115 | public ations { | |
116 | ma ven(MavenP ublication ) { | |
117 | groupId 'gov.va.va mf.webapp' | |
118 | artifact Id war.bas eName | |
119 | version "${version }" | |
120 | ||
121 | from com ponents.we b | |
122 | } | |
123 | } | |
124 | } | |
125 | ||
126 | defaultTas ks 'clean' | |
127 | ||
128 | String run Cmd(String cmd) { | |
129 | return cmd.execu te().text. trim() | |
130 | } | |
131 | ||
132 | task deplo yToApache( dependsOn: 'build') << { | |
133 | runCmd './deploy ToApache.s h ' + war. baseName + ' ' + war .archivePa th | |
134 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.