You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by "Tawfik, Sameh E" <Sa...@fairisaac.com> on 2008/04/11 21:20:40 UTC

Access Continuum build number value?


During the build, I need to obtain the current build number value and
pass it on to another process, so where does Continuum save the build
number information? Is there is a file I can read to retrieve this
information from?

Every time, Continuum runs it increment the current build number value
by one, so where does it retrieve this value from?

Thanks,

   Sameh
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


RE: Access Continuum build number value?

Posted by "Tawfik, Sameh E" <Sa...@fairisaac.com>.
Hi Nico,

Thanks for your quick response, but could you give a little more
information about how to use ${basedir} to retrieve Continuum build
number? Is there is an example I can review?

In my parent Maven pom.xml, I've the following section:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Built-By>XYZ, Inc.</Built-By>
                            <Module-version>1.0.0</Module-version>
                            <Build-number>3953</Build-number>
                            <Build-date>APR.11.2008</Build-date>
                            <Mode>development</Mode>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>

Currently, as shown above the build number value is hard coded, so my
goal is to automatically update the above build number value with
Continuum build number whenever Continuum runs a build. And also, the
build date if possible?

Can this be done?

  Thanks,
 
       Sameh

-----Original Message-----
From: Nicolas Loison [mailto:nicolas.loison1@gmail.com] 
Sent: Friday, April 11, 2008 1:13 PM
To: users@continuum.apache.org
Subject: Re: Access Continuum build number value?

Hello,

The ${basedir} variable allow you to know the build number information.

Nico

2008/4/11, Tawfik, Sameh E <Sa...@fairisaac.com>:
>
>
>
> During the build, I need to obtain the current build number value and
> pass it on to another process, so where does Continuum save the build
> number information? Is there is a file I can read to retrieve this
> information from?
>
> Every time, Continuum runs it increment the current build number value
> by one, so where does it retrieve this value from?
>
> Thanks,
>
>    Sameh
> This email and any files transmitted with it are confidential,
proprietary
> and intended solely for the individual or entity to whom they are
> addressed.
> If you have received this email in error please delete it immediately.
>
>
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


Re: Access Continuum build number value?

Posted by Nicolas Loison <ni...@gmail.com>.
Hello,

The ${basedir} variable allow you to know the build number information.

Nico

2008/4/11, Tawfik, Sameh E <Sa...@fairisaac.com>:
>
>
>
> During the build, I need to obtain the current build number value and
> pass it on to another process, so where does Continuum save the build
> number information? Is there is a file I can read to retrieve this
> information from?
>
> Every time, Continuum runs it increment the current build number value
> by one, so where does it retrieve this value from?
>
> Thanks,
>
>    Sameh
> This email and any files transmitted with it are confidential, proprietary
> and intended solely for the individual or entity to whom they are
> addressed.
> If you have received this email in error please delete it immediately.
>
>

RE: Access Continuum build number value?

Posted by "Tawfik, Sameh E" <Sa...@fairisaac.com>.
Marin,

This is exactly what I needed, and it worked fine.

Just one more thing, is there is another property I can use for retrieving the value of the build date?

 Thanks,

   Sameh

-----Original Message-----
From: Martin Höller [mailto:martin@xss.co.at] 
Sent: Monday, April 14, 2008 2:37 AM
To: users@continuum.apache.org
Subject: Re: Access Continuum build number value?

On 11 Apr 2008, Tawfik, Sameh E wrote:

> 
> 
> During the build, I need to obtain the current build number value and
> pass it on to another process, so where does Continuum save the build
> number information? Is there is a file I can read to retrieve this
> information from?

Not a file, but a system property: continuum.project.nextBuild.number
See this thread for more information:
http://www.nabble.com/continuum.project.currentBuild.number-to16012461s177.html#a16012461

hth,
- martin

PS: Please start a new thread for new topics and don't reply to old
    messages.
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


Re: Access Continuum build number value?

Posted by Martin Höller <ma...@xss.co.at>.
On 11 Apr 2008, Tawfik, Sameh E wrote:

> 
> 
> During the build, I need to obtain the current build number value and
> pass it on to another process, so where does Continuum save the build
> number information? Is there is a file I can read to retrieve this
> information from?

Not a file, but a system property: continuum.project.nextBuild.number
See this thread for more information:
http://www.nabble.com/continuum.project.currentBuild.number-to16012461s177.html#a16012461

hth,
- martin

PS: Please start a new thread for new topics and don't reply to old
    messages.