> 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>
You anticipated my next question :-)
I think this is going to work out perfectly.
Thanks James!
>
> James
> -------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>