| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2016 IBM Corporation and others. |
| |
| This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License 2.0 |
| which accompanies this distribution, and is available at |
| https://www.eclipse.org/legal/epl-2.0/ |
| |
| SPDX-License-Identifier: EPL-2.0 |
| |
| Contributors: |
| David Williams - initial API and implementation |
| --> |
| |
| <project |
| name="Eclipse summarize comparator logs" |
| default="compare"> |
| |
| <target |
| name="compare" |
| depends="checkAvailability, init" |
| if="propertyFileAvailable"> |
| <echo message="Genererating comparator log summaries ..." /> |
| <!-- |
| we get these properties so we can print out the repository |
| used by comparator, 'comparator.repo'. |
| --> |
| <loadproperties srcfile="${buildDirectory}/mavenproperties.properties" /> |
| <!--create html output for compile logs --> |
| <comparatorSummary |
| builddirectory="${buildDirectory}" |
| comparatorRepo="${comparator.repo}" /> |
| </target> |
| <target |
| name="checkAvailability" |
| depends="init" |
| unless="propertyFileAvailable"> |
| <echo message="WARNING: eclipse_compare not performed since property file did not exist: " /> |
| <echo message=" ${buildDirectory}/mavenproperties.properties" /> |
| </target> |
| <target |
| name="init" |
| unless="eclipse_compare.initialized"> |
| <!-- |
| if this property file is not available, that means some other part of the build |
| failed (or intentionally skipped) so there is no ability to do this task. Having |
| the explicit check here has advantage of avoiding error messages in error log. |
| --> |
| <available |
| file="${buildDirectory}/mavenproperties.properties" |
| property="propertyFileAvailable" /> |
| <property |
| name="eclipse_compare.initialized" |
| value="true" /> |
| </target> |
| |
| </project> |