I want my project version to be a date. I am trying :

<currentVersion>${build.date}</currentVersion>

in project.xml
and 

<tstamp/>
<j:set var="build.date" value="${DSTAMP}"/>

in maven.xml at the start of my goal. But this is not working.
Any ideas?








-----Original Message-----
From: Jefferson K. French [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 8:53 AM
To: Maven Users List
Subject: Re: include question


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:[EMAIL PROTECTED]



---------------------------------------------------------------------
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]

Reply via email to