mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 06:35:50 +02:00
Fix S-builds split up due to incorrect timestamps
This commit is contained in:
parent
1d0a39548b
commit
f1dd251a30
5 changed files with 95 additions and 79 deletions
|
@ -70,7 +70,9 @@ $publishDirectory = "$working/publish";
|
|||
$tag = ask("Enter tag to fetch from CVS", "HEAD");
|
||||
$buildType = ask("Enter build type (P=Personal, N=Nightly, I=Integration, S=Stable)", "P");
|
||||
($sec, $minute, $hour, $mday, $mon, $year) = localtime();
|
||||
$timeStamp = sprintf("%4.4d%2.2d%2.2d-%2.2d%2.2d", $year + 1900, ($mon + 1), $mday, $hour, $minute, $sec);
|
||||
$mydstamp = sprintf("%4.4d%2.2d%2.2d", $year + 1900, ($mon + 1), $mday);
|
||||
$mytstamp = sprintf("%2.2d%2.2d", $hour, $minute, $sec);
|
||||
$timeStamp = "${mydstamp}-${mytstamp}";
|
||||
$buildId = $buildType . $timeStamp;
|
||||
$buildId = ask("Enter the build id", $buildType . $timeStamp);
|
||||
|
||||
|
@ -85,6 +87,8 @@ $incantation .= "-DbaseLocation=${eclipse} ";
|
|||
$incantation .= "-DbuildType=${buildType} ";
|
||||
$incantation .= "-DbuildId=${buildId} ";
|
||||
$incantation .= "-DmapVersionTag=${tag} ";
|
||||
$incantation .= "-Dmydstamp=${mydstamp} ";
|
||||
$incantation .= "-Dmytstamp=${mytstamp} ";
|
||||
if ($buildType =~ "N") {
|
||||
$incantation .= "-DforceContextQualifier=${buildId} ";
|
||||
$incantation .= "-DfetchTag=HEAD ";
|
||||
|
|
|
@ -52,7 +52,9 @@ publishDirectory = "#{working}/publish"
|
|||
|
||||
tag = ask("Enter tag to fetch from CVS", "HEAD")
|
||||
buildType = ask("Enter build type (P=Personal, N=Nightly, I=Integration, S=Stable)", "P")
|
||||
buildId = ask("Enter the build id", buildType + Time.now.strftime("%Y%m%d-%H%M"))
|
||||
mydstamp = Time.now.strftime("%Y%m%d")
|
||||
mytstamp = Time.now.strftime("%H%M")
|
||||
buildId = ask("Enter the build id", buildType + mydstamp + "-" + mydstamp)
|
||||
|
||||
command = "java -cp #{basebuilder}/startup.jar org.eclipse.core.launcher.Main "
|
||||
command += "-application org.eclipse.ant.core.antRunner "
|
||||
|
@ -65,6 +67,8 @@ command += "-DbaseLocation=#{eclipse} "
|
|||
command += "-DbuildType=#{buildType} "
|
||||
command += "-DbuildId=#{buildId} "
|
||||
command += "-DmapVersionTag=#{tag} "
|
||||
command += "-Dmydstamp=#{mydstamp} "
|
||||
command += "-Dmytstamp=#{mytstamp} "
|
||||
if ("#{buildType}" == "N") then
|
||||
command += "-DforceContextQualifier=#{buildId} "
|
||||
command += "-DfetchTag=HEAD "
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
<echo message="buildName = ${buildName}"/>
|
||||
<echo message="buildType = ${buildType}"/>
|
||||
<echo message="buildLabel = ${buildLabel}"/>
|
||||
<echo message="tstamp = ${DSTAMP}-${TSTAMP} of ${dateLong}"/>
|
||||
<echo message="tstamp = ${mydstamp}-${mytstamp} of ${dateLong}"/>
|
||||
<echo message="archivePrefix = ${archivePrefix}"/>
|
||||
<echo message="collectingFolder = ${collectingFolder}"/>
|
||||
</target>
|
||||
|
@ -205,7 +205,7 @@
|
|||
<condition property="doCopy">
|
||||
<not><equals arg1="${publishDirectory}" arg2=""/></not>
|
||||
</condition>
|
||||
<condition property="dropDir" value="S-${buildId}-${DSTAMP}${TSTAMP}" else="${buildId}">
|
||||
<condition property="dropDir" value="S-${buildId}-${mydstamp}${mytstamp}" else="${buildId}">
|
||||
<equals arg1="${buildType}" arg2="S"/>
|
||||
</condition>
|
||||
<property name="buildUpdateSitePath" value="${packageDirectory}/${dropDir}/updates"/>
|
||||
|
|
|
@ -36,7 +36,9 @@ packageDirectory="${working}/package"
|
|||
|
||||
tag="HEAD"
|
||||
buildType="N"
|
||||
timestamp=`date +'%Y%m%d-%H%M'`
|
||||
mydstamp=`date +'%Y%m%d'`
|
||||
mytstamp=`date +'%H%M'`
|
||||
timestamp="${mydstamp}-${mytstamp}"
|
||||
buildId="${buildType}${timestamp}"
|
||||
rm -rf "${buildDirectory}"
|
||||
|
||||
|
@ -55,6 +57,8 @@ command="$command -DdoPublish=true "
|
|||
command="$command -DforceContextQualifier=${buildId} "
|
||||
command="$command -DfetchTag=HEAD "
|
||||
command="$command -DskipFetch "
|
||||
command="$command -Dmydstamp=${mydstamp} "
|
||||
command="$command -Dmytstamp=${mytstamp} "
|
||||
#command="$command -DJ2SE-1.2=../jres/1.2.2/lib/rt.jar "
|
||||
#command="$command postBuild "
|
||||
|
||||
|
|
|
@ -35,7 +35,9 @@ packageDirectory="${working}/package"
|
|||
|
||||
tag="HEAD"
|
||||
buildType="N"
|
||||
timestamp=`date +'%Y%m%d-%H%M'`
|
||||
mydstamp=`date +'%Y%m%d'`
|
||||
mytstamp=`date +'%H%M'`
|
||||
timestamp="${mydstamp}-${mytstamp}"
|
||||
buildId="${buildType}${timestamp}"
|
||||
rm -rf "${buildDirectory}"
|
||||
|
||||
|
@ -53,6 +55,8 @@ command="$command -DmapVersionTag=${tag} "
|
|||
command="$command -DdoPublish=true "
|
||||
command="$command -DforceContextQualifier=${buildId} "
|
||||
command="$command -DfetchTag=HEAD "
|
||||
command="$command -Dmydstamp=${mydstamp} "
|
||||
command="$command -Dmytstamp=${mytstamp} "
|
||||
#command="$command postBuild "
|
||||
|
||||
echo "$command"
|
||||
|
|
Loading…
Add table
Reference in a new issue