blob: 1b958c50f7c1a10da8b1e41454757b7f8e536f19 [file] [log] [blame]
#! /bin/bash
#*******************************************************************************
# Copyright (c) 2009, 2016 Xored Software Inc and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Xored Software Inc - initial API and implementation and/or initial documentation
#*******************************************************************************
SCRIPT_LOC=$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )
CLASSIFIER=${CLASSIFIER:-linux/gtk/x86_64}
TARGET=$SCRIPT_LOC/target
if [ -d "$TARGET" ]; then
rm -r "$TARGET"
fi
ECLIPSE_LOC=${ECLIPSE_LOC:-$SCRIPT_LOC/../../repository/full/target/products/org.eclipse.rcptt.platform.product/$CLASSIFIER/rcptt}
LAUNCHER=$(find $ECLIPSE_LOC/plugins -name "org.eclipse.equinox.launcher_*")
echo "SCRIPT_LOC = $SCRIPT_LOC"
echo "PWD = $PWD"
echo "CLASSIFIER = $CLASSIFIER"
echo "ECLIPSE_LOC = $ECLIPSE_LOC"
echo "TARGET = $TARGET"
echo "LAUNCHER = $LAUNCHER"
java -jar $LAUNCHER \
-application org.eclipse.rcptt.ecl.doc.generator \
-output $TARGET/doc/ecl/index.html