Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2016-07-04 14:55:54 +0000
committerDavid Williams2016-07-04 14:55:54 +0000
commitad3245c3acc0e7e5d95efec76f57d1ab20943aee (patch)
tree5a5d64aaa616e2169172a0a442b93969c9ec467b
parent6449fcf9b796640d88686a30d072255c5d9ba2db (diff)
downloadeclipse.platform.releng.aggregator-ad3245c3acc0e7e5d95efec76f57d1ab20943aee.tar.gz
eclipse.platform.releng.aggregator-ad3245c3acc0e7e5d95efec76f57d1ab20943aee.tar.xz
eclipse.platform.releng.aggregator-ad3245c3acc0e7e5d95efec76f57d1ab20943aee.zip
Bug 497207 -Fix for no index.php page being generated.
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse/helper.xml51
1 files changed, 39 insertions, 12 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/helper.xml b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/helper.xml
index 88421c3af..8fedd7e9d 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/helper.xml
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/helper.xml
@@ -1,13 +1,13 @@
<!--
- Copyright (c) 2016 IBM Corporation and others.
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- which accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html
-
- Contributors:
- David Williams - initial API and implementation
- -->
+ Copyright (c) 2016 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ David Williams - initial API and implementation
+-->
<project
name="Helper targets"
default="noDefault">
@@ -91,6 +91,33 @@
<fail
unless="buildType"
message="buildType must be defined to generateIndex before calling publish.xml" />
+ <!-- this section that checks for 'eclipseStream' and computes major, minor, etc. was
+ copy/pasted from 'genTestIndexes.xml'. In principle, should be
+ abstracted out into a "utility" file -->
+ <fail
+ unless="eclipseStream"
+ message="eclipseStream must be provided by caller" />
+ <condition property="streamOK">
+ <matches
+ pattern="\d\.\d\.\d"
+ string="${eclipseStream}" />
+ </condition>
+ <fail
+ message="eclipseStream variable had unexpected format. Should be digit.digit.digit, but was ${eclipseStream}"
+ unless="streamOK" />
+ <script language="javascript">
+ <![CDATA[
+ var eclipseStream = project.getProperty("eclipseStream");
+ var pattern = new
+ RegExp(/(\d+)\.(\d+)\.(\d+)/);
+
+ var sArray = pattern.exec(eclipseStream);
+ // sArray[0] is "whole match"
+ project.setProperty("eclipseStreamMajor", sArray[1]);
+ project.setProperty("eclipseStreamMinor", sArray[2]);
+ project.setProperty("eclipseStreamService", sArray[3]);
+ ]]>
+ </script>
<!--regenerate the index page with links to test results -->
<ant
@@ -123,9 +150,9 @@
so "conditions" will work, ultimately getting some
"no match" default value. But not setting
it to something seems to cause them to "bomb out"
- TODO: eliminate "job" as a variable.
- That only works if doing one job at a time, which
- is not always true.
+ TODO: eliminate "job" as a variable.
+ That only works if doing one job at a time, which
+ is not always true.
-->
<property
name="job"

Back to the top