source: src/webapp/build.xml@ 28198a1

debian/bullseye
Last change on this file since 28198a1 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
RevLine 
[e82ce68]1<?xml version="1.0" encoding="UTF-8"?>
[883b4a5]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-->
[e82ce68]18<project name="GNUBoatWebApp" default="dist">
19
[e62038b]20 <property name="builddir" value="../../build/webapp" override="true" />
[e82ce68]21
[be25db1]22 <fileset dir="../common/resources/" id="filesCommonResources">
[46eee06]23 </fileset>
[be25db1]24 <fileset dir="../common/css/" id="filesCommonCss">
[46eee06]25 </fileset>
[be25db1]26 <fileset dir="../common/js/" id="filesCommonJs">
[3b7e9f6]27 </fileset>
[be25db1]28 <fileset dir="../common/lib/" id="filesCommonLib">
29 </fileset>
30 <fileset dir="../common/icon/" id="filesGnuboatIcons">
[46eee06]31 <include name="gnuboat-256-256-transparent.png"/>
32 </fileset>
33
[e82ce68]34 <target name="prepare">
35 <echo msg="Making directory ${builddir}" />
36 <mkdir dir="${builddir}"/>
37 </target>
[6f38643]38 <target name="buildwebclient" depends="prepare">
[e82ce68]39 <echo msg="Copying files to build directory"/>
[24d4504]40 <fileset dir="./webclient" id="filesWebclient">
[e82ce68]41 <!-- <exclude name=""/> -->
42 </fileset>
43
[6f38643]44 <copy todir="${builddir}/webclient">
[24d4504]45 <fileset refid="filesWebclient"/>
[e82ce68]46 </copy>
[6f38643]47 <copy todir="${builddir}/webclient/resources">
[5149714]48 <fileset refid="filesGnuboatIcons"/>
[46eee06]49 <fileset refid="filesCommonResources"/>
50 </copy>
51 <copy todir="${builddir}/webclient/css">
52 <fileset refid="filesCommonCss"/>
53 </copy>
[3b7e9f6]54 <copy todir="${builddir}/webclient/js">
55 <fileset refid="filesCommonJs"/>
56 </copy>
[be25db1]57 <copy todir="${builddir}/webclient/lib">
58 <fileset refid="filesCommonLib"/>
59 </copy>
[6f38643]60 </target>
61 <target name="buildwebservice" depends="prepare">
[89c32b1]62 <fileset dir="./webservice" id="filesWebservice">
[f03591a]63 <exclude name="mbtiles/**"/>
[c455d7b]64 <exclude name="tests/**"/>
[a50c18f]65 <exclude name="config/**"/>
[89c32b1]66 </fileset>
[6f38643]67 <fileset dir="./webservice/mbtiles" id="filesWebserviceMaps">
68 <!-- <exclude name=""/> -->
69 </fileset>
70
71 <copy todir="${builddir}/webservice">
72 <fileset refid="filesWebservice"/>
73 </copy>
[f03591a]74 <copy todir="${builddir}/webservice/maps">
[6f38643]75 <fileset refid="filesWebserviceMaps"/>
76 </copy>
[e82ce68]77 </target>
[883b4a5]78 <target name="buildwebserver" depends="prepare">
[2fa2ef8]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>
[883b4a5]97 <mkdir dir="${builddir}/webserver/tiles"/>
[2fa2ef8]98 </target>
[e82ce68]99
100 <fileset dir="${builddir}" id="filesWebApp"/>
101
102
[2fa2ef8]103 <target name="dist" depends="buildwebservice,buildwebclient,buildwebserver,test">
[e82ce68]104 <echo msg="Creating archive"/>
[008bce9]105 <tar destfile="${builddir}/..//gnuboat-webapp.tar.gz" compression="gzip">
[e82ce68]106 <fileset refid="filesWebApp"/>
[008bce9]107 </tar>
[c455d7b]108 <echo msg="Files copied and compressed in build directory weblcient.tar.gz OK!" />
[e82ce68]109 </target>
[008bce9]110
[2fa2ef8]111 <target name="testdist" depends="buildwebservice,buildwebclient,buildwebserver,test">
[e82ce68]112 <echo msg="Install project into ${user.home}/public_html/gnuboat"/>
[a50c18f]113 <fileset id="filesConfig" dir="./webservice/config">
[008bce9]114 <include name="config.php"/>
115 </fileset>
[a50c18f]116 <fileset id="filesLogs" dir="./webservice/tests/logs">
[008bce9]117 <include name="*.log"/>
118 </fileset>
119
[e82ce68]120 <copy todir="${user.home}/public_html/gnuboat">
121 <fileset refid="filesWebApp"/>
122 </copy>
[a50c18f]123 <copy todir="${user.home}/public_html/gnuboat/webservice/tests/logs">
[008bce9]124 <fileset refid="filesLogs"/>
125 </copy>
126 <copy todir="${user.home}/public_html/gnuboat/webservice/config">
127 <fileset refid="filesConfig"/>
128 </copy>
[e82ce68]129 </target>
[3c9166b]130
[86442cb]131 <target name="test">
[c0e66e6]132 <exec command="php phpunit-7.4.3.phar" passthru="true" checkreturn="true"/>
[0662b2d]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"/> -->
[008bce9]135 <!--<formatter type="JUnit" usefile="true"/>-->
[0662b2d]136<!-- <batchtest>
[86442cb]137 <fileset dir="webservice">
138 <include name="tests/*Test.php"/>
139 </fileset>
140 </batchtest>
[0662b2d]141 </phpunit>-->
[86442cb]142 </target>
[3c9166b]143
[573626d]144 <target name="testdist-sample-logs" depends="testdist">
[3c9166b]145 <echo msg="Install sample logs"/>
[573626d]146 <fileset id="filesSampleLogs" dir="../../sample-logs">
[3c9166b]147 <include name="*.log"/>
148 </fileset>
[573626d]149 <fileset id="filesCalcLogs" dir="../../sample-logs/calc-demo">
[3c9166b]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>
[e82ce68]157</project>
Note: See TracBrowser for help on using the repository browser.