| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<!-- |
| 4 |
Licensed to the Apache Software Foundation (ASF) under one |
| 5 |
or more contributor license agreements. See the NOTICE file |
| 6 |
distributed with this work for additional information |
| 7 |
regarding copyright ownership. The ASF licenses this file |
| 8 |
to you under the Apache License, Version 2.0 (the |
| 9 |
"License"); you may not use this file except in compliance |
| 10 |
with the License. You may obtain a copy of the License at |
| 11 |
|
| 12 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 13 |
|
| 14 |
Unless required by applicable law or agreed to in writing, |
| 15 |
software distributed under the License is distributed on an |
| 16 |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 17 |
KIND, either express or implied. See the License for the |
| 18 |
specific language governing permissions and limitations |
| 19 |
under the License. |
| 20 |
--> |
| 21 |
|
| 22 |
<project name="MANTRUN-178" default="main"> |
| 23 |
<condition property="isProp1Ok"> |
| 24 |
<equals arg1="${prop1}" arg2="val1-pom" /> |
| 25 |
</condition> |
| 26 |
<condition property="isProp2Ok"> |
| 27 |
<equals arg1="${prop2}" arg2="val2-cli" /> |
| 28 |
</condition> |
| 29 |
<condition property="isProp3Ok"> |
| 30 |
<not><isset property="${prop3}" /></not> |
| 31 |
</condition> |
| 32 |
|
| 33 |
<target name="-prop1" unless="isProp1Ok"> |
| 34 |
<fail>prop1=${prop1} is not equal to val1-pom</fail> |
| 35 |
</target> |
| 36 |
<target name="-prop2" unless="isProp2Ok"> |
| 37 |
<fail>prop2=${prop2} is not equal to val2-cli</fail> |
| 38 |
</target> |
| 39 |
<target name="-prop3" unless="isProp3Ok"> |
| 40 |
<fail>prop3=${prop3} was set</fail> |
| 41 |
</target> |
| 42 |
|
| 43 |
<target name="main" depends="-prop1,-prop2,-prop3" /> |
| 44 |
</project> |