You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eugene Kirin <ki...@mosinfo.ru> on 2004/08/18 11:00:47 UTC

include question

Hello!

I'm wonder can I include maven.xml with some goals into another maven.xml dynamiclly? I mean the next:

<project>       

    <goal name="set:name">
        <j:set var="myName" value="someValue"/>
    </goal>

    <j:include file="${myName}/maven.xml"/>

</project>

I know the "include" tag always executes first than the "set:name" goal. Does exist any way to set the "myName" var first and than include maven.xml?


Sincerely, Eugene Kirin
East View Information Services - Moscow
Research and Development Department

URL: http://www.eastview.com

Re: include question

Posted by "Jefferson K. French" <je...@frenches.org>.
Eugene,

You could put the <j:set> tag outside the goal:

  <j:set var="myName" value="someValue"/>
  <j:include file="${myName}/maven.xml"/>

Or you could invoke Maven like this:

  maven -DmyName=someValue

  Jeff

On Wed, 18 Aug 2004, at 13:00:47 [GMT +0400] Eugene Kirin wrote:

> Hello!

> I'm wonder can I include maven.xml with some goals into another maven.xml dynamiclly? I mean the next:

> <project>       

>     <goal name="set:name">
>         <j:set var="myName" value="someValue"/>
>     </goal>

>     <j:include file="${myName}/maven.xml"/>

> </project>

> I know the "include" tag always executes first than the "set:name" goal. Does exist any way to set the "myName" var first and than include maven.xml?


> Sincerely, Eugene Kirin
> East View Information Services - Moscow
> Research and Development Department

> URL: http://www.eastview.com

-- 
mailto:jeff@frenches.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org