yes, this is work, but I don't know why it can't transfer this value via
properties.

Rex

On Jan 21, 2008 7:17 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> actually, why can't you just add ${buildNumber} to your Versions.txt ???
>
>
> On Jan 21, 2008 10:17 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> > Add this to your filter.properties:
> >
> > BUILDTIME=${buildNumber}
> >
> >
> >
> > On Jan 21, 2008 9:10 AM, Rex Huang <[EMAIL PROTECTED]> wrote:
> >
> > > yah, use buildnumber-maven-plugin may be better.
> > > one strange thing is I can't use ${buildNumber} in filter,
> > > when I want to replace $BUILDTIME in the resource file.
> > > such as:
> > > in pom.xml
> > >    <properties>
> > >        <BUILDTIME>${buildNumber}</BUILDTIME>
> > >    </properties>
> > >
> > >      <resource>
> > >        <directory>src/main/resources</directory>
> > >        <filtering>true</filtering>
> > >        <includes>
> > >            <include>Version.txt</include>
> > >        </includes>
> > >      </resource>
> > >
> > > in Version.txt
> > > build-time= ${BUILDTIME}
> > >
> >
> >
> >
> > --
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/BLiNCMagazine
> > http://tahoe.baselogic.com
> > ---
>
>
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>

Reply via email to