File: eclipse-bootstrap.v0.sh

package info (click to toggle)
tycho 0.25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 104,880 kB
  • ctags: 165,013
  • sloc: java: 994,151; ansic: 92,109; xml: 35,919; cpp: 15,327; sh: 1,100; makefile: 207
file content (140 lines) | stat: -rwxr-xr-x 6,992 bytes parent folder | download
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/bin/bash -e
#with this script we want to build the eclipse jars (bundles) used by tycho
#this will install all bundles into a single jar (could be improved...)

#was: 3.10.100.v20150602-1500
osgiV='debian'
eclipseV='4.5.6'
BUNDLES="./eclipse-bundles"

# this is a writeable, temporary, maven repository
REPO=$1
BUILD=$2

cd $BUNDLES

mkdir -p $BUILD/src/main/java

echo "Copying files..."
cp -r org.eclipse.core.runtime/* $BUILD/src/main/java
cp -r org.eclipse.core.contenttype/src/* $BUILD/src/main/java
cp -r org.eclipse.core.jobs/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.core/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.metadata/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.publisher/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.publisher.eclipse/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.repository/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.metadata.repository/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.artifact.repository/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.jarprocessor/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.simpleconfigurator/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.simpleconfigurator.manipulator/* $BUILD/src/main/java
cp -r org.eclipse.equinox.frameworkadmin/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.frameworkadmin.equinox/src/* $BUILD/src/main/java
cp -r org.eclipse.osgi.util/src/* $BUILD/src/main/java
cp -r org.eclipse.osgi/container/src/* $BUILD/src/main/java
cp -r org.eclipse.osgi/supplement/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.preferences/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.preferences/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.common/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.security/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.app/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.registry/src/* $BUILD/src/main/java

cp -r org.eclipse.osgi.compatibility.state/src/* $BUILD/src/main/java	#compat. include osgi.internal...
cp -r org.eclipse.osgi/felix/src/* $BUILD/src/main/java

cp -r org.eclipse.equinox.p2.repository.tools/* $BUILD/src/main/java
cp -r org.eclipse.osgi/osgi/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.app/osgi/* $BUILD/src/main/java
cp -r org.eclipse.osgi.services/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.director/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.engine/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.jarprocessor/src_ant/* $BUILD/src/main/java

#$MAVEN_BIN compile              #first 1546 files 26sec

#need SteppedTimeoutLexicoHelper from sat4j 2.3.4

cp -r org.eclipse.equinox.p2.touchpoint.eclipse/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.garbagecollector/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.updatesite/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.p2.director.app/src/* $BUILD/src/main/java
cp -r org.eclipse.core.net/src/* $BUILD/src/main/java

#$MAVEN_BIN compile             #here 1663 files 28sec

cp -r org.eclipse.swt/Eclipse\ SWT/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT/cairo/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT/emulated/taskbar/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT/emulated/bidi/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT/emulated/coolbar/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT/common_j2se/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Custom\ Widgets/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Printing/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Printing/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ PI/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ PI/common_j2se/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ PI/cairo/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ PI/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Accessibility/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Accessibility/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Browser/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Browser/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Mozilla/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ WebKit/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Program/common/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Program/gtk/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Program/gnome/* $BUILD/src/main/java
cp -r org.eclipse.swt/Eclipse\ SWT\ Program/cde/* $BUILD/src/main/java

#$MAVEN_BIN compile             #here 2226 files 35sec

cp -r org.eclipse.jdt.core/compiler/* $BUILD/src/main/java	#org.eclipse.jdt...
cp -r org.eclipse.jdt.core/batch/* $BUILD/src/main/java
cp -r org.eclipse.jdt.core/model/* $BUILD/src/main/java
cp -r org.eclipse.jdt.core/codeassist/* $BUILD/src/main/java
cp -r org.eclipse.jdt.core/search/* $BUILD/src/main/java
cp -r org.eclipse.jdt.core/dom/* $BUILD/src/main/java
cp -r org.eclipse.jdt.core/formatter/* $BUILD/src/main/java
cp -r org.eclipse.jdt.core/eval/* $BUILD/src/main/java
cp -r org.eclipse.text/src/* $BUILD/src/main/java
cp -r org.eclipse.text/projection/* $BUILD/src/main/java
cp -r org.eclipse.jface.text/src/* $BUILD/src/main/java
cp -r org.eclipse.jface.text/projection/* $BUILD/src/main/java
cp -r org.eclipse.core.commands/* $BUILD/src/main/java
cp -r org.eclipse.jface/src/* $BUILD/src/main/java
cp -r org.eclipse.core.expressions/src/* $BUILD/src/main/java
cp -r org.eclipse.equinox.bidi/src/* $BUILD/src/main/java
cp -r org.eclipse.core.resources/src/* $BUILD/src/main/java
cp -r org.eclipse.core.filesystem/src/* $BUILD/src/main/java

#$MAVEN_BIN compile              #4811 files 71sec

cp pom.xml $BUILD

cd $BUILD

#mvn -o -Dmaven.repo.local=$REPO -Dmaven.test.skip=true install

#FIXME libequinox-osgi-java ?
#provo a schermarlo per usare maven-repo-helper
#echo "installing tycho artifacts..."
#
#function fake_tycho_artifact() {
#  ARTIFACTID=$1
#  VERSION=$2
#  mkdir -p $REPO/org/eclipse/tycho/$ARTIFACTID/$VERSION
#  ln -sf $REPO/org/eclipse/eclipse-bootstrap/${eclipseV}/eclipse-bootstrap-${eclipseV}.jar $REPO/org/eclipse/tycho/$ARTIFACTID/$VERSION/$ARTIFACTID-$VERSION.jar
#  cp debian/$ARTIFACTID.pom.xml $REPO/org/eclipse/tycho/$ARTIFACTID/$VERSION/$ARTIFACTID-$VERSION.pom
#}
#
#fake_tycho_artifact org.eclipse.osgi ${osgiV}
#fake_tycho_artifact org.eclipse.osgi.compatibility.state ${osgiV}
#fake_tycho_artifact org.eclipse.jdt.core ${osgiV}
#fake_tycho_artifact org.eclipse.jdt.compiler.apt ${osgiV}