View | Details | Raw Unified | Return to bug 34191
Collapse All | Expand All

(-)build.sh (-2 / +9 lines)
Lines 24-41 Link Here
24
else
24
else
25
  S=':'
25
  S=':'
26
fi
26
fi
27
28
# ----- Cocoon libs
29
COCOON_HOME="../cocoon-2.1.x"
30
COCOON_HOME_PROP="cocoon.src.dir"
31
[ -f build.properties ] && grep -q ${COCOON_HOME_PROP} build.properties && COCOON_HOME="`grep ${COCOON_HOME_PROP}= build.properties | grep -v '#' | sed -e 's/${COCOON_HOME_PROP}=//'`"
32
[ -f local.build.properties ] && grep -q ${COCOON_HOME_PROP} local.build.properties && COCOON_HOME="`grep ${COCOON_HOME_PROP}= local.build.properties | grep -v '#' | sed -e 's/${COCOON_HOME_PROP}=//'`"
33
COCOON_ENDORESED_DIR="${COCOON_HOME}/lib/endorsed"
27
                                                                                                                                                             
34
                                                                                                                                                             
28
# ----- Ignore system CLASSPATH variable
35
# ----- Ignore system CLASSPATH variable
29
OLD_CLASSPATH="$CLASSPATH"
36
OLD_CLASSPATH="$CLASSPATH"
30
unset CLASSPATH
37
unset CLASSPATH
31
CLASSPATH="`echo lib/*.jar | tr ' ' $S`"
38
CLASSPATH="`echo lib/*.jar | tr ' ' $S`:`echo ${COCOON_ENDORESED_DIR}*.jar | tr ' ' $S`"
32
export CLASSPATH
39
export CLASSPATH
33
40
34
# ----- Use Ant shipped with Lenya. Ignore installed in the system Ant
41
# ----- Use Ant shipped with Lenya. Ignore installed in the system Ant
35
OLD_ANT_HOME="$ANT_HOME"
42
OLD_ANT_HOME="$ANT_HOME"
36
ANT_HOME=tools
43
ANT_HOME=tools
37
OLD_ANT_OPTS="$ANT_OPTS"
44
OLD_ANT_OPTS="$ANT_OPTS"
38
ANT_OPTS="-Xms32M -Xmx512M -Djava.endorsed.dirs=lib/endorsed"
45
ANT_OPTS="-Xms32M -Xmx512M -Djava.endorsed.dirs=${COCOON_ENDORESED_DIR}"
39
export ANT_HOME ANT_OPTS
46
export ANT_HOME ANT_OPTS
40
47
41
"$ANT_HOME/bin/ant" -logger org.apache.tools.ant.NoBannerLogger -emacs  $@
48
"$ANT_HOME/bin/ant" -logger org.apache.tools.ant.NoBannerLogger -emacs  $@

Return to bug 34191