|
19 | 19 | </target>
|
20 | 20 |
|
21 | 21 | <target name="build-continuous" depends="unit-shopware-continuous"/>
|
22 |
| - <target name="build-unit" depends="build-composer-install, build-cache-dir, build-database, build-snippets-deploy, build-theme-initialize,build-create-admin-account, build-install-lock-file, build-disable-firstrunwizard, install-git-hooks" /> |
| 22 | + <target name="build-unit" depends="build-composer-install, build-cache-dir, build-database, build-snippets-deploy, build-theme-initialize,build-create-admin-account, build-install-lock-file, build-disable-firstrunwizard, install-git-hooks"/> |
23 | 23 | <target name="test-unit" depends="unit-shopware"/>
|
24 | 24 |
|
25 | 25 | <target name="write-properties" description="Write build-variables to file">
|
26 | 26 | <propertyfile file="${build.dir}/build.properties" comment="Project properties">
|
27 |
| - <entry key="db.host" value="${db.host}"/> |
28 |
| - <entry key="db.name" value="${db.name}"/> |
29 |
| - <entry key="db.user" value="${db.user}"/> |
30 |
| - <entry key="db.password" value="${db.password}"/> |
31 |
| - <entry key="db.port" value="${db.port}"/> |
32 |
| - <entry key="app.path" value="${app.path}"/> |
33 |
| - <entry key="app.host" value="${app.host}"/> |
| 27 | + <entry key="db.host" value="${db.host}"/> |
| 28 | + <entry key="db.name" value="${db.name}"/> |
| 29 | + <entry key="db.user" value="${db.user}"/> |
| 30 | + <entry key="db.password" value="${db.password}"/> |
| 31 | + <entry key="db.port" value="${db.port}"/> |
| 32 | + <entry key="app.path" value="${app.path}"/> |
| 33 | + <entry key="app.host" value="${app.host}"/> |
34 | 34 | </propertyfile>
|
35 | 35 | </target>
|
36 | 36 |
|
37 | 37 | <target name="configure" description="Set up build-variables">
|
38 | 38 | <input message="Please enter db-host:"
|
39 | 39 | addproperty="user.db.host"
|
40 |
| - defaultvalue="${db.host}" /> |
| 40 | + defaultvalue="${db.host}"/> |
41 | 41 |
|
42 | 42 | <input message="Please enter db-port:"
|
43 | 43 | addproperty="user.db.port"
|
44 |
| - defaultvalue="${db.port}" /> |
| 44 | + defaultvalue="${db.port}"/> |
45 | 45 |
|
46 | 46 | <input message="Please enter db-name:"
|
47 | 47 | addproperty="user.db.name"
|
48 |
| - defaultvalue="${db.name}" /> |
| 48 | + defaultvalue="${db.name}"/> |
49 | 49 |
|
50 | 50 | <input message="Please enter db-username:"
|
51 | 51 | addproperty="user.db.user"
|
52 |
| - defaultvalue="${db.user}" /> |
| 52 | + defaultvalue="${db.user}"/> |
53 | 53 |
|
54 | 54 | <input message="Please enter db-password:"
|
55 | 55 | addproperty="user.db.password">
|
56 | 56 | </input>
|
57 | 57 |
|
58 | 58 | <input message="Please enter app.host (Hostname e.g. example.com):"
|
59 | 59 | addproperty="user.app.host"
|
60 |
| - defaultvalue="${app.host}" /> |
| 60 | + defaultvalue="${app.host}"/> |
61 | 61 |
|
62 | 62 | <input message="Please enter app.path (e.g. /shopware. Leave blank if installed in document root):"
|
63 | 63 | addproperty="user.app.path"
|
64 |
| - defaultvalue="${app.path}" /> |
| 64 | + defaultvalue="${app.path}"/> |
65 | 65 |
|
66 | 66 | <antcall target="write-properties">
|
67 | 67 | <param name="db.host" value="${user.db.host}"/>
|
|
79 | 79 | <available file="${basedir}/composer.phar" property="composer.binary.present"/>
|
80 | 80 | </target>
|
81 | 81 |
|
82 |
| - <target name="install-composer-binary" depends="check-composer-binary" unless="composer.binary.present"> |
| 82 | + <target name="install-composer-binary" depends="check-composer-binary" unless="composer.binary.present"> |
83 | 83 | <exec executable="bash" failonerror="true">
|
84 |
| - <arg value="-c" /> |
85 |
| - <arg value="curl -s https://getcomposer.org/installer | ${script.php}" /> |
| 84 | + <arg value="-c"/> |
| 85 | + <arg value="curl -s https://getcomposer.org/installer | ${script.php}"/> |
86 | 86 | </exec>
|
87 | 87 | </target>
|
88 | 88 |
|
|
97 | 97 |
|
98 | 98 | <target name="build-composer-install" depends="update-composer-binary">
|
99 | 99 | <exec executable="${script.php}" failonerror="true">
|
100 |
| - <arg value="composer.phar" /> |
101 |
| - <arg value="install" /> |
102 |
| - <arg value="--no-interaction" /> |
103 |
| - <arg value="--optimize-autoloader" /> |
104 |
| - <arg value="--no-suggest" /> |
| 100 | + <arg value="composer.phar"/> |
| 101 | + <arg value="update"/> |
| 102 | + <arg value="laminas/laminas-code"/> |
| 103 | + </exec> |
| 104 | + |
| 105 | + <exec executable="${script.php}" failonerror="true"> |
| 106 | + <arg value="composer.phar"/> |
| 107 | + <arg value="install"/> |
| 108 | + <arg value="--no-interaction"/> |
| 109 | + <arg value="--optimize-autoloader"/> |
| 110 | + <arg value="--no-suggest"/> |
105 | 111 | </exec>
|
106 | 112 | </target>
|
107 | 113 |
|
108 | 114 | <target name="build-composer-update" depends="update-composer-binary">
|
109 | 115 | <exec executable="${script.php}" failonerror="true">
|
110 |
| - <arg value="composer.phar" /> |
111 |
| - <arg value="update" /> |
112 |
| - <arg value="--no-interaction" /> |
| 116 | + <arg value="composer.phar"/> |
| 117 | + <arg value="update"/> |
| 118 | + <arg value="--no-interaction"/> |
113 | 119 | </exec>
|
114 | 120 | </target>
|
115 | 121 |
|
116 | 122 | <target name="check-code-style" depends="build-composer-install">
|
117 | 123 | <exec executable="${script.php}" failonerror="true">
|
118 |
| - <arg value="vendor/bin/php-cs-fixer" /> |
119 |
| - <arg value="fix" /> |
120 |
| - <arg value="--dry-run" /> |
121 |
| - <arg value="--stop-on-violation" /> |
122 |
| - <arg value="--verbose" /> |
123 |
| - <arg value="--show-progress=dots" /> |
| 124 | + <arg value="vendor/bin/php-cs-fixer"/> |
| 125 | + <arg value="fix"/> |
| 126 | + <arg value="--dry-run"/> |
| 127 | + <arg value="--stop-on-violation"/> |
| 128 | + <arg value="--verbose"/> |
| 129 | + <arg value="--show-progress=dots"/> |
124 | 130 | </exec>
|
125 | 131 | </target>
|
126 | 132 |
|
127 |
| - <target name="build-database" depends="build-database-foundation, build-database-deploy-demodata" /> |
| 133 | + <target name="build-database" depends="build-database-foundation, build-database-deploy-demodata"/> |
128 | 134 |
|
129 | 135 | <target name="build-create-admin-account">
|
130 | 136 | <exec executable="${script.php}" dir="${basedir}/bin" failonerror="true">
|
|
192 | 198 |
|
193 | 199 | <target name="build-install-lock-file">
|
194 | 200 | <tstamp>
|
195 |
| - <format property="installDate" pattern="yyyyMMddHHmm" /> |
| 201 | + <format property="installDate" pattern="yyyyMMddHHmm"/> |
196 | 202 | </tstamp>
|
197 | 203 |
|
198 | 204 | <echo file="${basedir}/recovery/install/data/install.lock">${installDate}</echo>
|
|
237 | 243 |
|
238 | 244 | <target name="unit-continuous-es">
|
239 | 245 | <exec executable="${script.phpunit}" failonerror="true" dir="${test.dir.shopware}">
|
240 |
| - <arg value="--exclude-group=skipElasticSearch" /> |
241 |
| - <arg value="--group=elasticSearch" /> |
| 246 | + <arg value="--exclude-group=skipElasticSearch"/> |
| 247 | + <arg value="--group=elasticSearch"/> |
242 | 248 | <arg value="--log-junit=${log.dir}/junit.xml"/>
|
243 | 249 | </exec>
|
244 | 250 | </target>
|
|
258 | 264 | </target>
|
259 | 265 |
|
260 | 266 | <target name="stop-server">
|
261 |
| - <exec executable="${script.server.stop}" /> |
| 267 | + <exec executable="${script.server.stop}"/> |
262 | 268 | </target>
|
263 | 269 |
|
264 | 270 | <target name="mink-shopware-continuous-responsive">
|
|
284 | 290 |
|
285 | 291 | <target name="static-lint" description="Perform syntax check of sourcecode files">
|
286 | 292 | <exec executable="bash" failonerror="true">
|
287 |
| - <arg value="-c" /> |
288 |
| - <arg value="find -L ${basedir}/engine/Shopware/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l" /> |
| 293 | + <arg value="-c"/> |
| 294 | + <arg value="find -L ${basedir}/engine/Shopware/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l"/> |
289 | 295 | </exec>
|
290 | 296 | </target>
|
291 | 297 |
|
|
294 | 300 | <arg value="--standard=${build.dir}"/>
|
295 | 301 | <arg value="--report=checkstyle"/>
|
296 | 302 | <arg value="--report-file=${log.dir}/checkstyle.xml"/>
|
297 |
| - <arg value="--extensions=php" /> |
298 |
| - <arg value="-n" /> |
| 303 | + <arg value="--extensions=php"/> |
| 304 | + <arg value="-n"/> |
299 | 305 | <arg value="${app.dir}/"/>
|
300 | 306 | </exec>
|
301 | 307 | </target>
|
|
311 | 317 | </target>
|
312 | 318 |
|
313 | 319 | <target name="static-phpcpd" description="PHP Copy/Paste Detector">
|
314 |
| - <exec executable="${script.phpcpd}" failonerror="false" output="/dev/null" error="${log.dir}/error.log" append="true"> |
| 320 | + <exec executable="${script.phpcpd}" |
| 321 | + failonerror="false" |
| 322 | + output="/dev/null" |
| 323 | + error="${log.dir}/error.log" |
| 324 | + append="true"> |
315 | 325 | <arg value="--log-pmd"/>
|
316 | 326 | <arg value="${log.dir}/cpd.xml"/>
|
317 | 327 | <arg value="${app.dir}/"/>
|
318 | 328 | </exec>
|
319 | 329 | </target>
|
320 | 330 |
|
321 | 331 | <target name="static-phploc" description="PHP Lines of Code">
|
322 |
| - <exec executable="${script.phploc}" failonerror="false" output="${log.dir}/loc.txt" error="${log.dir}/error.log" append="true"> |
| 332 | + <exec executable="${script.phploc}" |
| 333 | + failonerror="false" |
| 334 | + output="${log.dir}/loc.txt" |
| 335 | + error="${log.dir}/error.log" |
| 336 | + append="true"> |
323 | 337 | <arg value="--log-xml"/>
|
324 | 338 | <arg value="${log.dir}/loc.xml"/>
|
325 | 339 | <arg value="--log-csv"/>
|
|
331 | 345 |
|
332 | 346 | <target name="static-pdepend">
|
333 | 347 | <mkdir dir="${log.dir}/depend"/>
|
334 |
| - <exec executable="${script.pdepend}" failonerror="false" output="${log.dir}/depend/output.txt" error="${log.dir}/error.log" append="true" dir="${app.dir}"> |
| 348 | + <exec executable="${script.pdepend}" |
| 349 | + failonerror="false" |
| 350 | + output="${log.dir}/depend/output.txt" |
| 351 | + error="${log.dir}/error.log" |
| 352 | + append="true" |
| 353 | + dir="${app.dir}"> |
335 | 354 | <arg value="--summary-xml=${log.dir}/depend/summary.xml"/>
|
336 | 355 | <arg value="--jdepend-chart=${log.dir}/depend/jdepend.svg"/>
|
337 | 356 | <arg value="--overview-pyramid=${log.dir}/depend/pyramid.svg"/>
|
|
340 | 359 | </target>
|
341 | 360 |
|
342 | 361 | <target name="build-phpcb" description="Build CodeBrowser">
|
343 |
| - <exec executable="${script.phpcb}" failonerror="false" output="/dev/null" error="${log.dir}/error.log" append="true"> |
| 362 | + <exec executable="${script.phpcb}" |
| 363 | + failonerror="false" |
| 364 | + output="/dev/null" |
| 365 | + error="${log.dir}/error.log" |
| 366 | + append="true"> |
344 | 367 | <arg value="-l${log.dir}"/>
|
345 | 368 | <arg value="-o${log.dir}/code-browser"/>
|
346 | 369 | <arg value="-s${app.dir}"/>
|
|
373 | 396 | <target name="compile-tinymce" description="Builds a TinyMce package with default used plugins">
|
374 | 397 | <!-- Combine all files -->
|
375 | 398 | <concat destfile="${basedir}/engine/Library/TinyMce/tiny_mce_full.js">
|
376 |
| - <fileset dir="${basedir}/engine/Library/TinyMce/" includes="tiny_mce.js" /> |
377 |
| - <fileset dir="${basedir}/engine/Library/TinyMce/" includes="themes/advanced/langs/en.js" /> |
378 |
| - <fileset dir="${basedir}/engine/Library/TinyMce/" includes="themes/advanced/langs/de.js" /> |
379 |
| - <fileset dir="${basedir}/engine/Library/TinyMce/" includes="plugins/media_selection/editor_plugin.js" /> |
380 |
| - <fileset dir="${basedir}/engine/Library/TinyMce/" includes="plugins/fullscreen/editor_plugin.js" /> |
| 399 | + <fileset dir="${basedir}/engine/Library/TinyMce/" includes="tiny_mce.js"/> |
| 400 | + <fileset dir="${basedir}/engine/Library/TinyMce/" includes="themes/advanced/langs/en.js"/> |
| 401 | + <fileset dir="${basedir}/engine/Library/TinyMce/" includes="themes/advanced/langs/de.js"/> |
| 402 | + <fileset dir="${basedir}/engine/Library/TinyMce/" includes="plugins/media_selection/editor_plugin.js"/> |
| 403 | + <fileset dir="${basedir}/engine/Library/TinyMce/" includes="plugins/fullscreen/editor_plugin.js"/> |
381 | 404 | </concat>
|
382 | 405 | </target>
|
383 | 406 | </project>
|
0 commit comments