2241. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/5/2018 9:05:46 PM 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.

2241.1 Files compared

# Location File Last Modified
1 MHEDP3_VAOS_VATS_SM_Sept2018.zip\SM 2.4.0\scheduling-manager-web-2.4.0.zip Gruntfile.js Thu Jul 19 16:14:00 2018 UTC
2 MHEDP3_VAOS_VATS_SM_Sept2018.zip\SM 2.4.0\scheduling-manager-web-2.4.0.zip Gruntfile.js Fri Oct 5 20:24:23 2018 UTC

2241.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 826
Changed 2 8
Inserted 0 0
Removed 0 0

2241.3 Comparison options

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

2241.4 Active regular expressions

No regular expressions were active.

2241.5 Comparison detail

  1   module.exp orts = fun ction (gru nt) {
  2       requir e('time-gr unt')(grun t);
  3       requir e('load-gr unt-tasks' )(grunt);
  4  
  5       var pk g = grunt. file.readJ SON('packa ge.json');
  6           va r localCon fig = {
  7                             app: p kg.name,
  8                dist: 'd ist',
  9                build: ' build',
  10                testPath : pkg.name  + '/test' ,
  11                testUrl:  'http://l ocalhost:8 080/schedu ling-manag er/test/',
  12                dest: pr ocess.env. CATALINA_H OME + '/we bapps/sche duling-man ager/'
  13                    },
  14                    publ ishRelease  = functio n (err, st dout, stde rr, cb) {
  15                             if (!e rr) {
  16                                      grunt.co nfig.set(' artifactor y.release. options',  {
  17                                               url: 'http ://lv-ci.c loudapp.ne t:90',
  18                                               repository : 'agilex' ,
  19                                                username:  ' AI ',
  20                                                password:  ' AI ',
  21                                               publish: [
  22                                                       {
  23                                                                id:  'com.agile x.web:' +  pkg['artif act-name']  + ':war',
  24                                                                vers ion: pkg.v ersion + ' .' + stdou t.trim(),
  25                                                                path : 'build/'
  26                                                       }
  27                                               ]
  28                                      });
  29                                      grunt.ta sk.run('ar tifactory: release:pu blish');
  30                             } else  {
  31                                      console. log('Comma nd to get  Git commit  count fai led');
  32                                      console. log(err);
  33                                      console. log(stderr );
  34                             }
  35                             cb();
  36                    };
  37  
  38           gr unt.initCo nfig({
  39                    pkg:  pkg,
  40                    conf ig: localC onfig,
  41                    quni t_junit: {
  42                             option s: {
  43                                      dest: '. /test'
  44                             }
  45                    },
  46           cl ean:{
  47                dist:['. tmp', '<%=  config.di st %>/*']
  48           },
  49           js hint: {
  50                //option s: {
  51                //     j shintrc: ' .jshintrc' ,
  52                //     r eporter: r equire('js hint-styli sh')
  53                // },
  54                all: [
  55                    'Gru ntfile.js' ,
  56                    '<%=  config.ap p %>/js/** /*.js',
  57                    'tes t/spec/{,* /}*.js'
  58                ]
  59           },
  60           ka rma: {
  61                unit: {
  62                    conf igFile: 'k arma.conf. js'
  63                }
  64           },
  65                    requ irejs: { / / base tas k that opt imize (mul titask) wi ll use
  66                dist: {
  67                    opti ons: {
  68                         baseUrl: ' <%= config .app %>/ap p/js',
  69                         optimize:  'none',
  70                         preserveLi censeComme nts: false ,
  71                         useStrict:  true,
  72                         wrapShim:  true,
  73                         wrap: true
  74                    }
  75                }
  76                    },
  77           sa ss_compile _imports:  {
  78                options: {
  79                    head er: [
  80                         '// This f ile is aut omatically  generated ',
  81                         '// by the  grunt sas s_compile_ imports ta sk.',
  82                         '// Do not  directly  modify thi s file.',
  83                         ''
  84                    ]
  85                },
  86                scheduli ng_modules : {
  87                    opti ons: {
  88                         // makes p ath of imp orted file s relative  to target
  89                         replacePat h: {
  90                             patter n: '<%= co nfig.app % >/app/',
  91                             replac e: '../../ '
  92                         },
  93                    },
  94                    targ et: '<%= c onfig.app  %>/app/css /sass/_sch eduling-mo dules.scss ',
  95                    file s: [{
  96                         expand: tr ue,
  97                         cwd: '<%=  config.app  %>/app/',
  98                         // exclude s partial  sass files
  99                         src: ['mod ules/**/*. scss', '!m odules/**/ _*.scss']
  100                    }]
  101                }
  102           },
  103           co mpass:{
  104                options:  {
  105                    sass Dir: '<%=  config.app  %>/app/cs s/sass',
  106                    cssD ir: '<%= c onfig.app  %>/app/css ',
  107                    rela tiveAssets : false,
  108                    asse tCacheBust er: false,
  109                    noLi neComments : true,
  110                    debu gInfo: fal se,
  111                    raw:  'Sass::Sc ript::Numb er.precisi on = 10\n'
  112                },
  113                server:  {
  114                    opti ons: {
  115                         debugInfo:  false
  116                    }
  117                }
  118           },
  119           us eminPrepar e: {
  120                options:  {
  121                    dest : '<%= con fig.dist % >'
  122                },
  123                html: '< %= config. app %>/ind ex.html'
  124           },
  125           us emin: {
  126                options:  {
  127                    dirs : ['<%= co nfig.dist  %>']
  128                },
  129                html: [' <%= config .dist %>/{ ,*/}*.html '],
  130                css: ['< %= config. dist %>/ap p/css/{,*/ }*.css']
  131           },
  132           im agemin: {
  133                dist: {
  134                    file s: [{
  135                         expand: tr ue,
  136                         cwd: '<%=  config.app  %>/app/im ages',
  137                         src: '{,*/ }*.{png,jp g,jpeg}',
  138                         dest: '<%=  config.di st %>/app/ images'
  139                    }]
  140                }
  141           },
  142           ht mlmin: {
  143                dist: {
  144                    file s: [{
  145                         expand: tr ue,
  146                         cwd: '<%=  config.app  %>',
  147                         src: '*.ht ml',
  148                         dest: '<%=  config.di st %>'
  149                    }]
  150                }
  151           },
  152           co py: {
  153                dist: {
  154                    file s: [{
  155                         expand: tr ue,
  156                         dot: true,
  157                         cwd: '<%=  config.app  %>',
  158                         src: [
  159                             '*.{ic o,txt,png, json,pdf}' ,
  160                             'app/i mages/*',
  161                             '!test /**',
  162                             '!app/ css/sass',
  163                             '!**/* .scss',
  164                             'app/c ss/fonts/{ ,*/}*.*',
  165                             'libs/ css/images /*.{gif,pn g}',
  166                             '!**/* spec.js'
  167                         ],
  168                         dest: '<%=  config.di st %>'
  169                    },{
  170                         expand: tr ue,
  171                         flatten: t rue,
  172                         dot: true,
  173                         cwd: '<%=  config.app  %>',
  174                         src: ['lib s/css/imag es/*.{gif, png}'],
  175                         dest: '<%=  config.di st %>/app/ css/images '
  176                    }]
  177                },
  178                dev: {
  179                    file s: [{
  180                         expand: tr ue,
  181                         dot: true,
  182                         cwd: '<%=  config.app  %>',
  183                         src: ['**' , '!test/* *', '!app/ css/sass',  '!**/*.sc ss', '!**/ *spec.js'] ,
  184                         dest: '<%=  config.di st %>'
  185                    }]
  186                },
  187                toTomcat :{
  188                    expa nd: true,
  189                    cwd:  '<%= conf ig.dist %> /schedulin g-manager/ ',
  190                    src:  ['**'],
  191                    dest : '<%= con fig.dest % >/'
  192                },
  193                toBuild: {
  194                    src:  ['<%= con fig.app %> /**'],
  195                    dest : '<%= con fig.dist % >/'
  196                },
  197                'app': {
  198                    file s: [
  199                         {
  200                             dest:  '<%= confi g.dest %>/ ', cwd: '< %= config. app  %>',  src: ['<%=  config.ap pLocation  %>**'], ex pand: true
  201                         }
  202                    ]
  203                },
  204                'test':  {
  205                    file s: [
  206                         {
  207                             expand : true, cw d: '<%= co nfig.app   %>', dest:  '<%=  con fig.dest % >', src: [ 'test/**',  '!test']
  208                         }
  209                    ]
  210                },
  211                'other':  {
  212                    file s: [
  213                         {
  214                             expand : true, cw d: '<%= co nfig.app   %>', dest:  '<%=  con fig.dest % >', src: [ '**', '!{t est/**,<%=  config.ap pLocation  %>**}']
  215                         }
  216                    ]
  217                }
  218           },
  219           re v: {
  220                dist: {
  221                    file s: {
  222                         src: [
  223                             '<%= c onfig.dist  %>/app/js /{,*/}*.js ',
  224                             '<%= c onfig.dist  %>/app/mo dules/{,*/ }*.js',
  225                             '<%= c onfig.dist  %>/app/cs s/{,*/}*.c ss'
  226                         ]
  227                    }
  228                }
  229           },
  230                    watc h: {
  231                             option s:{
  232                                      'atBegin ':true
  233                             },
  234                             app: {
  235                                      'files':  '<%= conf ig.app + c onfig.appL ocation %> **', tasks : ['copy:a pp']
  236                             }, 'te st': {
  237                                      files: [
  238                                               '<%= confi g.app %>te st/**'
  239                                      ], tasks : ['copy:t est']
  240                             }
  241  
  242                    },
  243                    shel l: {
  244                             testAp p: {
  245                                      command:  'node_mod ules/phant omjs/bin/p hantomjs < %= config. app %>test /runner.js  <%= confi g.testUrl   %> 1200',
  246                                      options:  {
  247                                               stdout: tr ue
  248                                      }
  249                             },
  250                             versio n: {
  251                                      command:  'git log  -1 --prett y=format:% h',
  252                                      options:  {
  253                                               callback:  function l og(err, st dout, stde rr, cb) {
  254                                                       co nsole.dir( stdout);
  255                                                       gr unt.file.w rite('sche duling-man ager/versi on.json',  JSON.strin gify({
  256                                                                vers ion: pkg.v ersion,
  257                                                                meta Revision:  stdout,
  258                                                                date : grunt.te mplate.tod ay()
  259                                                       }) );
  260                                                       cb ();
  261                                               }
  262                                      }
  263                             },
  264                             revisi on: {
  265                                      command:  'git rev- list HEAD  --count',
  266                                      options:  {
  267                                               callback:  function l og(err, st dout, stde rr, cb) {
  268                                                       co nsole.dir( stdout);
  269                                                       gr unt.file.w rite('sche duling-man ager/versi on.json',  JSON.strin gify({
  270                                                                vers ion: pkg.v ersion,
  271                                                                buil d: stdout. replace('\ n', ''),
  272                                                                meta Revision:  grunt.file .readJSON( 'schedulin g-manager/ version.js on').metaR evision,
  273                                                                date : grunt.te mplate.tod ay()
  274                                                       }) );
  275                                                       cb ();
  276                                               }
  277                                      }
  278                             },
  279                             publis hRelease:  {
  280                                      command:  'git rev- list HEAD  --count',
  281                                      options:  {
  282                                               callback:  publishRel ease
  283                                      }
  284                             }
  285                    },
  286                    arti factory: {
  287                             option s: {
  288                                      url: 'ht tp://lv-ci .cloudapp. net:90',
  289                                      reposito ry: 'agile x',
  290                                       username:  ' AI ',
  291                                       password:  ' AI '
  292                             },
  293                             snapsh ot: {
  294                                      files: [
  295                                               { src: ['< %= config. build %>/s cheduling- manager/** /*', '!**/ test/**/*' ] }
  296                                      ],
  297                                      options:  {
  298                                               publish: [
  299                                                       {
  300                                                                id:  'com.agile x.web:' +  pkg['artif act-name']  + ':war',
  301                                                                vers ion: pkg[' artifact-n ame'] + '- SNAPSHOT',
  302                                                                path : '<%= con fig.build  %>/war/'
  303                                                       }
  304                                               ]
  305                                      }
  306                             },
  307                             releas e: {
  308                                      files: [
  309                                               { src: [
  310                                                       's cheduling- manager/** /*',
  311                                                       '! **/test/** /*'
  312                                               ] }
  313                                      ]
  314                             }
  315                    },
  316           ja smine: {
  317                app: {
  318                    opti ons: {
  319                         outfile: " _SpecRunne r.html",
  320                         specs: "sc heduling-m anager/app /**/*spec. js",
  321                         template:  require('g runt-templ ate-jasmin e-requirej s'),
  322                         templateOp tions: {
  323                             requir eConfigFil e: ['<%= c onfig.app  %>/app/js/ config.js' ,'<%= conf ig.testPat h %>/specs /testConfi g.js']
  324                         }
  325                    }
  326                }
  327           },
  328           bu ildResourc eDirectory : {
  329                dist: {
  330                    repl acePath: " dist/app/j s/main.js"
  331                },
  332                dev: {
  333                    repl acePath: " dist/resou rce-direct ory.json"
  334                }
  335           }
  336  
  337           }) ;
  338  
  339       grunt. loadNpmTas ks('grunt- contrib-ja smine');
  340       grunt. loadNpmTas ks('grunt- karma');
  341  
  342           gr unt.regist erTask('bu ildAndMini fy', ['cop y:toBuild' , 'css-min ify', 'ugl ify:build' ]);
  343       grunt. registerTa sk('compil e_sass', [ 'sass_comp ile_import s', 'compa ss']);
  344           gr unt.regist erTask('cl eanNonMinC SS', ['cle an:nonMinC SS']);
  345           gr unt.regist erTask('co pyCode', [ 'copy:app' , 'copy:te st', 'copy :other']);
  346           gr unt.regist erTask('cs s-minify',  ['cssmin' , 'cleanNo nMinCSS']) ;
  347           gr unt.regist erTask('de fault', [' clean:buil d', 'deplo y']);
  348           gr unt.regist erTask('de ploy', ['v ersion', ' clean', 'c opyCode']  );
  349           gr unt.regist erTask('de ployToTomc at', ['cop y:toTomcat ']);
  350           gr unt.regist erTask('pr ovider', [ 'clean', ' deploy', ' providerTe st']);
  351           gr unt.regist erTask('pr oviderTest ');
  352           gr unt.regist erTask('re lease', [' version',  'shell:pub lishReleas e']);
  353           gr unt.regist erTask('sq aDeploy',  ['sqaVersi on', 'clea n', 'copyC ode']);
  354           gr unt.regist erTask('sq aRelease',  ['sqaVers ion', 'she ll:publish Release']) ;
  355           gr unt.regist erTask('sq aVersion',  ['version ', 'shell: revision'] );
  356           gr unt.regist erTask('te st', ['qun it:unit']) ;
  357           gr unt.regist erTask('ve rsion', [' shell:vers ion']);
  358           gr unt.regist erTask('we bTest', [' shell:test App']);
  359  
  360       grunt. registerTa sk('buildR esourceDir ectory', ' Transform  resource-d irectory.j son so it  has the pa tch level  urls', fun ction(mode ){
  361           va r replaceP ath = grun t.config(' buildResou rceDirecto ry')[mode] .replacePa th;
  362           va r rawResou rceDirecto ryString =  grunt.fil e.read(rep lacePath);
  363           va r versionE lements =  pkg.versio n.split('. ');
  364           va r versionU rlSegment  = 'v' + ve rsionEleme nts[0] + ' /m' + vers ionElement s[1] + '/p ' + versio nElements[ 2];
  365           va r director yStringWit hVersionin g = rawRes ourceDirec toryString .replace(/ {full-vers ion}/g,ver sionUrlSeg ment);
  366           gr unt.file.w rite(repla cePath,dir ectoryStri ngWithVers ioning);
  367       });
  368  
  369       grunt. registerTa sk('build' , [
  370           'c lean:dist' ,
  371           'c ompile_sas s',
  372           'u seminPrepa re',
  373           'r equirejs',
  374           //  'imagemin ',
  375           'h tmlmin',
  376           'c oncat',
  377           'c ssmin',
  378           'u glify',
  379           's hell:versi on',
  380           'c opy:dist',
  381           'b uildResour ceDirector y:dist',
  382           'r ev',
  383           'u semin'
  384       ]);
  385  
  386       grunt. registerTa sk('sqabui ld', [
  387           'c lean:dist' ,
  388           'c ompile_sas s',
  389           'u seminPrepa re',
  390           'r equirejs',
  391           //  'imagemin ',
  392           'h tmlmin',
  393           'c oncat',
  394           'c ssmin',
  395           'u glify',
  396           's qaVersion' ,
  397           'c opy:dist',
  398           'b uildResour ceDirector y:dist',
  399           'r ev',
  400           'u semin'
  401       ]);
  402  
  403       grunt. registerTa sk('defaul t', [
  404           'j shint',
  405           't est',
  406           'b uild'
  407       ]);
  408       grunt. registerTa sk('devBui ld', [
  409           'c lean:dist' ,
  410           'c ompile_sas s',
  411           's hell:versi on',
  412           'c opy:dev',
  413           'b uildResour ceDirector y:dev'
  414       ]);
  415  
  416   };
  417