go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  If/unless Conditional Target
 
Subject: If/unless Conditional Target
Author: ant
In response to: Ant -- Target
Posted on: 08/11/2010 06:19:47 PM


A target has the ability to perform its execution if (or unless) a property has been set.

<target name="build-module-A" if="module-A-present"/>


If the module-A-present property is set (to any value, e.g. false), the target will be run.


<target name="build-own-fake-module-A" unless="module-A-present"/>


If the module-A-present property is set (again, to any value), the target will not be run.


 

> On 08/11/2010 06:16:47 PM ant wrote:

A target is a container of tasks that cooperate to reach a desired state during the build process.

<target name="A"/>
<target name="B" depends="A"/>
<target name="C" depends="B"/>
<target name="D" depends="C,B,A"/>


Call-Graph:  A --> B --> C --> D






References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.