I have some ant tasks which needs to be executed only if packaging is "ejb". But don't want to repeat this code in all ejb POMs. So thought of adding this to a parent POM, which all other modules (many components- ejbs, wars, jars, ears, etc) inherit.
So in order to make sure that this gets executed only for ejb projects, I want to check, <tasks> <if> <equals arg1="${project.packaging}" arg2="pom" /> <then> ant tasks details... </then> </if> Does this makes sense ? -Jagan -----Original Message----- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 2:42 AM To: Maven Users List Subject: Re: maven-antrun-plugin - <if> issue On Mon, 1 May 2006, Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) wrote: Can you give me an example of what you're doing? A POM snippet for example? It's true that <tasks if="..." unless="..."> does not work. It's on my todo list. -- Kenney > > Hi, > > ANT <if> condition doesn't seem to work while using maven-antrun-plugin. > I have added the ant-contrib dependency. > > Could someone please let me know what may be the issue. Please send me > a sample code if you have any. > > Thanks > -Jagan > > > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]