-
Notifications
You must be signed in to change notification settings - Fork 0
/
javadoc.sh
88 lines (77 loc) · 2.37 KB
/
javadoc.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
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
#!/bin/sh
JAVADOC="/opt/public/common/jdk1.6.0_27.x86_64/bin/javadoc"
# WORKSPACE:
WORKSPACE="/opt/public/jobs/cbi_henshin_nightly/workspace/henshin/plugins"
# ECLIPSE:
ECLIPSE="/home/data/users/ckrause/eclipse-juno-x86_64"
# DESTINATION:
DEST="/home/data/httpd/download.eclipse.org/modeling/emft/henshin/javadoc/nightly"
# TITLE:
TITLE="Henshin"
# PACKAGES:
PACKAGES="org.eclipse.emf.henshin
org.eclipse.emf.henshin.model
org.eclipse.emf.henshin.model.exporters
org.eclipse.emf.henshin.model.importers
org.eclipse.emf.henshin.model.impl
org.eclipse.emf.henshin.model.resource
org.eclipse.emf.henshin.model.util
org.eclipse.emf.henshin.interpreter
org.eclipse.emf.henshin.interpreter.impl
org.eclipse.emf.henshin.interpreter.util
org.eclipse.emf.henshin.statespace
org.eclipse.emf.henshin.statespace.impl
org.eclipse.emf.henshin.statespace.resource
org.eclipse.emf.henshin.statespace.util
org.eclipse.emf.henshin.statespace.external
org.eclipse.emf.henshin.statespace.external.cadp
org.eclipse.emf.henshin.statespace.external.mcrl2
org.eclipse.emf.henshin.statespace.external.prism
org.eclipse.emf.henshin.statespace.external.tikz
org.eclipse.emf.henshin.trace
org.eclipse.emf.henshin.trace.impl
org.eclipse.emf.henshin.trace.util
org.eclipse.emf.henshin.wrap
org.eclipse.emf.henshin.wrap.impl
org.eclipse.emf.henshin.wrap.util"
# DEPENDENCIES:
DEPS="org.eclipse.core.runtime
org.eclipse.osgi
org.eclipse.equinox.common
org.eclipse.emf.ecore
org.eclipse.emf.ecore.xmi
org.eclipse.emf.common
org.eclipse.emf.compare
org.eclipse.emf.compare.diff
org.eclipse.emf.compare.match
org.eclipse.emf.query.ocl
org.junit
org.eclipse.ocl
org.eclipse.ocl.ecore"
# LINKS:
LINKS="http://java.sun.com/javase/6/docs/api/
http://download.eclipse.org/modeling/emf/emf/javadoc/2.8.0/"
# Build source path and classpath:
SP=""
CP=""
for s in $PACKAGES; do
SP="$SP:$WORKSPACE/$s/src"
# CP="$CP:$WORKSPACE/$s/bin"
done
SP=`echo $SP | cut -c2-`
CP=`echo $CP | cut -c2-`
for d in $DEPS; do
NEXT=`ls $ECLIPSE/plugins | grep "${d}_" | head -1`
NEXT="$ECLIPSE/plugins/$NEXT"
if [ "$d" = "org.junit" ]; then
NEXT=`ls $ECLIPSE/plugins | grep "org.junit_4" | head -1`
NEXT="$ECLIPSE/plugins/$NEXT/junit.jar"
fi
CP="$CP:$NEXT"
done
# Build the offline links:
LN=""
for l in $LINKS; do
LN="$LN -linkoffline $l $l"
done
$JAVADOC -doctitle $TITLE -windowtitle $TITLE -d $DEST -sourcepath $SP -classpath $CP $LN $PACKAGES