You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Mutonho <ej...@gmail.com> on 2006/12/01 10:38:37 UTC
generating an admin jsp at build time
I would like to create a sort of administration jsp that gets bundled
into my application war during build time.The administration jsp would
probably look like this :
<HTML>
<BODY>
"This application was build on " <%= new java.util.Date() %>
</BODY>
</HTML>
but instead of "new java.util.Date()" , it would have the "build-date".
Any suggestion on how to achieve this?
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: generating an admin jsp at build time
Posted by Jeff Mutonho <ej...@gmail.com>.
On 12/1/06, David Delbecq <de...@oma.be> wrote:
> <HTML>
> <BODY>
> "This application was build on " @@SomeBuildDateProperty@@
> </BODY>
> </HTML>
>
> And use the ant filtering rules to replace content between @@ (see ant docs)
>
Thanx David.Ended up being this simple :
<tstamp prefix="build">
<format property="date" pattern="EEE MMM d, yyyy hh:mm:ss z"
locale="en" />
</tstamp>
<filterset id="maven.build.filter" begintoken="@" endtoken="@">
<filter token="BUILD_DATE" value="${build.date}" />
</filterset>
<copy todir="WebContent" filtering="true" overwrite="true">
<fileset dir=".">
<include name="**/mavenadmin.jsp"/>
</fileset>
<filterset refid="maven.build.filter" />
</copy>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: generating an admin jsp at build time
Posted by David Delbecq <de...@oma.be>.
<HTML>
<BODY>
"This application was build on " @@SomeBuildDateProperty@@
</BODY>
</HTML>
And use the ant filtering rules to replace content between @@ (see ant docs)
Jeff Mutonho a écrit :
> I would like to create a sort of administration jsp that gets bundled
> into my application war during build time.The administration jsp would
> probably look like this :
>
>
> <HTML>
> <BODY>
> "This application was build on " <%= new java.util.Date() %>
> </BODY>
> </HTML>
>
> but instead of "new java.util.Date()" , it would have the "build-date".
>
> Any suggestion on how to achieve this?
>
>
>
>
>
>
>
> Jeff Mutonho
> Cape Town
> South Africa
>
> GoogleTalk : ejbengine
> Skype : ejbengine
> Registered Linux user number 366042
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org