summaryrefslogtreecommitdiff
path: root/solenv/bin/checkapi
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-09-30 07:44:27 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-09-30 07:44:27 +0000
commit1e45ed40cc07a9c0c6d3f53a3f46c990f6b9cb3d (patch)
treea62221dba83a0302f488c987821d29a9a6828cc6 /solenv/bin/checkapi
parent51eeedaa875572f5bdd44b879435aec081d8861b (diff)
CWS-TOOLING: integrate CWS qadev33
Diffstat (limited to 'solenv/bin/checkapi')
-rwxr-xr-xsolenv/bin/checkapi16
1 files changed, 15 insertions, 1 deletions
diff --git a/solenv/bin/checkapi b/solenv/bin/checkapi
index c5f271da7575..c642f4dbde26 100755
--- a/solenv/bin/checkapi
+++ b/solenv/bin/checkapi
@@ -18,7 +18,21 @@ else
exit 1
fi
-PARAM="-cs pipe,name=$USER"
+if [ x${USER}x = xx ]; then
+ if [ x${LOGNAME}x = xx ]; then
+ echo "ERROR: could not determine username. Please export variable USER" >&2
+ exit $EXIT_FAILURE
+ else
+ USER=$LOGNAME
+ export USER
+ fi
+fi
+
+PARAM="-cs pipe,name=$USER -SRC_ROOT $SRC_ROOT"
+
+if [ -n "$RUNNERPROPS" ]; then
+ PARAM="$PARAM -ini $RUNNERPROPS"
+fi
COMMAND="$JAVABIN -Xmx120m -cp $myCLASSPATH org.openoffice.Runner $PARAM $*"
echo $COMMAND