#!/bin/sh
# 
# Checkstyle script
# JPackage Project <http://www.jpackage.org/>
# $Id: checkstyle-5.0-script,v 1.1 2008/08/07 21:22:38 david Exp $

# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then 
  . /usr/share/java-utils/java-functions
else
  echo "Can't find functions library, aborting"
  exit 1
fi

# Configuration
MAIN_CLASS=com.puppycrawl.tools.checkstyle.Main
BASE_JARS="checkstyle antlr google-collections jakarta-commons-beanutils jakarta-commons-cli jakarta-commons-logging jakarta-commons-collections jaxp_parser_impl"

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"
