Merci beaucoup Arnaud!
The "maven:set" tag worked, but it appears to only
temporarily set the property in the currently running
goal. When I referenced "maven.war.final.name" in
another task, it didn't use the property value that I
had set using maven:set in a previous goal, but rather
used the default .war name. Here are the two goals
that I have:
<preGoal name="java:prepare-filesystem">
<tstamp>
<format property="timestamp"
pattern="yyyyMMdd-HHmm"/>
</tstamp>
<property name="maven.war.final.name"
value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
...
</preGoal>
<goal name="deploy-war">
<copy file="./target/${maven.war.final.name}"
tofile="${appserver.deploy.dir}/${prj.war}"/>
</goal>
In the "deploy-war" goal, it does not use the
"maven.war.final.name" that I set in the
"java:prepare-filesystem" preGoal...
Thanks again.
--- Heritier Arnaud <[EMAIL PROTECTED]> wrote:
> I think that you must use maven:set :
>
> <maven:set plugin="maven-war-plugin"
> property="maven.war.final.name"
>
value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
>
> Arnaud
>
>
> > -----Message d'origine-----
> > De : Konrad [mailto:[EMAIL PROTECTED]
> > Envoy� : mardi 20 juillet 2004 17:32
> > � : maven
> > Objet : [.war plugin] maven.war.final.name changed
> in 1.0
> > (from 1.0-rc2)?
> >
> >
> > Hello.
> >
> > Just wondering if anything changed with the .war
> > plugin since 1.0-rc2? In my maven.xml file, I
> define
> > the following:
> >
> > <preGoal name="java:prepare-filesystem">
> > <tstamp>
> > <format property="timestamp"
> > pattern="yyyyMMdd-HHmm"/>
> > </tstamp>
> > <property name="maven.war.final.name"
> >
>
value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
> > ...
> > </preGoal>
> >
> >
> > In Maven 1.0-RC2, I would get the following as the
> > .war name:
> >
> > project-1.0-20040720-1029.war
> >
> > However, after upgrading to Maven 1.0, the .war
> name
> > goes back to the default:
> >
> > project.war
> >
> >
> > Any ideas?
> >
> > Thanks...
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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]
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]