ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhatia <Bha...@OFAC.CH>
Subject regexp patterns
Date Wed, 11 Jul 2007 12:46:36 GMT

Hello,
This is technically not an Ivy question.
Is there a way to use regex inside my patternset include ?
I am trying to selectively unzip only those jars that meet the pattern
criteria.
Didnt find anything yet.
Would really appreciate your inputs.
Thanks


************************************************************************
<regexp id="jar-project-pattern" pattern="OFAC[A-Z]+[a-z1-9]*.jar"/>
<regexp id="small-jar-pattern" pattern="[a-z]+[a-zA-Z]*.jar"/>	

<!-- works ok for a war project - used when compiling a war project only -
extracts the jar files from a dependency war's /WEB-INF/lib directory -->
	<target name="decompress" depends="clean, retrieve" description="-> extract
jar files from the war(chives)">
		<unzip dest="${ivy.lib.dir}">
			<patternset includes="*.jar" description="extract the jar files from
/WEB-INF/lib">
				<include name="**/*.jar" />
			</patternset>
			<fileset dir="${ivy.lib.dir}">
				<include name="*.war" />
			</fileset>
		</unzip>
	</target>
-- 
View this message in context: http://www.nabble.com/regexp-patterns-tf4061726.html#a11539701
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message