blob: c59e086113c1472c169e39d04b3a929da9c15b10 [file] [log] [blame]
#!/bin/bash
# /*******************************************************************************
# * Copyright (c) 25.07.2011 Aaron Digulla.
# * 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:
# * Aaron Digulla - initial API and implementation and/or initial documentation
# *******************************************************************************/
# Helper script to run the result of "mvn install"
target=${target:-target}
[[ -e "$PWD/${target}/classes" ]] || { echo "Missing classes; did you compile?" ; exit 1 ; }
M2_REPO="$HOME/.m2/repository"
DECENT_XML="${M2_REPO}/de/pdark/decentxml/1.4/decentxml-1.4.jar"
[[ -e "$DECENT_XML" ]] || { echo "Missing JARs; did you compile?" ; exit 1 ; }
if [[ -z "$COLUMNS" ]]; then
COLUMNS=$(tput cols)
fi
export COLUMNS
java -Dfile.encoding=UTF-8 \
-classpath \
$PWD/${target}/classes:\
${M2_REPO}/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.jar:\
${M2_REPO}/ch/qos/logback/logback-core/1.0.0/logback-core-1.0.0.jar:\
${M2_REPO}/ch/qos/logback/logback-classic/1.0.0/logback-classic-1.0.0.jar:\
${M2_REPO}/org/codehaus/groovy/groovy-all/1.8.5/groovy-all-1.8.5.jar:\
${M2_REPO}/org/eclipse/tycho/org.eclipse.osgi/3.8.0.v20120123-1419/org.eclipse.osgi-3.8.0.v20120123-1419.jar:\
${DECENT_XML} \
m4e.Tool "$@"