提交 e2674b24 编写于 作者: S Serge Rider

Releng droppped (obsolete).


Former-commit-id: 13053e4c
上级 08e62c1e
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.jkiss.dbeaver-build</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
#corresponded build configuration plugin should be checouted into "releng" directory
result.build=build
repoBaseLocation=${install.dir}/baseRepo
transformedRepoLocation=${install.dir}/transformedRepo
#svn.revision=trunk
svn.tag=branches/juno-migration
svn.url=https://svn.jkiss.org/dev/dbeaver
maps.path=releng/org.jkiss.dbeaver-releng/maps
config.path=releng/org.jkiss.dbeaver-releng/config
dbeaver.svn.url=${svn.url}
product.version=5.0
\ No newline at end of file
<project default="build">
<property environment="env" />
<property file="env.properties" />
<property file="install.properties" />
<property file="build.properties" />
<property name="build.number" value="${env.BUILD_NUMBER}" />
<target name="build1">
<property name="buildDirectory" value="${env.WORKSPACE}/../builds/${env.BUILD_ID}" />
<property name="publishDir" value="${buildDirectory}/archive" />
<antcall target="do.install.product" />
</target>
<target name="build">
<echo>USER.HOME=${env.USER.HOME}</echo>
<tstamp>
<format property="QUALIFIER" pattern="yyMMddHHmmss" locale="en,UK" />
<format property="build.date" pattern="dd.MM.yy-HH:mm" locale="ru,RU" />
</tstamp>
<exec executable="svn" output="svn-info.xml.tmp">
<arg value="info" />
<arg value="--username" />
<arg value="${svn.user}" />
<arg value="--password" />
<arg value="${svn.password}" />
<arg value="--no-auth-cache" />
<arg value="--non-interactive" />
<arg value="--trust-server-cert" />
<arg value="--xml" />
<arg value="${svn.url}" />
</exec>
<xslt in="svn-info.xml.tmp" out="svn-info.text.tmp" style="svn-info.xsl" force="true" />
<property file="svn-info.text.tmp" />
<delete file="svn-info.text.tmp" />
<echo file="svn-export.properties">
svn.revision=${svn.revision}
svn.tag=${svn.tag}
svn.url=${svn.url}
</echo>
<property name="buildDirectory" value="${env.WORKSPACE}/../builds/${env.BUILD_ID}" />
<property name="publishDir" value="${buildDirectory}/archive" />
<antcall target="checkout">
<param name="property.check" value="maps.exist" />
<param name="destination" value="${buildDirectory}/maps" />
<param name="path" value="${maps.path}" />
</antcall>
<property name="builder" value="${buildDirectory}/config" />
<antcall target="checkout">
<param name="property.check" value="builder.exist" />
<param name="destination" value="${builder}" />
<param name="path" value="${config.path}" />
</antcall>
<concat destfile="${builder}/build.properties" append="no" fixlastline="yes">
<fileset file="${builder}/custom-build.properties" />
<fileset file="${basedir}/common/build.properties" />
</concat>
<copy file="${basedir}/common/customTargets.xml" todir="${builder}"/>
<copy todir="${buildDirectory}/${result.build}/maps">
<fileset dir="${buildDirectory}/maps" />
<filterchain>
<expandproperties />
</filterchain>
</copy>
<!--java jar="${install.dir}/eclipse/plugins/${launcher}" fork="true" failonerror="true">
<jvmarg value="-Xms1024m" />
<jvmarg value="-Xmx1024m" />
<sysproperty key="publishedRepoLocation" value="${install.dir}/publishedRepo" />
<sysproperty key="buildRepoLocation" value="${buildDirectory}/${result.build}/buildRepo" />
<arg value="-nosplash" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-data" />
<arg value="${buildDirectory}/workspace" />
<arg value="-buildfile" />
<arg value="${basedir}/prodict-mirror.xml" />
</java-->
<java jar="${install.dir}/eclipse/plugins/${launcher}" fork="true" failonerror="true">
<jvmarg value="-Xms1024m" />
<jvmarg value="-Xmx1024m" />
<!--jvmarg value="-Xdebug" />
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y" /-->
<sysproperty key="forceContextQualifier" value="v${QUALIFIER}" />
<sysproperty key="builder" value="${builder}" />
<sysproperty key="buildDirectory" value="${buildDirectory}/${result.build}" />
<sysproperty key="repoBaseLocation" value="${repoBaseLocation}" />
<sysproperty key="baseLocation" value="${install.dir}/eclipse" />
<sysproperty key="transformedRepoLocation" value="${transformedRepoLocation}" />
<sysproperty key="baseos" value="${baseos}" />
<sysproperty key="basews" value="${basews}" />
<sysproperty key="basearch" value="${basearch}" />
<sysproperty key="product.version" value="${product.version}" />
<sysproperty key="publishDir" value="${publishDir}" />
<sysproperty key="build.number" value="${build.number}" />
<sysproperty key="build.date" value="${build.date}" />
<arg value="-nosplash" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<!--arg value="-verbose" /-->
<arg value="-data" />
<arg value="${buildDirectory}/workspace" />
<arg value="-buildfile" />
<!--arg value="${install.dir}/eclipse/plugins/${eclipse.pde.build}/scripts/build.xml" /-->
<arg value="${install.dir}/eclipse/plugins/${eclipse.pde.build}/scripts/productBuild/productBuild.xml" />
</java>
</target>
<target name="checkout" unless="${property.check}">
<java jar="${install.dir}/eclipse/plugins/${launcher}" fork="true" failonerror="true">
<sysproperty key="destination" value="${destination}" />
<sysproperty key="username" value="${svn.user}" />
<sysproperty key="password" value="${svn.password}" />
<sysproperty key="url" value="${svn.url}" />
<sysproperty key="tag" value="${svn.tag}" />
<sysproperty key="revision" value="${svn.revision}" />
<sysproperty key="path" value="${path}" />
<arg value="-nosplash" />
<arg value="-consolelog" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-data" />
<arg value="${buildDirectory}/workspace" />
<arg value="-buildfile" />
<arg value="${basedir}/svn-fetch.xml" />
</java>
</target>
</project>
\ No newline at end of file
# common part of all builds
# in general case - for new target next properties should be defined:
#
# topLevelFeature=org.jkiss.dbeaver.standalone
# product=/org.jkiss.dbeaver.standalone/DBeaver.product
# archivePrefix=dbeaver-runtime
# buildId=DBeaver-${build.number}
runPackager=true
p2.gathering=true
p2.flavor = dbeaver
p2.director.profile = DBeaverProfile
#p2.build.repo=file:${buildDirectory}/repository11
#p2.metadata.repo=file:${builder}/repository
#p2.artifact.repo=file:${builder}/repository
#Folder containing repositories whose content is needed to compile against
#repoBaseLocation=${buildBase}/../baseRepo
#Folder where the content of the repositories from ${repoBaseLocation} will be made available as a form suitable to be compiled against
#transformedRepoLocation=${buildBase}/../transformedRepos
#p2.context.repos=file:${transformedRepoLocation}
#p2.director.log=${buildDirectory}/director.log
#Set the name of the archive that will result from the product build.
#archiveNamePrefix=
# The prefix that will be used in the generated archive.
#archivePrefix=dbeaver-runtime
# The location underwhich all of the build output will be collected.
collectingFolder=results
# The list of {os, ws, arch} configurations to build. This
# value is a '&' separated list of ',' separate triples. For example,
# configs=win32,win32,x86 & linux,motif,x86
# By default the value is *,*,*
configs = win32, win32, x86 & linux, gtk, x86
#configs=win32, win32, x86 & \
# win32,win32,x86_64 & \
# win32,win32,wpf & \
# linux, gtk, ppc & \
# linux, gtk, x86 & \
# linux, gtk, x86_64 & \
# linux, motif, x86 & \
# solaris, motif, sparc & \
# solaris, gtk, sparc & \
# aix, motif, ppc & \
# hpux, motif, ia64_32 & \
# macosx, carbon, ppc & \
# macosx, carbon, x86 & \
# macosx, cocoa, ppc & \
# macosx, cocoa, x86 & \
# macosx, cocoa, x86_64
# By default PDE creates one archive (result) per entry listed in the configs property.
# Setting this value to true will cause PDE to only create one output containing all
# artifacts for all the platforms listed in the configs property.
# To control the output format for the group, add a "group, group, group - <format>" entry to the
# archivesFormat.
#groupConfigurations=true
#The format of the archive. By default a zip is created using antZip.
#The list can only contain the configuration for which the desired format is different than zip.
#archivesFormat=win32, win32, x86 - antZip& \
# linux, gtk, ppc - antZip &\
# linux, gtk, x86 - antZip& \
# linux, gtk, x86_64 - antZip& \
# linux, motif, x86 - antZip& \
# solaris, motif, sparc - antZip& \
# solaris, gtk, sparc - antZip& \
# aix, motif, ppc - antZip& \
# hpux, motif, PA_RISC - antZip& \
# macosx, carbon, ppc - antZip
#Allow cycles involving at most one bundle that needs to be compiled with the rest being binary bundles.
allowBinaryCycles = true
#Sort bundles depenedencies across all features instead of just within a given feature.
#flattenDependencies = true
#Parallel compilation, requires flattenedDependencies=true
#parallelCompilation=true
#parallelThreadCount=
#parallelThreadsPerProcessor=
#Set to true if you want the output to be ready for an update jar (no site.xml generated)
#outputUpdateJars = false
#Set to true for Jnlp generation
#codebase should be a URL that will be used as the root of all relative URLs in the output.
#generateJnlp=false
#jnlp.codebase=<codebase url>
#jnlp.j2se=<j2se version>
#jnlp.locale=<a locale>
#jnlp.generateOfflineAllowed=true or false generate <offlineAllowed/> attribute in the generated features
#jnlp.configs=${configs} #uncomment to filter the content of the generated jnlp files based on the configuration being built
#Set to true if you want to sign jars
#signJars=false
#sign.alias=<alias>
#sign.keystore=<keystore location>
#sign.storepass=<keystore password>
#sign.keypass=<key password>
#Arguments to send to the zip executable
zipargs=
#Arguments to send to the tar executable
tarargs=
#Control the creation of a file containing the version included in each configuration - on by default
#generateVersionsLists=false
############## BUILD NAMING CONTROL ################
# The directory into which the build elements are fetched and where
# the build takes place.
#buildDirectory=${buildBase}/build
# Type of build. Used in naming the build output. Typically this value is
# one of I, N, M, S, ...
buildType=I
# ID of the build. Used in naming the build output.
#buildId=DBeaver-${build.number}
# Label for the build. Used in naming the build output
buildLabel=${buildType}.${buildId}
# Timestamp for the build. Used in naming the build output
#timestamp=v${QUALIFIER}
#The value to be used for the qualifier of a plugin or feature when you want to override the value computed by pde.
#The value will only be applied to plugin or features indicating build.properties, qualifier = context
#forceContextQualifier=<the value for the qualifier>
#Enable / disable the generation of a suffix for the features that use .qualifier.
#The generated suffix is computed according to the content of the feature
#generateFeatureVersionSuffix=true
############# BASE CONTROL #############
# Settings for the base Eclipse components and Java class libraries
# against which you are building.
# Base location for anything the build needs to compile against. For example,
# in most RCP app or a plug-in, the baseLocation should be the location of a previously
# installed Eclipse against which the application or plug-in code will be compiled and the RCP delta pack.
#base=E:/rcp.3.5.2
#baseLocation=${base}/eclipse
#Folder containing repositories whose content is needed to compile against
#repoBaseLocation=${base}/repos
#Folder where the content of the repositories from ${repoBaseLocation} will be made available as a form suitable to be compiled against
#transformedRepoLocation=${base}/transformedRepos
#Os/Ws/Arch/nl of the eclipse specified by baseLocation
#baseos=win32
#basews=win32
#basearch=x86
#this property indicates whether you want the set of plug-ins and features to be considered during the build to be limited to the ones reachable from the features / plugins being built
filteredDependencyCheck=false
#this property indicates whether the resolution should be done in development mode (i.e. ignore multiple bundles with singletons)
resolution.devMode=false
#pluginPath is a list of locations in which to find plugins and features. This list is separated by the platform file separator (; or :)
#a location is one of:
#- the location of the jar or folder that is the plugin or feature : /path/to/foo.jar or /path/to/foo
#- a directory that contains a /plugins or /features subdirectory
#- the location of a feature.xml, or for 2.1 style plugins, the plugin.xml or fragment.xml
#pluginPath=E:/rcp.3.5.2/eclipse
skipBase=true
eclipseURL=<url for eclipse download site>
eclipseBuildId=<Id of Eclipse build to get>
eclipseBaseURL=${eclipseURL}/eclipse-platform-${eclipseBuildId}-win32.zip
############# MAP FILE CONTROL ################
# This section defines CVS tags to use when fetching the map files from the repository.
# If you want to fetch the map file from repository / location, change the getMapFiles target in the customTargets.xml
skipMaps=true
mapsRepo=:pserver:anonymous@example.com/path/to/repo
mapsRoot=path/to/maps
mapsCheckoutTag=HEAD
#tagMaps=true
mapsTagTag=v${buildId}
############ REPOSITORY CONTROL ###############
# This section defines properties parameterizing the repositories where plugins, fragments
# bundles and features are being obtained from.
# The tags to use when fetching elements to build.
# By default thebuilder will use whatever is in the maps.
# This value takes the form of a comma separated list of repository identifier (like used in the map files) and the
# overriding value
# For example fetchTag=CVS=HEAD, SVN=v20050101
# fetchTag=HEAD
#skipFetch=true
############# JAVA COMPILER OPTIONS ##############
# The location of the Java jars to compile against. Typically the rt.jar for your JDK/JRE
#bootclasspath=${java.home}/lib/rt.jar
# specific JRE locations to compile against. These values are used to compile bundles specifying a
# Bundle-RequiredExecutionEnvironment. Uncomment and set values for environments that you support
#CDC-1.0/Foundation-1.0= /path/to/rt.jar
#CDC-1.1/Foundation-1.1=
#OSGi/Minimum-1.0=
#OSGi/Minimum-1.1=
#JRE-1.1=
#J2SE-1.2=
#J2SE-1.3=
#J2SE-1.4=
#J2SE-1.5=
#JavaSE-1.6=
#PersonalJava-1.1=
#PersonalJava-1.2=
#CDC-1.0/PersonalBasis-1.0=
#CDC-1.0/PersonalJava-1.0=
#CDC-1.1/PersonalBasis-1.1=
#CDC-1.1/PersonalJava-1.1=
# Specify the output format of the compiler log when eclipse jdt is used
logExtension=.log
# Whether or not to include debug info in the output jars
javacDebugInfo=true
# Whether or not to fail the build if there are compiler errors
javacFailOnError=true
# Enable or disable verbose mode of the compiler
javacVerbose=false
# Extra arguments for the compiler. These are specific to the java compiler being used.
#compilerArg=
# Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
#javacSource=1.3
javacSource=1.6
# Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
#javacTarget=1.1
javacTarget=1.6
compilerArg=-g -nowarn
<project name="Build specific targets and properties" default="noDefault">
<!-- ===================================================================== -->
<!-- Run a given ${target} on all elements being built -->
<!-- Add on <ant> task for each top level element being built. -->
<!-- ===================================================================== -->
<available property="allElementsFile" file="${builder}/allElements.xml" value="${builder}/allElements.xml" />
<property name="allElementsFile" location="${eclipse.pdebuild.templates}/headless-build/allElements.xml" />
<import file="${allElementsFile}" />
<target name="allElements">
<antcall target="allElementsDelegator" />
</target>
<property name="assemble.org.eclipse.pde.build.container.feature.win32.win32.x86" value="true" />
<target name="assemble.org.eclipse.pde.build.container.feature.win32.win32.x86">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}">
<property name="archiveName" value="${archiveNamePrefix}-win32.zip" />
</ant>
</target>
<property name="assemble.org.eclipse.pde.build.container.feature.linux.gtk.x86" value="true" />
<target name="assemble.org.eclipse.pde.build.container.feature.linux.gtk.x86">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}">
<property name="archiveName" value="${archiveNamePrefix}-linux-gtk-32.zip" />
</ant>
</target>
<!-- ===================================================================== -->
<!-- ===================================================================== -->
<target name="getBaseComponents" depends="checkLocalBase" unless="skipBase">
<get src="${eclipseBaseURL}" dest="${buildDirectory}/../temp-base.zip" />
<unzip dest="${base}" overwrite="true" src="${buildDirectory}/../temp-base.zip" />
</target>
<target name="checkLocalBase">
<available file="${base}" property="skipBase" />
</target>
<!-- ===================================================================== -->
<!-- Check out map files from correct repository -->
<!-- Replace values for mapsCheckoutTag as desired. -->
<!-- ===================================================================== -->
<target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps">
<property name="mapsCheckoutTag" value="HEAD" />
<cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" />
</target>
<target name="checkLocalMaps">
<available property="skipMaps" file="${buildDirectory}/maps" />
</target>
<target name="tagMapFiles" if="tagMaps">
<cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" />
</target>
<!-- ===================================================================== -->
<target name="clean" unless="noclean">
<antcall target="allElements">
<param name="target" value="cleanElement" />
</antcall>
</target>
<target name="gatherLogs">
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
<antcall target="allElements">
<param name="target" value="gatherLogs" />
</antcall>
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
<fileset dir="${buildDirectory}/features">
<include name="**/*.log.zip" />
</fileset>
</unzip>
</target>
<!-- ===================================================================== -->
<!-- Steps to do before setup -->
<!-- ===================================================================== -->
<target name="preSetup">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after setup but before starting the build proper -->
<!-- ===================================================================== -->
<target name="postSetup">
<antcall target="getBaseComponents" />
<!-- Get the UI plugin first because that's where the stem.product file is -->
<ant antfile="${genericTargets}" target="fetchElement">
<property name="type" value="feature" />
<property name="id" value="${topLevelFeature}" />
</ant>
</target>
<!-- ===================================================================== -->
<!-- Steps to do before fetching the build elements -->
<!-- ===================================================================== -->
<target name="preFetch">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after fetching the build elements -->
<!-- ===================================================================== -->
<target name="postFetch">
<touch verbose="true">
<fileset dir="${buildDirectory}/plugins" includes="**/*.properties_ru" />
</touch>
<native2ascii encoding="UTF-8" src="${buildDirectory}/plugins" dest="${buildDirectory}/plugins" includes="**/*.properties_ru" ext=".properties" />
<copy overwrite="true" todir="${buildDirectory}/plugins">
<fileset dir="${buildDirectory}/plugins" />
<globmapper from="*.mappings_template" to="*.mappings" />
<filterchain>
<expandproperties />
</filterchain>
</copy>
</target>
<!-- ===================================================================== -->
<!-- Steps to do before the repositories are being processed -->
<!-- ===================================================================== -->
<target name="preProcessRepos">
<echo>preProcessRepos</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do after the repositories have been processed -->
<!-- ===================================================================== -->
<target name="postProcessRepos">
<echo>postProcessRepos</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do before generating the build scripts. -->
<!-- ===================================================================== -->
<target name="preGenerate">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after generating the build scripts. -->
<!-- ===================================================================== -->
<target name="postGenerate">
<antcall target="clean" />
</target>
<!-- ===================================================================== -->
<!-- Steps to do before running the build.xmls for the elements being built. -->
<!-- ===================================================================== -->
<target name="preProcess">
<echo>preProcess</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do after running the build.xmls for the elements being built. -->
<!-- ===================================================================== -->
<target name="postProcess">
<echo>postProcess</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do before running assemble. -->
<!-- ===================================================================== -->
<target name="preAssemble">
<echo>preAssemble</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do after running assemble. -->
<!-- ===================================================================== -->
<target name="postAssemble">
<echo>postAssemble</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do before running package. -->
<!-- ===================================================================== -->
<target name="prePackage">
<echo>prePackage</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do after running package. -->
<!-- ===================================================================== -->
<target name="postPackage">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after the build is done. -->
<!-- ===================================================================== -->
<target name="postBuild">
<antcall target="gatherLogs" />
<antcall target="publish" />
</target>
<!-- ===================================================================== -->
<!-- Steps to do to test the build results -->
<!-- ===================================================================== -->
<target name="test">
<echo>test</echo>
</target>
<!-- ===================================================================== -->
<!-- Steps to do to publish the build results -->
<!-- ===================================================================== -->
<target name="publish">
<copy todir="${publishDir}">
<fileset dir="${buildDirectory}/${buildLabel}">
<include name="${buildId}*.*" />
</fileset>
</copy>
</target>
<!-- ===================================================================== -->
<!-- Default target -->
<!-- ===================================================================== -->
<target name="noDefault">
<echo message="You must specify a target when invoking this file" />
</target>
</project>
<project default="p2.mirror">
<target name="p2.mirror">
<p2.mirror source="${repo}">
<destination location="file:/${destDir}" name="org.eclipse.equinox.executable ${version} Repo" format="${format}" />
<iu id="org.eclipse.equinox.executable" version="" />
<slicingOptions platformFilter="true" includeOptional="false" includeNonGreedy="false" followStrict="false" />
</p2.mirror>
</target>
</project>
env.WORKSPACE=${basedir}
env.BUILD_ID=1010101
env.BUILD_NUMBER=11
\ No newline at end of file
baseos=win32
basews=win32
basearch=x86
#baseos=linux
#basews=gtk
#basearch=x86
#is used to create corresponded directory
platform.version=4.2.1
#platform.version=3.6
#path to build procedure components
#E:\hudson\jobs\RCP\workspace\build
for-builds.directory=D:/work/dbeaver/for-builds
#for-builds.directory=/home/hudson/for-builds
install.dir=${for-builds.directory}/${platform.version}
# look at http://download.eclipse.org/eclipse/downloads to change download.base and eclipse.xxx rcp-p2repo
# if platform.version changed
download.base=http://download.eclipse.org/eclipse/downloads/drops4/R-4.2.1-201209141800/
eclipse.update.url=http://download.eclipse.org/eclipse/updates/4.2
#build platform
eclipse.win32=eclipse-SDK-4.2.1-win32.zip
eclipse.linux-gtk=eclipse-SDK-4.2.1-linux-gtk.tar.gz
#eclipse.win32=eclipse-SDK-3.6-win32.zip
#eclipse launcher plug-in
launcher=org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
#launcher=org.eclipse.equinox.launcher_1.1.0.v20100507.jar
#eclipse. pde build plug-in
eclipse.pde.build=org.eclipse.pde.build_3.8.1.v20120725-202643
#eclipse.pde.build=org.eclipse.pde.build_3.6.0.v20100603
#SVN task
svn.pde.build.url=http://download.eclipse.org/technology/subversive/0.7/pde-update-site
# directory for svn.pde.build update site. Can be shared between build procedures
svn.pde.build.dir=${for-builds.directory}/svn.pde.build
#RCP p2 repo
rcp-p2repo=org.eclipse.rcp-4.2.1.zip
language-pack=BabelLanguagePack-eclipse-ru_4.2.0.v20120721043402.zip
gef-runtime=GEF-runtime-3.8.1.zip
#Change in to be valid for build machine
#eclipse.archive=${eclipse.win32}
eclipse.archive=${eclipse.linux-gtk}
#archiveType=zip
archiveType=tar.gz
<?xml version="1.0" encoding="UTF-8"?>
<project name="InstallBuild" default="install">
<property file="install.properties" />
<property file="build.properties" />
<!--condition property="isZip">
<equals arg1="${archiveType}" arg2="zip" casesensitive="false" trim="true" />
</condition-->
<target name="install" depends="download">
<echo>Install build procedure</echo>
<antcall target="extract.eclipse">
<param name="work.file" value="eclipse"/>
</antcall>
<antcall target="install.svn"/>
<antcall target="base.repo"/>
</target>
<target name="base.repo" depends="download">
<mkdir dir="${repoBaseLocation}"/>
<copy file="${install.dir}/${rcp-p2repo}" todir="${repoBaseLocation}"/>
<antcall target="do.mirror.deltapack">
<param name="work.file" value="${repoBaseLocation}/deltapack"/>
</antcall>
<antcall target="get.component.runable.task">
<param name="component" value="language-pack"/>
<param name="work.file" value="${repoBaseLocation}/${language-pack}"/>
<param name="zip" value="${language-pack}"/>
</antcall>
<antcall target="get.component.runable.task">
<param name="component" value="gef-runtime"/>
<param name="work.file" value="${repoBaseLocation}/${gef-runtime}"/>
<param name="zip" value="${gef-runtime}"/>
</antcall>
</target>
<target name="get.component.runable.task" depends="file.exist" unless="${work.file}.exist">
<property name="unpack.dir" value="${install.dir}/unpack" />
<property name="transform.dir" value="${install.dir}/transform" />
<delete dir="${unpack.dir}" />
<unzip src="${install.dir}/${zip}" dest="${unpack.dir}" />
<delete dir="${transform.dir}" />
<antcall target="antRunner">
<param name="key1" value="repo" />
<param name="value1" value="file:/${transform.dir}" />
<param name="key2" value="component" />
<param name="value2" value="${component}" />
<param name="key3" value="source" />
<param name="value3" value="${unpack.dir}/eclipse" />
<param name="workspace" value="${install.dir}/workspace" />
<param name="buildfile" value="${basedir}/publish.xml" />
</antcall>
<antcall target="antRunner">
<param name="key1" value="source" />
<param name="value1" value="${transform.dir}" />
<param name="key2" value="component" />
<param name="value2" value="${component}" />
<param name="key3" value="dest" />
<param name="value3" value="${repoBaseLocation}/${component}" />
<param name="workspace" value="${install.dir}/workspace" />
<param name="buildfile" value="${basedir}/mirror.xml" />
</antcall>
<delete dir="${publishedRepoLocation}"/>
</target>
<target name="do.mirror.deltapack" depends="file.exist" unless="${work.file}.exist">
<antcall target="antRunner">
<param name="key1" value="destDir"/>
<param name="value1" value="${work.file}"/>
<param name="key2" value="repo"/>
<param name="value2" value="${eclipse.update.url}"/>
<param name="key3" value="version"/>
<param name="value3" value="${platform.version}" />
<param name="key4" value="format" />
<param name="value4" value="${install.dir}/${rcp-p2repo}" />
<param name="workspace" value="${install.dir}/workspace"/>
<param name="buildfile" value="${basedir}/deltapack-mirror.xml"/>
</antcall>
</target>
<target name="install.svn" depends="mirror.svn">
<property name="installed.components.dir" value="${install.dir}/eclipse/installed"/>
<mkdir dir="${installed.components.dir}"/>
<antcall target="do.install.svn">
<param name="work.file" value="${installed.components.dir}/svn.pde.build.zip"/>
</antcall>
</target>
<target name="do.install.svn" depends="file.exist" unless="${work.file}.exist">
<java jar="${install.dir}/eclipse/plugins/${launcher}" fork="true" failonerror="true">
<arg value="-nosplash" />
<arg value="-consolelog" />
<arg value="-application" />
<arg value="org.eclipse.equinox.p2.director" />
<arg value="-data" />
<arg value="${install.dir}/workspace" />
<arg value="-repository" />
<arg value="file:/${svn.pde.build.dir}" />
<arg value="-installIU" />
<arg value="org.eclipse.team.svn.pde.build.feature.group" />
<arg value="-destination" />
<arg value="${install.dir}/eclipse" />
<arg value="-profile" />
<arg value="SDKProfile" />
<arg value="-profileProperties" />
<arg value="org.eclipse.update.install.features=true" />
</java>
<java jar="${install.dir}/eclipse/plugins/${launcher}" fork="true" failonerror="true">
<arg value="-nosplash" />
<arg value="-clean" />
<arg value="-initialize" />
</java>
<zip destfile="${work.file}" basedir="${svn.pde.build.dir}"/>
</target>
<target name="mirror.svn">
<antcall target="do.mirror.svn">
<param name="work.file" value="${svn.pde.build.dir}"/>
</antcall>
</target>
<target name="do.mirror.svn" depends="file.exist" unless="${work.file}.exist">
<antcall target="antRunner">
<param name="key1" value="destDir"/>
<param name="value1" value="${svn.pde.build.dir}"/>
<param name="key2" value="repo"/>
<param name="value2" value="${svn.pde.build.url}"/>
<param name="workspace" value="${install.dir}/workspace" />
<param name="buildfile" value="${basedir}/svn.pde.build-mirror.xml"/>
</antcall>
</target>
<target name="antRunner">
<java jar="${install.dir}/eclipse/plugins/${launcher}" fork="true" failonerror="true">
<sysproperty key="${key1}" value="${value1}" />
<sysproperty key="${key2}" value="${value2}" />
<sysproperty key="${key3}" value="${value3}" />
<sysproperty key="${key4}" value="${value4}" />
<sysproperty key="${key5}" value="${value5}" />
<arg value="-nosplash" />
<arg value="-consolelog" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-data" />
<arg value="${workspace}" />
<arg value="-buildfile" />
<arg value="${buildfile}" />
</java>
</target>
<target name="extract.eclipse" depends="install.file.exist" unless="${work.file}.exist">
<echo>Extract Eclipse.</echo>
<antcall target="extract.eclipse.${archiveType}"/>
<!--unzip src="${install.dir}/${eclipse.archive}" dest="${install.dir}"/-->
</target>
<target name="extract.eclipse.zip" >
<unzip dest="${install.dir}" src="${install.dir}/${eclipse.archive}" />
</target>
<target name="extract.eclipse.tar.gz" >
<untar compression="gzip" dest="${install.dir}" overwrite="true" src="${install.dir}/${eclipse.archive}" />
</target>
<target name="download">
<mkdir dir="${install.dir}"/>
<echo>Download platform components:</echo>
<antcall target="download.file">
<param name="work.file" value="${eclipse.archive}" />
</antcall>
<antcall target="download.file">
<param name="work.file" value="${rcp-p2repo}" />
</antcall>
</target>
<target name="download.file" depends="install.file.exist" unless="${work.file}.exist">
<echo>Download:${work.file}</echo>
<get src="${download.base}/${work.file}" dest="${install.dir}/${work.file}" verbose="true" />
</target>
<target name="install.file.exist">
<available file="${install.dir}/${work.file}" property="${work.file}.exist" />
</target>
<target name="file.exist">
<available file="${work.file}" property="${work.file}.exist" />
</target>
</project>
<project default="p2.mirror">
<target name="p2.mirror">
<p2.mirror source="file:/${source}">
<destination kind="metadata" location="file:/${dest}" name="${component}" />
<destination kind="artifact" location="file:/${dest}" name="${component}"/>
<slicingOptions includeOptional="false" includeNonGreedy="false" followStrict="true" followOnlyFilteredRequirements="false" />
</p2.mirror>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project name="Publish p2 metadata" default="generate.p2.metadata">
<target name="generate.p2.metadata">
<p2.mirror ignoreErrors="false">
<slicingOptions includeNonGreedy="false" includeOptional="true" platformFilter="true" />
<source location="file:/${publishedRepoLocation}" />
<destination location="file:/${buildRepoLocation}" />
<iu id="org.eclipse.equinox.executable.feature.group" />
<iu id="org.eclipse.rcp.feature.group" />
</p2.mirror>
</target>
</project>
<project default="convert">
<property name="work.dir" value="${basedir}" />
<target name="convert">
<echo>work.dir=${work.dir}
</echo>
<touch>
<fileset dir="${work.dir}" includes="**/*.properties_ru" />
</touch>
<native2ascii encoding="UTF-8" src="${work.dir}" dest="${work.dir}" includes="**/*.properties_ru" ext=".properties" />
<property name="build.number" value="PDE Build" />
<tstamp>
<format property="build.date" pattern="dd.MM.yy-HH:mm" locale="ru,RU" />
</tstamp>
<copy todir="${work.dir}" overwrite="true">
<fileset dir="${work.dir}" />
<globmapper from="*.mappings_template" to="*.mappings" />
<filterchain>
<expandproperties />
</filterchain>
</copy>
</target >
<target name="reconvert">
<echo>work.dir=${work.dir}
</echo>
<native2ascii reverse="true" encoding="UTF-8" src="${work.dir}" dest="${work.dir}" includes="**/*_ru.properties" ext=".properties_ru" />
</target >
<target name="clean">
<delete dir="${work.dir}" includes="**/*_ru.properties"/>
</target >
</project>
<project default="publish.featuresAndBundles">
<target name="publish.featuresAndBundles">
<echo>p2.publish.featuresAndBundles repository="${repo}" repositoryName="${component}" publishArtifacts="true" compress="true" source="${source}"</echo>
<p2.publish.featuresAndBundles repository="${repo}" repositoryName="${component}" publishArtifacts="true" compress="true" source="${source}">
</p2.publish.featuresAndBundles>
</target>
</project>
<project name="FetchScript" default="fetch">
<target name="fetch">
<available property="${destination}.exist" file="${destination}" />
<property name="username" value="" />
<property name="password" value="" />
<antcall target="FetchFromSVN" />
</target>
<target name="FetchFromSVN" unless="${destination}.exist">
<svn command="export" url="${url}/${tag}/${path}" rev="${revision}" dest="${destination}" username="${username}" password="${password}" force="true" />
</target>
</project>
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:text>svn.revision=</xsl:text>
<xsl:value-of select="/info/entry/commit/@revision"/>
</xsl:template>
</xsl:stylesheet>
<project default="p2.mirror">
<target name="p2.mirror">
<p2.mirror source="${repo}">
<destination kind="metadata" location="file:/${destDir}" name="svn.pde.build_0.7.8 Repo" format="${repo}" />
<destination kind="artifact" location="file:/${destDir}" name="svn.pde.build_0.7.8 Repo" format="${repo}" />
<slicingOptions includeOptional="false" includeNonGreedy="false" followStrict="true" followOnlyFilteredRequirements="false" />
</p2.mirror>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.jkiss.dbeaver-releng</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
topLevelFeature=org.jkiss.dbeaver.standalone
product=/org.jkiss.dbeaver.standalone/DBeaver.product
archivePrefix=dbeaver-runtime
buildId=DBeaver-${build.number}
feature@org.jkiss.dbeaver.runtime=SVN,url=${svn.url},path=features/org.jkiss.dbeaver.runtime,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
feature@org.jkiss.dbeaver.rcp=SVN,url=${svn.url},path=features/org.jkiss.dbeaver.rcp,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
feature@org.jkiss.dbeaver.standalone=SVN,url=${svn.url},path=features/org.jkiss.dbeaver.standalone,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver.core=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver.core,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver.ext.erd=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver.erd,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver.ext.generic=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver.generic,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver.ext.import_config=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver.import-config,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver.ext.mysql=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver.mysql,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver.ext.oracle=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver.oracle,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.dbeaver.ext.wmi=SVN,url=${svn.url},path=plugins/org.jkiss.dbeaver.wmi,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.utils=SVN,url=${svn.url},path=modules/org.jkiss.utils,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
plugin@org.jkiss.wmi=SVN,url=${svn.url},path=modules/org.jkiss.wmi,tag=${svn.tag},revision=${svn.revision},username=${svn.user},password=${svn.password}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册