You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Piotr Bzdyl <pi...@bzdyl.net> on 2005/12/12 16:41:32 UTC
[m2] Filtering resources and current time
Hello,
I would like to have something like this in my pom.xml
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
and in src/main/resources/app.properties:
app.buildTime=${currentTime}
to get current time (the time when I call mvn package for example) in
the place of ${currentTime}. Is there a maven built-in property holding
current time?
Best regards,
Piotrek
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Filtering resources and current time
Posted by Allan Ramirez <ar...@exist.com>.
I think this is already filed..
See MNG-1832
-allan
Wim Deblauwe wrote:
>I could use that too, so please file an issue.
>
>2005/12/15, Edwin Punzalan <ep...@exist.com>:
>
>
>>AFAIK, there is no ${} expression with the current time as value. You
>>may want to file a jira request for this feature though. The Maven 2
>>jira is here: http://jira.codehaus.org/browse/MNG
>>
>>
>>Piotr Bzdyl wrote:
>>
>>
>>
>>>Hello,
>>>
>>>I would like to have something like this in my pom.xml
>>>
>>><build>
>>> <resources>
>>> <resource>
>>> <directory>src/main/resources</directory>
>>> <filtering>true</filtering>
>>> </resource>
>>> </resources>
>>></build>
>>>
>>>and in src/main/resources/app.properties:
>>>app.buildTime=${currentTime}
>>>
>>>to get current time (the time when I call mvn package for example) in
>>>the place of ${currentTime}. Is there a maven built-in property
>>>holding current time?
>>>
>>>Best regards,
>>>Piotrek
>>>
>>>---------------------------------------------------------------------
>>>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
>>
>>
>>
>>
>
>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005
>
>
>
Re: [m2] Filtering resources and current time
Posted by Wim Deblauwe <wi...@gmail.com>.
I could use that too, so please file an issue.
2005/12/15, Edwin Punzalan <ep...@exist.com>:
>
>
> AFAIK, there is no ${} expression with the current time as value. You
> may want to file a jira request for this feature though. The Maven 2
> jira is here: http://jira.codehaus.org/browse/MNG
>
>
> Piotr Bzdyl wrote:
>
> > Hello,
> >
> > I would like to have something like this in my pom.xml
> >
> > <build>
> > <resources>
> > <resource>
> > <directory>src/main/resources</directory>
> > <filtering>true</filtering>
> > </resource>
> > </resources>
> > </build>
> >
> > and in src/main/resources/app.properties:
> > app.buildTime=${currentTime}
> >
> > to get current time (the time when I call mvn package for example) in
> > the place of ${currentTime}. Is there a maven built-in property
> > holding current time?
> >
> > Best regards,
> > Piotrek
> >
> > ---------------------------------------------------------------------
> > 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
>
>
Re: [m2] Filtering resources and current time
Posted by Edwin Punzalan <ep...@exist.com>.
AFAIK, there is no ${} expression with the current time as value. You
may want to file a jira request for this feature though. The Maven 2
jira is here: http://jira.codehaus.org/browse/MNG
Piotr Bzdyl wrote:
> Hello,
>
> I would like to have something like this in my pom.xml
>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
> </build>
>
> and in src/main/resources/app.properties:
> app.buildTime=${currentTime}
>
> to get current time (the time when I call mvn package for example) in
> the place of ${currentTime}. Is there a maven built-in property
> holding current time?
>
> Best regards,
> Piotrek
>
> ---------------------------------------------------------------------
> 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