1 <?xml version="1.0" encoding="UTF-8"?>
3 <project name="OpenEMR"
4 description="OpenEMR is a Free and Open Source electronic health records and medical practice management application"
5 default="dist" basedir=".">
7 <property name="dir.src" value="${project.basedir}"/>
8 <property name="dir.vendor" value="${project.basedir}/vendor"/>
9 <property name="dir.assets" value="${project.basedir}/public/assets"/>
11 <target name="vendor-clean">
12 <echo msg="Trying to clean up vendor dir"/>
13 <phingcall target="clean-vendor-dir">
17 <target name="assets-clean">
18 <echo msg="Trying to clean up assets dir"/>
19 <phingcall target="clean-assets-dir">
24 <target name="clean-vendor-dir">
25 <!-- Delete git files from vendor -->
26 <delete verbose="true">
27 <fileset dir="${dir.vendor}" includes="**/*.git*" defaultexcludes="false"/>
28 <fileset dir="${dir.vendor}" includes="**/*.cvs*" defaultexcludes="false"/>
31 <delete dir="${dir.vendor}/adodb/adodb-php/tests" verbose="true"/>
32 <delete dir="${dir.vendor}/adodb/adodb-php/docs" verbose="true"/>
33 <delete dir="${dir.vendor}/doctrine/cache/tests" verbose="true"/>
34 <delete dir="${dir.vendor}/doctrine/collections/tests" verbose="true"/>
35 <delete dir="${dir.vendor}/doctrine/common/tests" verbose="true"/>
36 <delete dir="${dir.vendor}/doctrine/couchdb/tests" verbose="true"/>
37 <delete dir="${dir.vendor}/doctrine/inflector/tests" verbose="true"/>
38 <delete dir="${dir.vendor}/doctrine/instantiator/tests" verbose="true"/>
39 <delete dir="${dir.vendor}/doctrine/orm/docs" verbose="true"/>
40 <delete dir="${dir.vendor}/dompdf/dompdf/wwww" verbose="true"/>
41 <delete dir="${dir.vendor}/dompdf/dompdf/tests" verbose="true"/>
42 <delete dir="${dir.vendor}/ezyang/htmlpurifier/test" verbose="true"/>
43 <delete dir="${dir.vendor}/ezyang/htmlpurifier/maintenance" verbose="true"/>
44 <delete dir="${dir.vendor}/ezyang/htmlpurifier/plugins" verbose="true"/>
45 <delete dir="${dir.vendor}/illuminate/support/Testing" verbose="true"/>
46 <delete dir="${dir.vendor}/phpmailer/phpmailer/examples" verbose="true"/>
47 <delete dir="${dir.vendor}/phpmailer/phpmailer/test" verbose="true"/>
48 <delete dir="${dir.vendor}/phpmailer/phpmailer/docs" verbose="true"/>
49 <delete dir="${dir.vendor}/phpoffice/phpspreadsheet/docs" verbose="true"/>
50 <delete dir="${dir.vendor}/phpoffice/phpspreadsheet/samples" verbose="true"/>
51 <delete dir="${dir.vendor}/phpunit/php-code-coverage/tests" verbose="true"/>
52 <delete dir="${dir.vendor}/phpunit/tests" verbose="true"/>
53 <delete dir="${dir.vendor}/psr/log/Psr/Log/Test" verbose="true"/>
54 <delete dir="${dir.vendor}/rospdf/pdf-php/examples" verbose="true"/>
55 <delete dir="${dir.vendor}/smarty/smarty/demo" verbose="true"/>
56 <delete dir="${dir.vendor}/stripe/stripe-php/tests" verbose="true"/>
57 <delete dir="${dir.vendor}/stripe/stripe-php/examples" verbose="true"/>
58 <delete dir="${dir.vendor}/symfony/config/Tests" verbose="true"/>
59 <delete dir="${dir.vendor}/symfony/console/Tester" verbose="true"/>
60 <delete dir="${dir.vendor}/symfony/console/Tests" verbose="true"/>
61 <delete dir="${dir.vendor}/symfony/dependency-injection/Tests" verbose="true"/>
62 <delete dir="${dir.vendor}/symfony/debug/Resources/ext/tests" verbose="true"/>
63 <delete dir="${dir.vendor}/symfony/debug/Tests" verbose="true"/>
64 <delete dir="${dir.vendor}/symfony/event-dispatcher/Tests" verbose="true"/>
65 <delete dir="${dir.vendor}/symfony/filesystem/Tests" verbose="true"/>
66 <delete dir="${dir.vendor}/symfony/http-foundation/Tests" verbose="true"/>
67 <delete dir="${dir.vendor}/symfony/process/Tests" verbose="true"/>
68 <delete dir="${dir.vendor}/symfony/yaml/Tests" verbose="true"/>
69 <delete dir="${dir.vendor}/twig/twig/doc" verbose="true"/>
70 <delete dir="${dir.vendor}/twig/twig/test" verbose="true"/>
74 <target name="clean-assets-dir">
75 <!-- Delete git files from vendor -->
76 <delete verbose="true">
77 <fileset dir="${dir.assets}" includes="**/*.git*" defaultexcludes="false"/>
78 <fileset dir="${dir.assets}" includes="**/*.cvs*" defaultexcludes="false"/>
81 <delete dir="${dir.assets}/AnythingSlider-1-9-4/demos" verbose="true"/>
82 <delete dir="${dir.assets}/bootstrap-rtl-3-3-4/examples" verbose="true"/>
83 <delete dir="${dir.assets}/Chart.js-2-1-3/docs" verbose="true"/>
84 <delete dir="${dir.assets}/Chart.js-2-1-3/samples" verbose="true"/>
85 <delete dir="${dir.assets}/Chart.js-2-1-3/test" verbose="true"/>
86 <delete dir="${dir.assets}/flot-0-8-3/examples" verbose="true"/>
87 <delete dir="${dir.assets}/jquery-datetimepicker-2-5-4/tests" verbose="true"/>
88 <delete dir="${dir.assets}/jszip-3-1-5/docs" verbose="true"/>
89 <delete dir="${dir.assets}/jszip-3-1-5/documentation" verbose="true"/>
90 <delete dir="${dir.assets}/modernizr-3-5-0/test" verbose="true"/>
91 <delete dir="${dir.assets}/numeral-1-5-3/tests" verbose="true"/>
92 <delete dir="${dir.assets}/qtip2-3-0-3/grunt" verbose="true"/>
93 <delete dir="${dir.assets}/qtip2-3-0-3/src" verbose="true"/>
94 <delete dir="${dir.assets}/select2-4-0/docs" verbose="true"/>
95 <delete dir="${dir.assets}/select2-4-0/tests" verbose="true"/>
96 <delete dir="${dir.assets}/summernote-0-8-2/examples" verbose="true"/>
97 <delete dir="${dir.assets}/summernote-0-8-2/lang" verbose="true"/>
98 <delete dir="${dir.assets}/summernote-0-8-2/meteor" verbose="true"/>
99 <delete dir="${dir.assets}/summernote-0-8-2/plugin" verbose="true"/>
100 <delete dir="${dir.assets}/summernote-0-8-2/src" verbose="true"/>
101 <delete dir="${dir.assets}/summernote-0-8-2/tools" verbose="true"/>