Thanks, appreciate your inputs!



Jörg Schaible <[email protected]> 
Sent by: news <[email protected]>
08/28/2009 03:14 PM
Please respond to
"Maven Users List" <[email protected]>


To
[email protected]

cc


Subject
Re: Maven If else





 

Hi Renuka,

[email protected] wrote at Freitag, 28. August 2009 10:29:

> Hi,
> 
> Has anyone used conditional code with "if" "else" in maven scripts 
inside
> <ant antfile="build.xml"></ant tag?.  I am newbie in Maven.
> I need to know the syntax.
> 
> I tried using "<j:choose>" however it says - The <ant> type doesn't
> support the nested "j:choose" element.

Maybe you should first grok what Maven does. Maven is not Ant, has a
complete different model and does work more different than one might think
in first place. You seem to try simply to transfrom an Ant build 1:1 to
Maven - I assure you, you will not have a lot of fun with Maven, simply
because it is not made for this. It's like using Word as PowerPoint
replacement. It is possible, but limited and definitely no fun.

Therefore, get first familiar with Maven's concepts: 1 project for 1
artifact, the build lifecycle and the dependency management. Avoid the
antrun plugin in first place - it should be used only for very specialized
tasks. To get you a picture e.g. our Maven build contains about ~300
projects and ~5 of them use Ant tasks. It is normally simply not 
necessary.

If you don't intent to follow any Maven standards, you might as well stop
using Maven, because it will not bring any value to you and your
organization.

Kind regards,
Jörg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



To:     [email protected]
cc:      
From:   news <[email protected]>

Reply via email to