| #!/bin/bash | |
| #==================================================================================== | |
| # Copyright (c) 2008 The Eclipse Foundation 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 | |
| #==================================================================================== | |
| BUILD_DATE=`date +%Y%m%d` | |
| BUILD_TIME=`date +%H%M` | |
| TIMESTAMP=${BUILD_DATE}${BUILD_TIME} | |
| BUILD_TYPE=R | |
| # We're running on the build server. Configure the environment for there. | |
| java=/shared/common/jdk1.7.0-latest/jre/bin/java | |
| sharedDir=/shared/technology/actf | |
| base=${sharedDir}/base/ | |
| eclipseRoot=${base}/eclipse | |
| configurationFolder=${sharedDir}/build/org.eclipse.actf.visualization.releng | |
| buildRoot=${sharedDir}/build/root | |
| # Find the launcher JAR and PDE Build Plugin directory for the current platform. | |
| launcherJar=`find ${eclipseRoot} -type f -name 'org.eclipse.equinox.launcher_*.jar' -print0` | |
| pdeBuildPlugin=`find ${eclipseRoot} -type d -name 'org.eclipse.pde.build_*' -print0` | |
| jarprocessorJar=`find ${eclipseRoot} -type f -name 'org.eclipse.equinox.p2.jarprocessor_*.jar' -print0` | |
| tempDir=${buildRoot}/temp | |
| buildDirectory=${buildRoot}/workspace | |
| prereqDir=${sharedDir}/pre-req | |
| updateSite=${buildDirectory}/repository | |
| # What feature are we building? | |
| featureId=org.eclipse.actf.visualization.sdk | |
| ${java} -jar ${launcherJar} \ | |
| -application org.eclipse.ant.core.antRunner \ | |
| -buildfile ${pdeBuildPlugin}/scripts/build.xml \ | |
| -DbuildDirectory=${buildDirectory} \ | |
| -Dbuilder=${configurationFolder} \ | |
| -DbuildId=${TIMESTAMP} \ | |
| -DbuildType=${BUILD_TYPE} \ | |
| -Dtimestamp=${TIMESTAMP} \ | |
| -Dbase=${base} \ | |
| -DupdateSite=${updateSite} \ | |
| -DtempDir=${tempDir} \ | |
| -DfeatureId=${featureId} \ | |
| -DlauncherJar=${launcherJar} \ | |
| -DjarprocessorJar=${jarprocessorJar} \ | |
| -DOOO_HOME=${prereqDir}/OOo \ | |
| -vmargs -Xmx1024m | |
| ${java} -jar ${launcherJar} \ | |
| -application org.eclipse.equinox.p2.publisher.UpdateSitePublisher \ | |
| -metadataRepository file:${updateSite}/ \ | |
| -artifactRepository file:${updateSite}/ \ | |
| -source ${buildDirectory}/repository/ \ | |
| -config win32.win32.x86 \ | |
| -reusePack200Files \ | |
| -publishArtifacts \ | |
| -compress | |
| # -updateSite ${updateSite}/ \ | |
| # -metadataRepositoryName "ACTF Update Site" \ | |
| # -artifactRepositoryName "ACTF Artifacts" \ | |
| # -noDefaultIUs \ | |
| # -vmargs -Xmx256m | |