source: src/webapp/build.xml@ 3b7e9f6

debian/bullseye
Last change on this file since 3b7e9f6 was 3b7e9f6, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago
  • Removed not needed styles from GnuBoatColors.css
  • Added subnamespace GnuBoat.Webclient in javascripts
  • Moved common methods into GnuBoat.js (like displayMessage())
  • side-menu.css: Menu is hidden by default (independend from display resolution
  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[e82ce68]1<?xml version="1.0" encoding="UTF-8"?>
2<project name="GNUBoatWebApp" default="dist">
3
[e62038b]4 <property name="builddir" value="../../build/webapp" override="true" />
[e82ce68]5
[46eee06]6 <fileset dir="./common/resources/" id="filesCommonResources">
7 </fileset>
8 <fileset dir="./common/css/" id="filesCommonCss">
9 </fileset>
[3b7e9f6]10 <fileset dir="./common/js/" id="filesCommonJs">
11 </fileset>
[46eee06]12 <fileset dir="../icon/" id="filesGnuboatIcons">
13 <include name="gnuboat-256-256-transparent.png"/>
14 </fileset>
15
[e82ce68]16 <target name="prepare">
17 <echo msg="Making directory ${builddir}" />
18 <mkdir dir="${builddir}"/>
19 </target>
[6f38643]20 <target name="buildwebclient" depends="prepare">
[e82ce68]21 <echo msg="Copying files to build directory"/>
[24d4504]22 <fileset dir="./webclient" id="filesWebclient">
[e82ce68]23 <!-- <exclude name=""/> -->
24 </fileset>
25
[6f38643]26 <copy todir="${builddir}/webclient">
[24d4504]27 <fileset refid="filesWebclient"/>
[e82ce68]28 </copy>
[6f38643]29 <copy todir="${builddir}/webclient/resources">
[5149714]30 <fileset refid="filesGnuboatIcons"/>
[46eee06]31 <fileset refid="filesCommonResources"/>
32 </copy>
33 <copy todir="${builddir}/webclient/css">
34 <fileset refid="filesCommonCss"/>
35 </copy>
[3b7e9f6]36 <copy todir="${builddir}/webclient/js">
37 <fileset refid="filesCommonJs"/>
38 </copy>
[6f38643]39 </target>
40 <target name="buildwebservice" depends="prepare">
[89c32b1]41 <fileset dir="./webservice" id="filesWebservice">
[f03591a]42 <exclude name="mbtiles/**"/>
[c455d7b]43 <exclude name="tests/**"/>
[a50c18f]44 <exclude name="config/**"/>
[89c32b1]45 </fileset>
[6f38643]46 <fileset dir="./webservice/mbtiles" id="filesWebserviceMaps">
47 <!-- <exclude name=""/> -->
48 </fileset>
49
50 <copy todir="${builddir}/webservice">
51 <fileset refid="filesWebservice"/>
52 </copy>
[f03591a]53 <copy todir="${builddir}/webservice/maps">
[6f38643]54 <fileset refid="filesWebserviceMaps"/>
55 </copy>
[e82ce68]56 </target>
57
58 <fileset dir="${builddir}" id="filesWebApp"/>
59
60
[86442cb]61 <target name="dist" depends="buildwebservice,buildwebclient,test">
[e82ce68]62 <echo msg="Creating archive"/>
[008bce9]63 <tar destfile="${builddir}/..//gnuboat-webapp.tar.gz" compression="gzip">
[e82ce68]64 <fileset refid="filesWebApp"/>
[008bce9]65 </tar>
[c455d7b]66 <echo msg="Files copied and compressed in build directory weblcient.tar.gz OK!" />
[e82ce68]67 </target>
[008bce9]68
69 <target name="testdist" depends="buildwebservice,buildwebclient,test">
[e82ce68]70 <echo msg="Install project into ${user.home}/public_html/gnuboat"/>
[a50c18f]71 <fileset id="filesConfig" dir="./webservice/config">
[008bce9]72 <include name="config.php"/>
73 </fileset>
[a50c18f]74 <fileset id="filesLogs" dir="./webservice/tests/logs">
[008bce9]75 <include name="*.log"/>
76 </fileset>
77
[e82ce68]78 <copy todir="${user.home}/public_html/gnuboat">
79 <fileset refid="filesWebApp"/>
80 </copy>
[a50c18f]81 <copy todir="${user.home}/public_html/gnuboat/webservice/tests/logs">
[008bce9]82 <fileset refid="filesLogs"/>
83 </copy>
84 <copy todir="${user.home}/public_html/gnuboat/webservice/config">
85 <fileset refid="filesConfig"/>
86 </copy>
[e82ce68]87 </target>
[3c9166b]88
[86442cb]89 <target name="test">
[c0e66e6]90 <exec command="php phpunit-7.4.3.phar" passthru="true" checkreturn="true"/>
[0662b2d]91 <!--<phpunit pharlocation="phpunit-4.8.9.phar" configuration="phpunit.xml" haltonfailure="true" haltonerror="true" printsummary="true" codecoverage="false">
92 <formatter type="plain" usefile="false"/> -->
[008bce9]93 <!--<formatter type="JUnit" usefile="true"/>-->
[0662b2d]94<!-- <batchtest>
[86442cb]95 <fileset dir="webservice">
96 <include name="tests/*Test.php"/>
97 </fileset>
98 </batchtest>
[0662b2d]99 </phpunit>-->
[86442cb]100 </target>
[3c9166b]101
[573626d]102 <target name="testdist-sample-logs" depends="testdist">
[3c9166b]103 <echo msg="Install sample logs"/>
[573626d]104 <fileset id="filesSampleLogs" dir="../../sample-logs">
[3c9166b]105 <include name="*.log"/>
106 </fileset>
[573626d]107 <fileset id="filesCalcLogs" dir="../../sample-logs/calc-demo">
[3c9166b]108 <include name="*.log"/>
109 </fileset>
110 <copy todir="${user.home}/public_html/gnuboat/webservice/tests/logs">
111 <fileset refid="filesSampleLogs"/>
112 <fileset refid="filesCalcLogs"/>
113 </copy>
114 </target>
[e82ce68]115</project>
Note: See TracBrowser for help on using the repository browser.