eclipse plugin: Work more on the build script
This commit is contained in:
parent
49a1d3a12c
commit
c2ae1eb2f0
3 changed files with 28 additions and 119 deletions
|
@ -1,8 +1,11 @@
|
|||
@echo off
|
||||
|
||||
set ECLIPSEHOME=D:\bin\eclipse\
|
||||
set ECLIPSEBUILD=D:\bin\eclipse_build\eclipse\
|
||||
set ECLIPSEDELTAPACK=d:\work\java\eclipse\3.6.2\eclipse\
|
||||
|
||||
|
||||
set BUILDDIR=d:\tmp
|
||||
|
||||
REM get path to equinox jar inside ECLIPSEHOME folder
|
||||
for /f "delims= tokens=1" %%c in ('dir /B /S /OD %ECLIPSEHOME%\plugins\org.eclipse.equinox.launcher_*.jar') do set EQUINOXJAR=%%c
|
||||
echo "Found equinox jar: " %EQUINOXJAR%
|
||||
|
@ -11,9 +14,8 @@ REM find pde build folder
|
|||
for /f "delims= tokens=1" %%c in ('dir /B /S /OD %ECLIPSEHOME%\plugins\org.eclipse.pde.build_*') do set PDEBUILD_DIR=%%c
|
||||
echo "Found pde folder: " %PDEBUILD_DIR%
|
||||
|
||||
java -cp %EQUINOXJAR% org.eclipse.core.launcher.Main -data workspace -application org.eclipse.ant.core.antRunner -Ddeltapack=%ECLIPSEDELTAPACK% -Declipse.pdebuild.scripts=%PDEBUILD_DIR%\scripts -Declipse.pdebuild.templates=%PDEBUILD_DIR%\templates -buildfile build.xml
|
||||
java -cp %EQUINOXJAR% org.eclipse.core.launcher.Main -data workspace -application org.eclipse.ant.core.antRunner -DbuildDirectory=%BUILDDIR% -Dbase=%ECLIPSEBUILD% -DbaseLocation=%ECLIPSEBUILD% -Ddeltapack=%ECLIPSEDELTAPACK% -Declipse.pdebuild.scripts=%PDEBUILD_DIR%\scripts -Declipse.pdebuild.templates=%PDEBUILD_DIR%\templates -buildfile build.xml
|
||||
|
||||
rm ../org.wesnoth/build.xml
|
||||
rm ../org.wesnoth.wml/build.xml
|
||||
rm ../org.wesnoth.wml.ui/build.xml
|
||||
rm -rf workspace
|
||||
IF EXIST ../org.wesnoth/build.xml rm ../org.wesnoth/build.xml
|
||||
IF EXIST ../org.wesnoth.wml/build.xml rm ../org.wesnoth.wml/build.xml
|
||||
IF EXIST ../org.wesnoth.wml.ui/build.xml rm ../org.wesnoth.wml.ui/build.xml
|
||||
|
|
|
@ -8,22 +8,12 @@
|
|||
# Contributors:
|
||||
# IBM Corporation - initial API and implementation
|
||||
###############################################################################
|
||||
#####################
|
||||
# Parameters describing how and where to execute the build.
|
||||
# Typical users need only update the following properties:
|
||||
# baseLocation - where things you are building against are installed
|
||||
# bootclasspath - The base jars to compile against (typicaly rt.jar)
|
||||
# configs - the list of {os, ws, arch} configurations to build.
|
||||
#
|
||||
# Of course any of the settings here can be overridden by spec'ing
|
||||
# them on the command line (e.g., -DbaseLocation=d:/eclipse
|
||||
|
||||
############# PRODUCT/PACKAGING CONTROL #############
|
||||
product=/org.wesnoth/org.wesnoth.product
|
||||
runPackager=true
|
||||
|
||||
#Set the name of the archive that will result from the product build.
|
||||
#archiveNamePrefix=
|
||||
archiveNamePrefix=wesnoth_umc_dev
|
||||
|
||||
# The prefix that will be used in the generated archive.
|
||||
archivePrefix=eclipse
|
||||
|
@ -35,66 +25,25 @@ collectingFolder=${archivePrefix}
|
|||
# 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
|
||||
#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
|
||||
configs=win32, win32, x86 & \
|
||||
win32,win32,x86_64 & \
|
||||
linux, gtk, x86 & \
|
||||
linux, gtk, x86_64 & \
|
||||
macosx, cocoa, x86_64
|
||||
|
||||
#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
|
||||
flattenDependencies = true
|
||||
|
||||
#Parallel compilation, requires flattenedDependencies=true
|
||||
#parallelCompilation=true
|
||||
#parallelThreadCount=
|
||||
#parallelThreadsPerProcessor=
|
||||
parallelCompilation=true
|
||||
parallelThreadCount=2
|
||||
parallelThreadsPerProcessor=1
|
||||
|
||||
#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
|
||||
outputUpdateJars = false
|
||||
|
||||
#Set to true if you want to sign jars
|
||||
#signJars=false
|
||||
|
@ -103,41 +52,23 @@ allowBinaryCycles = true
|
|||
#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=D:/wesnoth_umc_dev_build
|
||||
|
||||
# Type of build. Used in naming the build output. Typically this value is
|
||||
# one of I, N, M, S, ...
|
||||
buildType=N
|
||||
|
||||
# ID of the build. Used in naming the build output.
|
||||
buildId=TestBuild
|
||||
# ID of the build. Used in naming the build output.
|
||||
buildId=wesnoth_umc_dev
|
||||
|
||||
# Label for the build. Used in naming the build output
|
||||
buildLabel=${buildType}.${buildId}
|
||||
buildLabel=${buildId}
|
||||
|
||||
# Timestamp for the build. Used in naming the build output
|
||||
timestamp=007
|
||||
|
||||
#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.
|
||||
|
@ -145,9 +76,6 @@ timestamp=007
|
|||
# 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=d:/bin/eclipse_build/
|
||||
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
|
||||
|
@ -176,7 +104,6 @@ skipBase=true
|
|||
#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
|
||||
|
@ -189,7 +116,6 @@ skipMaps=true
|
|||
#tagMaps=true
|
||||
#mapsTagTag=v${buildId}
|
||||
|
||||
|
||||
############ REPOSITORY CONTROL ###############
|
||||
# This section defines properties parameterizing the repositories where plugins, fragments
|
||||
# bundles and features are being obtained from.
|
||||
|
@ -202,29 +128,13 @@ skipMaps=true
|
|||
# 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=${java.home}/lib/rt.jar
|
||||
#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=${java.home}/lib/rt.jar
|
||||
#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
|
||||
|
@ -238,13 +148,8 @@ javacFailOnError=true
|
|||
# Enable or disable verbose mode of the compiler
|
||||
javacVerbose=true
|
||||
|
||||
# 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.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.6
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<project default="main">
|
||||
<property file="build.properties"/>
|
||||
<target name="main">
|
||||
<property name="baseLocation" value="${eclipse.home}"/>
|
||||
<!-- by default, check for deltapack co-located with eclipse -->
|
||||
<property name="deltapack" value="${eclipse.home}/deltapack/eclipse"/>
|
||||
|
||||
<available property="haveBaseLocation" file="${baseLocation}"/>
|
||||
<fail unless="haveBaseLocation" message="Please set the base location for the eclipse installation." />
|
||||
|
||||
<available property="haveBuildDirectory" file="${buildDirectory}"/>
|
||||
<fail unless="haveBuildDirectory" message="Please set the base location for the eclipse installation." />
|
||||
|
||||
<!-- Check that we have a deltapack -->
|
||||
<available property="haveDeltaPack" file="${deltapack}"/>
|
||||
<fail unless="haveDeltaPack" message="The deltapack is required to build this product. Please edit buildProduct.xml or set the "deltapack" property." />
|
||||
|
|
Loading…
Add table
Reference in a new issue