Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [pde-build-dev] Timestamp in build.properties

Many thanks, for some reason it never occured to me that it should be defined prior to launching antRunner.
 
~Vladimir


From: pde-build-dev-bounces@xxxxxxxxxxx [mailto:pde-build-dev-bounces@xxxxxxxxxxx] On Behalf Of Kim Moir
Sent: Thursday, January 10, 2008 1:53 PM
To: Eclipse PDE Build developers list.
Subject: Re: [pde-build-dev] Timestamp in build.properties


Hi Vladimir

We use the timestamp as the buildId and to replace the qualifier in the nightly build bundles.  We set a value for the  timestamp in our  build's bootstrap shell script. The timestamp is then passed as an Ant property when we  invoke pde build.

See
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.eclipsebuilder/bootstrap.sh?view=markup&pathrev=HEAD

# value used in buildLabel and for text replacement in index.php template file
builddate=`date +%Y%m%d`
buildtime=`date +%H%M`
timestamp=$builddate$buildtime


buildCommand="$antRunner ... -Dtimestamp=$timestamp ....."

Kim




"Vladimir Grishchenko" <vladgri@xxxxxxxxxxx>
Sent by: pde-build-dev-bounces@xxxxxxxxxxx

01/10/2008 04:08 PM

Please respond to
"Eclipse PDE Build developers list." <pde-build-dev@xxxxxxxxxxx>

To
<pde-build-dev@xxxxxxxxxxx>
cc
Subject
[pde-build-dev] Timestamp in build.properties





Hi,

Would someone kindly explain what is the purpose of the timestamp property
in the build.properties file? It is set to 007 by default. I'm working on
build automation for our product and would like to include timestamp as a
build id in about.mappings but it is not working out of the box for some
reason. I also tried to do it in the postFetch target in the
customTargets.xml as

<target name="postFetch">
                <replace dir="${buildDirectory}/plugins" value="${timestamp}"
token="@build@">
                                 <include name="**/about.mappings" />
                </replace>
</target>

but ended up with the value 007 as build id, which is how timestamp is
defined in build.properties. Qualifiers of my plugins get substituted with a
timestamp but this timestamp value seem to be inaccessible outside of the
eclipse.buildScript task. I'm using 3.3.1.1 as builder. I searched here and
there but could not find an answer so please accept my apologies for asking
this on the dev list.

Thanks,
Vladimir

_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev


Back to the top