| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <project> |
| |
| <target name="if-true" if="${ant.refid:true}"> |
| <echo>if-true called</echo> |
| </target> |
| |
| <target name="unless-true" unless="${ant.refid:true}"> |
| <echo>unless-true called</echo> |
| </target> |
| |
| <target name="if-false" if="${ant.refid:false}"> |
| <echo>if-false called</echo> |
| </target> |
| |
| <target name="unless-false" unless="${ant.refid:false}"> |
| <echo>unless-false called</echo> |
| </target> |
| |
| <target name="if-string-true" if="${true}"> |
| <echo>if-string-true called</echo> |
| </target> |
| |
| <target name="unless-string-true" unless="${true}"> |
| <echo>unless-string-true called</echo> |
| </target> |
| |
| <target name="if-string-false" if="${false}"> |
| <echo>if-string-false called</echo> |
| </target> |
| |
| <target name="unless-string-false" unless="${false}"> |
| <echo>unless-string-false called</echo> |
| </target> |
| |
| <target name="all" |
| depends="if-true,unless-true,if-false,unless-false, |
| if-string-true,unless-string-true, |
| if-string-false,unless-string-false"/> |
| |
| </project> |