ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bishu Paul <bishupaul...@gmail.com>
Subject Re: Delete N directories that match a regexp
Date Tue, 11 May 2010 15:26:50 GMT

Hi Mike,

  Add value  and else  properties to condition and set values.. it will
work.

<condition property="should.clean" value="true" else="false">
<resourcecount when="greater" count="0">
            <fileset dir="C:\BOSS\BOSS_CDH\BOSSCDHBatchShellScripts"
casesensitive="yes"  >          
		    	<patternset>
            	    	<include name="*.*"/>                  
                	</patternset>
            </fileset>
	</resourcecount>
</condition>


<target name="clean" depends="get-count" if="should.clean">
.
.
.

-- 
View this message in context: http://old.nabble.com/Delete-N-directories-that-match-a-regexp-tp22727856p28525585.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message