From: "James Johnson" <[EMAIL PROTECTED]>
> > From: "James Johnson" <[EMAIL PROTECTED]>
> >> Heya,
> >>
> >> I'm mavenizing a project that is currently being built with ant. In
> >> the build.xml I run across this kind of thing several times:
> >>
> >>     <antcall target="resources:copy:repository:${deploy.database}" >
> >>       <param name="repository.dir"
> >> value="${exploded.war}/WEB-INF/classes"
> > />
> >>     </antcall>
> >>
> >> How do I express that in maven/jelly syntax?
> >
> > How about something like
> >
> > <j:set var="repository.dir" value="${exploded.war}/WEB-INF/classes" />
> > <attainGoal name="resources:copy:repository:${deploy.database}"/>
>
> That might work. What if 'repository.dir' is already a property (as in, it
> was set in project.properties)? Will the attained goal take that value or
> the jelly variable?

The example above would override any previously defined properties.

However you could wrap it in a <j:scope> to create a new local variable
scope, so setting any variables won't override any global variables.

<j:scope>
    <j:set var="repository.dir" value="${exploded.war}/WEB-INF/classes" />
    <attainGoal name="resources:copy:repository:${deploy.database}"/>
</j:scope>

James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to