source: src/webapp/build.xml@ a2b8052

debian/bullseye
Last change on this file since a2b8052 was be25db1, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Improved adding Water UI in mapservice-webclient

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (C) 2017 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17-->
18<project name="GNUBoatWebApp" default="dist">
19
20 <property name="builddir" value="../../build/webapp" override="true" />
21
22 <fileset dir="../common/resources/" id="filesCommonResources">
23 </fileset>
24 <fileset dir="../common/css/" id="filesCommonCss">
25 </fileset>
26 <fileset dir="../common/js/" id="filesCommonJs">
27 </fileset>
28 <fileset dir="../common/lib/" id="filesCommonLib">
29 </fileset>
30 <fileset dir="../common/icon/" id="filesGnuboatIcons">
31 <include name="gnuboat-256-256-transparent.png"/>
32 </fileset>
33
34 <target name="prepare">
35 <echo msg="Making directory ${builddir}" />
36 <mkdir dir="${builddir}"/>
37 </target>
38 <target name="buildwebclient" depends="prepare">
39 <echo msg="Copying files to build directory"/>
40 <fileset dir="./webclient" id="filesWebclient">
41 <!-- <exclude name=""/> -->
42 </fileset>
43
44 <copy todir="${builddir}/webclient">
45 <fileset refid="filesWebclient"/>
46 </copy>
47 <copy todir="${builddir}/webclient/resources">
48 <fileset refid="filesGnuboatIcons"/>
49 <fileset refid="filesCommonResources"/>
50 </copy>
51 <copy todir="${builddir}/webclient/css">
52 <fileset refid="filesCommonCss"/>
53 </copy>
54 <copy todir="${builddir}/webclient/js">
55 <fileset refid="filesCommonJs"/>
56 </copy>
57 <copy todir="${builddir}/webclient/lib">
58 <fileset refid="filesCommonLib"/>
59 </copy>
60 </target>
61 <target name="buildwebservice" depends="prepare">
62 <fileset dir="./webservice" id="filesWebservice">
63 <exclude name="mbtiles/**"/>
64 <exclude name="tests/**"/>
65 <exclude name="config/**"/>
66 </fileset>
67 <fileset dir="./webservice/mbtiles" id="filesWebserviceMaps">
68 <!-- <exclude name=""/> -->
69 </fileset>
70
71 <copy todir="${builddir}/webservice">
72 <fileset refid="filesWebservice"/>
73 </copy>
74 <copy todir="${builddir}/webservice/maps">
75 <fileset refid="filesWebserviceMaps"/>
76 </copy>
77 </target>
78 <target name="buildwebserver" depends="prepare">
79 <echo msg="Copying files to build directory"/>
80 <fileset dir="./webserver" id="filesWebserver">
81 <!-- <exclude name=""/> -->
82 </fileset>
83
84 <copy todir="${builddir}/webserver">
85 <fileset refid="filesWebserver"/>
86 </copy>
87 <copy todir="${builddir}/webserver/resources">
88 <fileset refid="filesGnuboatIcons"/>
89 <fileset refid="filesCommonResources"/>
90 </copy>
91 <copy todir="${builddir}/webserver/css">
92 <fileset refid="filesCommonCss"/>
93 </copy>
94 <copy todir="${builddir}/webserver/js">
95 <fileset refid="filesCommonJs"/>
96 </copy>
97 <mkdir dir="${builddir}/webserver/tiles"/>
98 </target>
99
100 <fileset dir="${builddir}" id="filesWebApp"/>
101
102
103 <target name="dist" depends="buildwebservice,buildwebclient,buildwebserver,test">
104 <echo msg="Creating archive"/>
105 <tar destfile="${builddir}/..//gnuboat-webapp.tar.gz" compression="gzip">
106 <fileset refid="filesWebApp"/>
107 </tar>
108 <echo msg="Files copied and compressed in build directory weblcient.tar.gz OK!" />
109 </target>
110
111 <target name="testdist" depends="buildwebservice,buildwebclient,buildwebserver,test">
112 <echo msg="Install project into ${user.home}/public_html/gnuboat"/>
113 <fileset id="filesConfig" dir="./webservice/config">
114 <include name="config.php"/>
115 </fileset>
116 <fileset id="filesLogs" dir="./webservice/tests/logs">
117 <include name="*.log"/>
118 </fileset>
119
120 <copy todir="${user.home}/public_html/gnuboat">
121 <fileset refid="filesWebApp"/>
122 </copy>
123 <copy todir="${user.home}/public_html/gnuboat/webservice/tests/logs">
124 <fileset refid="filesLogs"/>
125 </copy>
126 <copy todir="${user.home}/public_html/gnuboat/webservice/config">
127 <fileset refid="filesConfig"/>
128 </copy>
129 </target>
130
131 <target name="test">
132 <exec command="php phpunit-7.4.3.phar" passthru="true" checkreturn="true"/>
133 <!--<phpunit pharlocation="phpunit-4.8.9.phar" configuration="phpunit.xml" haltonfailure="true" haltonerror="true" printsummary="true" codecoverage="false">
134 <formatter type="plain" usefile="false"/> -->
135 <!--<formatter type="JUnit" usefile="true"/>-->
136<!-- <batchtest>
137 <fileset dir="webservice">
138 <include name="tests/*Test.php"/>
139 </fileset>
140 </batchtest>
141 </phpunit>-->
142 </target>
143
144 <target name="testdist-sample-logs" depends="testdist">
145 <echo msg="Install sample logs"/>
146 <fileset id="filesSampleLogs" dir="../../sample-logs">
147 <include name="*.log"/>
148 </fileset>
149 <fileset id="filesCalcLogs" dir="../../sample-logs/calc-demo">
150 <include name="*.log"/>
151 </fileset>
152 <copy todir="${user.home}/public_html/gnuboat/webservice/tests/logs">
153 <fileset refid="filesSampleLogs"/>
154 <fileset refid="filesCalcLogs"/>
155 </copy>
156 </target>
157</project>
Note: See TracBrowser for help on using the repository browser.