forked from orcc/ci-server-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.eclipse.sh
executable file
·46 lines (32 loc) · 1.12 KB
/
setup.eclipse.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
source `dirname $0`/defines.sh
echo "***START*** $0 `date -R`"
BUILDDEPS="org.eclipse.pde.feature.group,org.eclipse.emf.sdk.feature.group,org.eclipse.xtext.sdk.feature.group,org.eclipse.gef.feature.group"
mkdir -p $ORCCWORK
rm -fr $ECLIPSERUN
rm -fr $ECLIPSEBUILD
mkdir $ECLIPSERUN
mkdir $ECLIPSEBUILD
echo "Downloading Eclipse"
wget --progress=dot:mega $ECLIPSEURL
ECLIPSEARCHIVE=`echo eclipse-platform-*.tar.gz`
echo "Uncompressing"
tar -xzaf $ECLIPSEARCHIVE
echo "Update java max heap size"
sed -i -e "s/-Xmx384m/-Xmx512m/g" eclipse/eclipse.ini
echo "Copying eclipse/* into $ECLIPSERUN and $ECLIPSEBUILD"
cp -r eclipse/* $ECLIPSERUN
cp -r eclipse/* $ECLIPSEBUILD
echo "Deleting 'eclipse' directory and archive downloaded"
rm -rf eclipse
rm $ECLIPSEARCHIVE
echo "Installing plugins required for build step into eclipse.build"
cd $ORCCWORK
$ECLIPSEBUILD/eclipse -nosplash -consoleLog \
-application org.eclipse.equinox.p2.director \
-destination $ECLIPSEBUILD \
-repository $ECLIPSEREPOSITORY \
-followReferences \
-installIU $BUILDDEPS
[ "$?" != "0" ] && exit 1
echo "***END*** $0 `date -R`"