Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "WTP/Build/WTP Batch Build"

< WTP‎ | Build
(How to setup WTP batch Build locally)
Line 6: Line 6:
  
 
2. Check out build files
 
2. Check out build files
:
+
: mkdir <BUILD HOME>, for example mkdir /shared/webtools
 +
: checkout the releng.control project from CVS
  
3.
+
3. Modifying properties files for your local build environment (you can do this either in eclipse or by opening the files from command line)
 +
a. You can always get a fresh copy of all properties files from CVS by running the <BUILD HOME>/releng.control/get-relengControl.sh script, however to avoid your already modified properties files from being overwritten when the command is executed, you should make a copy of the properties directory first and modify the copied version
 +
e.g. cp –R <BUILD HOME>/releng.control/localBuildExample ../new_props
 +
 
 +
b. Modifying <workspace dir>/releng.control/commonVariations.shsource
 +
BUILD_HOME to location of where your java and ant
 +
ANT_HOME to location of where your ant
 +
JAVA_4_HOME to location of where your java 4
 +
JAVA_5_HOME to location of where your java 5
 +
 
 +
LOCAL_BUILD_PROPERTIES_DIR to the copied properties directory from the last step
 +
 
 +
BUILD_CVS_READ_PROTOCOL = pserver
 +
BUILD_CVS_READ_USER=anonymous
 +
BUILD_CVS_WRITE_PROTOCOL=pserver
 +
BUILD_CVS_WRITE_USER=anonymous
 +
BUILD_CVS_SERVER=dev.eclipse.org
 +
 
 +
SKIPUSER=true ;since this is a local build
 +
c. Modyfing <workspace>/new props dir/runbuild.properties
 +
Update this file to correspond to which JAVA you’re using locally, either IBM or Sun

Revision as of 18:55, 31 January 2008

How to setup WTP batch Build locally

1. Setup prereqs

a. apache ant 1.7 => http://ant.apache.org/
b. Java SDK 1.4 and 1.5

2. Check out build files

mkdir <BUILD HOME>, for example mkdir /shared/webtools
checkout the releng.control project from CVS

3. Modifying properties files for your local build environment (you can do this either in eclipse or by opening the files from command line) a. You can always get a fresh copy of all properties files from CVS by running the <BUILD HOME>/releng.control/get-relengControl.sh script, however to avoid your already modified properties files from being overwritten when the command is executed, you should make a copy of the properties directory first and modify the copied version e.g. cp –R <BUILD HOME>/releng.control/localBuildExample ../new_props

b. Modifying <workspace dir>/releng.control/commonVariations.shsource BUILD_HOME to location of where your java and ant ANT_HOME to location of where your ant JAVA_4_HOME to location of where your java 4 JAVA_5_HOME to location of where your java 5

LOCAL_BUILD_PROPERTIES_DIR to the copied properties directory from the last step

BUILD_CVS_READ_PROTOCOL = pserver BUILD_CVS_READ_USER=anonymous BUILD_CVS_WRITE_PROTOCOL=pserver BUILD_CVS_WRITE_USER=anonymous BUILD_CVS_SERVER=dev.eclipse.org

SKIPUSER=true ;since this is a local build c. Modyfing <workspace>/new props dir/runbuild.properties Update this file to correspond to which JAVA you’re using locally, either IBM or Sun

Back to the top