Produced by Araxis Merge on 4/13/2017 12:42: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.
# | Location | File | Last Modified |
---|---|---|---|
1 | PS_MS_Build.zip\PS_MS_Build | build.xml | Mon Mar 27 20:10:00 2017 UTC |
2 | PS_MS_Build.zip\PS_MS_Build | build.xml | Thu Apr 13 17:02:59 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 5 | 1772 |
Changed | 4 | 8 |
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 | <project | |
2 | name="MOCH A-Build" | |
3 | default="p s_ms_ear" | |
4 | basedir=". " | |
5 | xmlns:moch a="http:// www. DNS /pharmacy/ mocha" | |
6 | > | |
7 | ||
8 | ||
9 | <defaultex cludes | |
10 | add="**/.c opyarea.db " | |
11 | /> | |
12 | ||
13 | <!-- Do no t include ClearCase files. --> | |
14 | ||
15 | <import | |
16 | file="buil d.properti es.xml" | |
17 | /> | |
18 | ||
19 | <property | |
20 | file="${ps _ms_build. dir}/versi on/MOCHAVe rsion.prop erties" | |
21 | /> | |
22 | ||
23 | <property | |
24 | environmen t="env" | |
25 | /> | |
26 | ||
27 | ||
28 | <import | |
29 | file="${ps _ms_common .dir}/gene rate.xml" | |
30 | /> | |
31 | ||
32 | ||
33 | <target | |
34 | name="clea n" | |
35 | descriptio n="Deletes files/dir ectories u sed during the build process." | |
36 | > | |
37 | ||
38 | <delete | |
39 | dir="${gen .lib.dir}" | |
40 | /> | |
41 | ||
42 | <delete | |
43 | dir="${dis t.dir}" | |
44 | /> | |
45 | ||
46 | <delete | |
47 | dir="${bui ld.dir}" | |
48 | /> | |
49 | ||
50 | <delete | |
51 | dir="${rep ort.dir}" | |
52 | /> | |
53 | ||
54 | </target> | |
55 | ||
56 | ||
57 | <target | |
58 | name="init Version" | |
59 | depends="i nit" | |
60 | > | |
61 | ||
62 | <!-- The f ollowing w ill not ov erride the B environ ment varia ble set by Build For ge. | |
63 | So a bu ild being performed that does not have t he B envir onment var iable set | |
64 | will ha ve the bui ld number set to 'DE V' --> | |
65 | ||
66 | <property | |
67 | name="env. B" | |
68 | value="DEV " | |
69 | /> | |
70 | ||
71 | <if> | |
72 | ||
73 | <equals | |
74 | arg1="${en v.B}" | |
75 | arg2="DEV" | |
76 | /> | |
77 | ||
78 | <then> | |
79 | ||
80 | <property | |
81 | name="vers ion.build" | |
82 | value="${e nv.B}" | |
83 | /> | |
84 | ||
85 | </then> | |
86 | ||
87 | <else> | |
88 | ||
89 | <!-- A lit tle trick to format the versio n.build nu mber to on ly 4 chara cters. | |
90 | Place 4 z eros in fr ont of the env.B pro perty, and then use regexp to | |
91 | pull in t he last 4 characters . --> | |
92 | ||
93 | <propertyr egex | |
94 | property=" version.bu ild" | |
95 | ||
96 | input="000 0${env.B}" | |
97 | ||
98 | regexp=".{ 0,4}(\d{4, 4})" | |
99 | ||
100 | replace="\ 1" | |
101 | /> | |
102 | ||
103 | </else> | |
104 | ||
105 | </if> | |
106 | ||
107 | <property | |
108 | name="vers ion.number " | |
109 | value="${v ersion.maj or}.${vers ion.minor} .${version .revision} .${version .build}" | |
110 | /> | |
111 | ||
112 | </target> | |
113 | ||
114 | ||
115 | <target | |
116 | name="init " | |
117 | depends="c lean" | |
118 | > | |
119 | ||
120 | <mkdir | |
121 | dir="${gen .lib.dir}" | |
122 | /> | |
123 | ||
124 | <mkdir | |
125 | dir="${dis t.dir}" | |
126 | /> | |
127 | ||
128 | <mkdir | |
129 | dir="${bui ld.dir}" | |
130 | /> | |
131 | ||
132 | ||
133 | <taskdef | |
134 | resource=" net/sf/ant contrib/an tlib.xml" | |
135 | loaderref= "ant-loade r" | |
136 | classpathr ef="build. class.path " | |
137 | /> | |
138 | ||
139 | <taskdef | |
140 | resource=" checkstyle task.prope rties" | |
141 | loaderref= "ant-loade r" | |
142 | classpathr ef="build. class.path " | |
143 | /> | |
144 | ||
145 | </target> | |
146 | ||
147 | ||
148 | <target | |
149 | name="ps_m s_common" | |
150 | depends="i nitVersion " | |
151 | descriptio n="Builds the PS_MS_ common jar file." | |
152 | > | |
153 | ||
154 | <property | |
155 | name="ps_m s_common.p roject.nam e" | |
156 | value="ps_ ms_common" | |
157 | /> | |
158 | ||
159 | <property | |
160 | name="ps_m s_common.j ar.file" | |
161 | value="${g en.lib.dir }/${ps_ms_ common.pro ject.name} .jar" | |
162 | /> | |
163 | ||
164 | <mkdir | |
165 | dir="${bui ld.dir}" | |
166 | /> | |
167 | ||
168 | <antcall | |
169 | target="ge nerate" | |
170 | /> | |
171 | ||
172 | <mocha:com pile | |
173 | project.di r="${ps_ms _common.di r}" | |
174 | project.na me="${ps_m s_common.p roject.nam e}" | |
175 | > | |
176 | ||
177 | <src.dirs> | |
178 | ||
179 | <src | |
180 | path="${ps _ms_common .dir}/src" | |
181 | /> | |
182 | ||
183 | <src | |
184 | path="${ge n.src.dir} " | |
185 | /> | |
186 | ||
187 | </src.dirs > | |
188 | ||
189 | </mocha:co mpile> | |
190 | ||
191 | <mocha:mak ejar | |
192 | dest.file. name="${ps _ms_common .jar.file} " | |
193 | section.na me="${ps_m s_common.p roject.nam e}" | |
194 | > | |
195 | ||
196 | <jar.file. set> | |
197 | ||
198 | <fileset | |
199 | dir="${bui ld.dir}" | |
200 | > | |
201 | ||
202 | <exclude | |
203 | name="clas ses/**" | |
204 | /> | |
205 | ||
206 | </fileset> | |
207 | ||
208 | <fileset | |
209 | dir="${ps_ ms_common. dir}/resou rces" | |
210 | /> | |
211 | ||
212 | </jar.file .set> | |
213 | ||
214 | </mocha:ma kejar> | |
215 | ||
216 | <delete | |
217 | dir="${bui ld.dir}" | |
218 | /> | |
219 | ||
220 | </target> | |
221 | ||
222 | ||
223 | <target | |
224 | name="ps_m s_ejb" | |
225 | depends="p s_ms_commo n" | |
226 | descriptio n="Builds the PS_MS_ EJB jar fi le." | |
227 | > | |
228 | ||
229 | <property | |
230 | name="ps_m s_ejb.proj ect.name" | |
231 | value="PS_ MS_EJB" | |
232 | /> | |
233 | ||
234 | <property | |
235 | name="ps_m s_ejb.jar. file" | |
236 | value="${g en.lib.dir }/${ps_ms_ ejb.projec t.name}.ja r" | |
237 | /> | |
238 | ||
239 | <mkdir | |
240 | dir="${bui ld.dir}" | |
241 | /> | |
242 | ||
243 | <mocha:com pile | |
244 | project.di r="${ps_ms _ejb.dir}" | |
245 | project.na me="${ps_m s_ejb.proj ect.name}" | |
246 | > | |
247 | ||
248 | <src.dirs> | |
249 | ||
250 | <src | |
251 | path="${ps _ms_ejb.di r}/ejbModu le" | |
252 | /> | |
253 | ||
254 | </src.dirs > | |
255 | ||
256 | </mocha:co mpile> | |
257 | ||
258 | <mocha:mak ejar | |
259 | dest.file. name="${ps _ms_ejb.ja r.file}" | |
260 | section.na me="${ps_m s_ejb.proj ect.name}" | |
261 | > | |
262 | ||
263 | <jar.file. set> | |
264 | ||
265 | <fileset | |
266 | dir="${bui ld.dir}" | |
267 | > | |
268 | ||
269 | <exclude | |
270 | name="clas ses/**" | |
271 | /> | |
272 | ||
273 | </fileset> | |
274 | ||
275 | <fileset | |
276 | dir="${ps_ ms_ejb.dir }/resource s" | |
277 | /> | |
278 | ||
279 | </jar.file .set> | |
280 | ||
281 | </mocha:ma kejar> | |
282 | ||
283 | <delete | |
284 | dir="${bui ld.dir}" | |
285 | /> | |
286 | ||
287 | </target> | |
288 | ||
289 | ||
290 | <target | |
291 | name="ps_m s_web" | |
292 | depends="p s_ms_ejb" | |
293 | descriptio n="Builds the PS_MS_ web war fi le." | |
294 | > | |
295 | ||
296 | <property | |
297 | name="ps_m s_web.proj ect.name" | |
298 | value="PS_ MS_Web" | |
299 | /> | |
300 | ||
301 | <property | |
302 | name="ps_m s_web.war. file" | |
303 | value="${g en.lib.dir }/${ps_ms_ web.projec t.name}.wa r" | |
304 | /> | |
305 | ||
306 | <mkdir | |
307 | dir="${bui ld.dir}" | |
308 | /> | |
309 | ||
310 | <mocha:com pile | |
311 | project.di r="${ps_ms _web.dir}" | |
312 | project.na me="${ps_m s_web.proj ect.name}" | |
313 | > | |
314 | ||
315 | <src.dirs> | |
316 | ||
317 | <src | |
318 | path="${ps _ms_web.di r}/src" | |
319 | /> | |
320 | ||
321 | </src.dirs > | |
322 | ||
323 | </mocha:co mpile> | |
324 | ||
325 | <war | |
326 | destfile=" ${ps_ms_we b.war.file }" | |
327 | ||
328 | duplicate= "preserve" | |
329 | webxml="${ ps_ms_web. dir}/WebCo ntent/WEB- INF/web.xm l" | |
330 | > | |
331 | ||
332 | <manifest> | |
333 | ||
334 | <attribute | |
335 | name="Buil t-By" | |
336 | value="${s pecificati on.vendor} " | |
337 | /> | |
338 | ||
339 | <section | |
340 | name="PS_M S_Web" | |
341 | > | |
342 | ||
343 | <attribute | |
344 | name="Spec ification- Title" | |
345 | value="${s pecificati on.title}" | |
346 | /> | |
347 | ||
348 | <attribute | |
349 | name="Spec ification- Version" | |
350 | value="${s pecificati on.version }" | |
351 | /> | |
352 | ||
353 | <attribute | |
354 | name="Spec ification- Vendor" | |
355 | value="${s pecificati on.vendor} " | |
356 | /> | |
357 | ||
358 | <attribute | |
359 | name="Impl ementation -Title" | |
360 | value="${i mplementat ion.title} " | |
361 | /> | |
362 | ||
363 | <attribute | |
364 | name="Impl ementation -Version" | |
365 | value="${v ersion.num ber}" | |
366 | /> | |
367 | ||
368 | <attribute | |
369 | name="Impl ementation -Vendor" | |
370 | value="${i mplementat ion.vendor }" | |
371 | /> | |
372 | ||
373 | </section> | |
374 | ||
375 | </manifest > | |
376 | ||
377 | <classes | |
378 | dir="${bui ld.dir}" | |
379 | > | |
380 | ||
381 | <exclude | |
382 | name="clas ses/**" | |
383 | /> | |
384 | ||
385 | </classes> | |
386 | ||
387 | </war> | |
388 | ||
389 | <checksum | |
390 | file="${ps _ms_web.wa r.file}" | |
391 | /> | |
392 | ||
393 | <delete | |
394 | dir="${bui ld.dir}" | |
395 | /> | |
396 | ||
397 | </target> | |
398 | ||
399 | ||
400 | <target | |
401 | name="ps_m s_ear" | |
402 | depends="p s_ms_web, copyjars" | |
403 | descriptio n="Builds the MOCHA- Server ear file." | |
404 | > | |
405 | ||
406 | <property | |
407 | name="ps_m s_server.p roject.nam e" | |
408 | value="moc ha-server" | |
409 | /> | |
410 | ||
411 | <property | |
412 | name="ear. file.name" | |
413 | value="${g en.lib.dir }/${ps_ms_ server.pro ject.name} -${version .number}.e ar" | |
414 | /> | |
415 | ||
416 | <ear | |
417 | destfile=" ${ear.file .name}" | |
418 | ||
419 | duplicate= "preserve" | |
420 | appxml="${ ps_ms_ear. dir}/EarCo ntent/META -INF/appli cation.xml " | |
421 | > | |
422 | ||
423 | <metainf | |
424 | dir="${ps_ ms_ear.dir }/EarConte nt/META-IN F" | |
425 | > | |
426 | ||
427 | <exclude | |
428 | name="${ps _ms_ear.di r}/EarCont ent/META-I NF/applica tion.xml" | |
429 | /> | |
430 | ||
431 | </metainf> | |
432 | ||
433 | <manifest> | |
434 | ||
435 | <attribute | |
436 | name="Buil t-By" | |
437 | value="${s pecificati on.vendor} " | |
438 | /> | |
439 | ||
440 | <section | |
441 | name="${ps _ms_server .project.n ame}" | |
442 | > | |
443 | ||
444 | <attribute | |
445 | name="Spec ification- Title" | |
446 | value="${s pecificati on.title}" | |
447 | /> | |
448 | ||
449 | <attribute | |
450 | name="Spec ification- Version" | |
451 | value="${s pecificati on.version }" | |
452 | /> | |
453 | ||
454 | <attribute | |
455 | name="Spec ification- Vendor" | |
456 | value="${s pecificati on.vendor} " | |
457 | /> | |
458 | ||
459 | <attribute | |
460 | name="Impl ementation -Title" | |
461 | value="${i mplementat ion.title} " | |
462 | /> | |
463 | ||
464 | <attribute | |
465 | name="Impl ementation -Version" | |
466 | value="${v ersion.num ber}" | |
467 | /> | |
468 | ||
469 | <attribute | |
470 | name="Impl ementation -Vendor" | |
471 | value="${i mplementat ion.vendor }" | |
472 | /> | |
473 | ||
474 | </section> | |
475 | ||
476 | </manifest > | |
477 | ||
478 | <fileset | |
479 | dir="${bui ld.dir}" | |
480 | /> | |
481 | ||
482 | </ear> | |
483 | ||
484 | <checksum | |
485 | file="${ea r.file.nam e}" | |
486 | /> | |
487 | ||
488 | <delete | |
489 | dir="${bui ld.dir}" | |
490 | /> | |
491 | ||
492 | <copy | |
493 | todir="${d ist.dir}" | |
494 | > | |
495 | ||
496 | <fileset | |
497 | dir="${gen .lib.dir}" | |
498 | > | |
499 | ||
500 | <include | |
501 | name="${ps _ms_server .project.n ame}-${ver sion.numbe r}*" | |
502 | /> | |
503 | ||
504 | </fileset> | |
505 | ||
506 | </copy> | |
507 | ||
508 | </target> | |
509 | ||
510 | ||
511 | <target | |
512 | name="copy jars" | |
513 | descriptio n="Copies the shared jar files for inclu sion in th e ear." | |
514 | > | |
515 | ||
516 | <mkdir | |
517 | dir="${bui ld.lib.dir }" | |
518 | /> | |
519 | ||
520 | <copy | |
521 | todir="${b uild.lib.d ir}" | |
522 | includeemp tydirs="fa lse" | |
523 | flatten="t rue" | |
524 | > | |
525 | ||
526 | <fileset | |
527 | dir="${ps_ ms_ear.dir }/EarConte nt/APP-INF /lib" | |
528 | /> | |
529 | ||
530 | <fileset | |
531 | dir="${gen .lib.dir}" | |
532 | > | |
533 | ||
534 | <include | |
535 | name="**/p s_ms_commo n.jar" | |
536 | /> | |
537 | ||
538 | </fileset> | |
539 | ||
540 | </copy> | |
541 | ||
542 | <copy | |
543 | todir="${b uild.dir}" | |
544 | > | |
545 | ||
546 | <fileset | |
547 | dir="${gen .lib.dir}" | |
548 | > | |
549 | ||
550 | <exclude | |
551 | name="**/p s_ms_commo n.jar" | |
552 | /> | |
553 | ||
554 | </fileset> | |
555 | ||
556 | </copy> | |
557 | ||
558 | </target> | |
559 | ||
560 | ||
561 | <target | |
562 | name="data base" | |
563 | descriptio n="Copies the DDL to create th e database to the di st directo ry." | |
564 | > | |
565 | ||
566 | <!-- Creat e database zip file --> | |
567 | ||
568 | <property | |
569 | name="ddl. zip.name" | |
570 | value="${g en.lib.dir }/mocha-se rver-db-${ version.nu mber}.zip" | |
571 | /> | |
572 | ||
573 | <zip | |
574 | destfile=" ${ddl.zip. name}" | |
575 | basedir="$ {ps_ms_db. dir}" | |
576 | /> | |
577 | ||
578 | <checksum | |
579 | file="${dd l.zip.name }" | |
580 | /> | |
581 | ||
582 | </target> | |
583 | ||
584 | ||
585 | <target | |
586 | name="jarf iles" | |
587 | descriptio n="Copies the extern al jar fil es need by MOCHA Ser ver for in clusion in the zip f ile." | |
588 | > | |
589 | ||
590 | <property | |
591 | name="jar. zip.name" | |
592 | value="${g en.lib.dir }/mocha-se rver-jars- ${version. number}.zi p" | |
593 | /> | |
594 | ||
595 | <zip | |
596 | destfile=" ${jar.zip. name}" | |
597 | > | |
598 | ||
599 | <fileset | |
600 | dir="${ps_ ms_lib.dir }/runtime" | |
601 | /> | |
602 | ||
603 | </zip> | |
604 | ||
605 | <checksum | |
606 | file="${ja r.zip.name }" | |
607 | /> | |
608 | ||
609 | </target> | |
610 | ||
611 | ||
612 | <target | |
613 | name="pack age" | |
614 | depends="p s_ms_ear, database, jarfiles" | |
615 | descriptio n="Package s the MOCH A-Server a rtifacts i n to a zip file." | |
616 | > | |
617 | ||
618 | <property | |
619 | name="zip. dest.file" | |
620 | value="${d ist.dir}/m ocha-serve r-pkg-${ve rsion.numb er}.zip" | |
621 | /> | |
622 | ||
623 | <zip | |
624 | destfile=" ${zip.dest .file}" | |
625 | > | |
626 | ||
627 | <fileset | |
628 | dir="${gen .lib.dir}" | |
629 | > | |
630 | ||
631 | <include | |
632 | name="moch a-server*" | |
633 | /> | |
634 | ||
635 | </fileset> | |
636 | ||
637 | </zip> | |
638 | ||
639 | <checksum | |
640 | file="${zi p.dest.fil e}" | |
641 | /> | |
642 | ||
643 | </target> | |
644 | ||
645 | ||
646 | <macrodef | |
647 | name="comp ile" | |
648 | descriptio n="Compile s a set of source co de." | |
649 | uri="http: //www. DNS /pharmacy/ mocha" | |
650 | > | |
651 | ||
652 | <attribute | |
653 | name="proj ect.dir" | |
654 | descriptio n="The pro ject direc tory to ex ecute Chec kstyle aga inst." | |
655 | /> | |
656 | ||
657 | <attribute | |
658 | name="proj ect.name" | |
659 | descriptio n="The nam e of the p roject bei ng checked . Checkst yle report s go in to this spec ific direc tory." | |
660 | /> | |
661 | ||
662 | <element | |
663 | name="src. dirs" | |
664 | descriptio n="The fil eset conta ining the source dir ectories." | |
665 | /> | |
666 | ||
667 | <sequentia l> | |
668 | ||
669 | <mocha:che ckstyle | |
670 | project.di r="@{proje ct.dir}" | |
671 | project.na me="@{proj ect.name}" | |
672 | /> | |
673 | ||
674 | <javac | |
675 | ||
676 | destdir="$ {build.dir }" | |
677 | ||
678 | debug="${c ompiler.de bug}" | |
679 | ||
680 | debuglevel ="${compil er.debugle vel}" | |
681 | ||
682 | compiler=" ${build.co mpiler}" | |
683 | ||
684 | source="${ compiler.s ource}" | |
685 | ||
686 | target="${ compiler.t arget}" | |
687 | ||
688 | deprecatio n="${compi ler.deprec ation}" | |
689 | ||
690 | includeant runtime="f alse" | |
691 | > | |
692 | ||
693 | <classpath | |
694 | refid="bui ld.class.p ath" | |
695 | /> | |
696 | ||
697 | <compilera rg | |
698 | value="${c ompiler.ar gs}" | |
699 | /> | |
700 | ||
701 | <src.dirs/ > | |
702 | ||
703 | </javac> | |
704 | ||
705 | </sequenti al> | |
706 | ||
707 | </macrodef > | |
708 | ||
709 | ||
710 | <macrodef | |
711 | name="make jar" | |
712 | descriptio n="Creates a jar fil e and MD5 checksum f rom the su pplied att ributes." | |
713 | uri="http: //www. DNS /pharmacy/ mocha" | |
714 | > | |
715 | ||
716 | <attribute | |
717 | name="dest .file.name " | |
718 | descriptio n="The dir ectory and name of t he jar fil e to creat e." | |
719 | /> | |
720 | ||
721 | <attribute | |
722 | name="sect ion.name" | |
723 | descriptio n="The nam e of the s ection in the manife st file." | |
724 | /> | |
725 | ||
726 | <element | |
727 | name="jar. file.set" | |
728 | descriptio n="The fil eset of fi les to inc lude in th e jar." | |
729 | /> | |
730 | ||
731 | <sequentia l> | |
732 | ||
733 | <jar | |
734 | destfile=" @{dest.fil e.name}" | |
735 | > | |
736 | ||
737 | <jar.file. set/> | |
738 | ||
739 | <manifest> | |
740 | ||
741 | <attribute | |
742 | name="Buil t-By" | |
743 | value="${s pecificati on.vendor} " | |
744 | /> | |
745 | ||
746 | <section | |
747 | name="@{se ction.name }" | |
748 | > | |
749 | ||
750 | <attribute | |
751 | name="Spec ification- Title" | |
752 | value="${s pecificati on.title}" | |
753 | /> | |
754 | ||
755 | <attribute | |
756 | name="Spec ification- Version" | |
757 | value="${s pecificati on.version }" | |
758 | /> | |
759 | ||
760 | <attribute | |
761 | name="Spec ification- Vendor" | |
762 | value="${s pecificati on.vendor} " | |
763 | /> | |
764 | ||
765 | <attribute | |
766 | name="Impl ementation -Title" | |
767 | value="${i mplementat ion.title} " | |
768 | /> | |
769 | ||
770 | <attribute | |
771 | name="Impl ementation -Version" | |
772 | value="${v ersion.num ber}" | |
773 | /> | |
774 | ||
775 | <attribute | |
776 | name="Impl ementation -Vendor" | |
777 | value="${i mplementat ion.vendor }" | |
778 | /> | |
779 | ||
780 | </section> | |
781 | ||
782 | </manifest > | |
783 | ||
784 | </jar> | |
785 | ||
786 | <checksum | |
787 | file="@{de st.file.na me}" | |
788 | /> | |
789 | ||
790 | </sequenti al> | |
791 | ||
792 | </macrodef > | |
793 | ||
794 | ||
795 | <macrodef | |
796 | name="chec kstyle" | |
797 | uri="http: //www. DNS /pharmacy/ mocha" | |
798 | > | |
799 | ||
800 | <attribute | |
801 | name="html " | |
802 | default="t rue" | |
803 | /> | |
804 | ||
805 | <attribute | |
806 | name="proj ect.dir" | |
807 | descriptio n="The pro ject direc tory to sc an for Jav a source c ode." | |
808 | /> | |
809 | ||
810 | <attribute | |
811 | name="proj ect.name" | |
812 | descriptio n="The nam e of the p roject bei ng checked ." | |
813 | /> | |
814 | ||
815 | <sequentia l> | |
816 | ||
817 | <mkdir | |
818 | dir="${rep ort.dir}/c heckstyle" | |
819 | /> | |
820 | ||
821 | <checkstyl e | |
822 | config="${ ps_ms_buil d.dir}/che ckstyle/VA Checkstyle .xml" | |
823 | ||
824 | failOnViol ation="fal se" | |
825 | ||
826 | failurePro perty="che ckstyle.fa ilure" | |
827 | ||
828 | classpathr ef="build. class.path " | |
829 | > | |
830 | ||
831 | <fileset | |
832 | dir="@{pro ject.dir}" | |
833 | > | |
834 | ||
835 | <include | |
836 | name="src/ **/*.java" | |
837 | /> | |
838 | ||
839 | </fileset> | |
840 | ||
841 | <formatter | |
842 | type="xml" | |
843 | tofile="${ report.dir }/checksty le/@{proje ct.name}.x ml" | |
844 | /> | |
845 | ||
846 | </checksty le> | |
847 | ||
848 | ||
849 | <if> | |
850 | ||
851 | <istrue | |
852 | value="@{h tml}" | |
853 | /> | |
854 | ||
855 | <then> | |
856 | ||
857 | <xslt | |
858 | basedir="$ {report.di r}/checkst yle" | |
859 | ||
860 | destdir="$ {report.di r}/checkst yle" | |
861 | ||
862 | style="${p s_ms_build .dir}/chec kstyle/che ckstyle-no frames-sev erity-sort ed.xsl" | |
863 | ||
864 | scaninclud eddirector ies="false " | |
865 | /> | |
866 | ||
867 | </then> | |
868 | ||
869 | </if> | |
870 | ||
871 | <if> | |
872 | ||
873 | <isset | |
874 | property=" checkstyle .failure" | |
875 | /> | |
876 | ||
877 | <then> | |
878 | ||
879 | <fail | |
880 | message="S ource code in the pr oject @{pr oject.name } does not conform t o VA Java Coding Sta ndards." | |
881 | /> | |
882 | ||
883 | </then> | |
884 | ||
885 | </if> | |
886 | ||
887 | </sequenti al> | |
888 | ||
889 | </macrodef > | |
890 | </project> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.