[Htmlparser-cvs] htmlparser/bin crawler.bat,NONE,1.1 lexer,NONE,1.1 lexer.bat,NONE,1.1 parser.bat,NO
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-09-23 03:41:41
|
Update of /cvsroot/htmlparser/htmlparser/bin In directory sc8-pr-cvs1:/tmp/cvs-serv11902/bin Added Files: crawler.bat lexer lexer.bat parser.bat ripper.bat thumbelina thumbelina.bat Log Message: Distribution cleanup. - Removed duplicate documentation files from src.zip. - Jars are now built in lib, and stay there, rather than being deleting in the clean task. *** NOTE *** No more release directory. - Added checkstyle-all-3.1.jar to the lib directory, so others can run it too. - Moved executable scripts from resources to a new bin directory so they can be executed in a development environment. - Moved fit.jar from resources to the lib directory. This left the resources directory empty, but... - Moved cvs2cl and checkstyle files into the resources directory. - Eliminated staging of source files and release files just to construct a zip. These are now aggregated by their respective zip tasks. - Changed name of changeLog task to changelog. - Fixed a few javadoc warnings. - Removed the spurious 'run' from the front of all the names of the DOS batch files. The only files that aren't shipped now are the results, specs and .ssh directory, (whatever they are), and the development environment is identical to the unpacked zips except for maybe the built directories (distribution, javadocs). --- NEW FILE: crawler.bat --- java -classpath ..\lib\htmlparser.jar org.htmlparser.parserapplications.Robot %1 %2 --- NEW FILE: lexer --- #! /bin/sh if [ -z "$HTMLPARSER_HOME" ] ; then ## resolve links - $0 may be a link to the home PRG="$0" progname=`basename "$0"` saveddir=`pwd` # need this for relative symlinks dirname_prg=`dirname "$PRG"` cd "$dirname_prg" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done HTMLPARSER_HOME=`dirname "$PRG"`/.. cd "$saveddir" # make it fully qualified HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd` fi if [ -z "$JAVACMD" ] ; then if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi else JAVACMD=`which java 2> /dev/null ` if [ -z "$JAVACMD" ] ; then JAVACMD=java fi fi fi if [ ! -x "$JAVACMD" ] ; then echo "Error: JAVA_HOME is not defined correctly." echo " We cannot execute $JAVACMD" exit 1 fi if [ -n "$CLASSPATH" ] ; then LOCALCLASSPATH="$CLASSPATH" fi HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib" # add in the lexer .jar file if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH="${HTMLPARSER_LIB}/htmllexer.jar" else LOCALCLASSPATH="${HTMLPARSER_LIB}/htmllexer.jar":"$LOCALCLASSPATH" fi # handle 1.1x JDKs if [ -n "$JAVA_HOME" ] ; then if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" fi fi "$JAVACMD" -classpath "$LOCALCLASSPATH" org.htmlparser.lexer.Lexer "$@" --- NEW FILE: lexer.bat --- java -jar ..\lib\htmlparser.jar org.htmlparser.lexer.Lexer %1 %2 --- NEW FILE: parser.bat --- java -jar ..\lib\htmlparser.jar %1 %2 --- NEW FILE: ripper.bat --- java -classpath ..\lib\htmlparser.jar org.htmlparser.parserapplications.MailRipper %1 %2 --- NEW FILE: thumbelina --- #! /bin/sh if [ -z "$HTMLPARSER_HOME" ] ; then ## resolve links - $0 may be a link to the home PRG="$0" progname=`basename "$0"` saveddir=`pwd` # need this for relative symlinks dirname_prg=`dirname "$PRG"` cd "$dirname_prg" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done HTMLPARSER_HOME=`dirname "$PRG"`/.. cd "$saveddir" # make it fully qualified HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd` fi if [ -z "$JAVACMD" ] ; then if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi else JAVACMD=`which java 2> /dev/null ` if [ -z "$JAVACMD" ] ; then JAVACMD=java fi fi fi if [ ! -x "$JAVACMD" ] ; then echo "Error: JAVA_HOME is not defined correctly." echo " We cannot execute $JAVACMD" exit 1 fi HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib" "$JAVACMD" -Xmx256M -jar "${HTMLPARSER_LIB}/thumbelina.jar" "$@" --- NEW FILE: thumbelina.bat --- java -Xmx256M -jar ..\lib\thumbelina.jar %1 %2 |