[Htmlparser-cvs] htmlparser/resources lexer,NONE,1.1 runLexer.bat,NONE,1.1 Manifest.mf,1.3,NONE
Brought to you by:
derrickoswald
|
From: <der...@us...> - 2003-08-23 01:33:09
|
Update of /cvsroot/htmlparser/htmlparser/resources
In directory sc8-pr-cvs1:/tmp/cvs-serv23027/resources
Added Files:
lexer runLexer.bat
Removed Files:
Manifest.mf
Log Message:
Fifth drop for new i/o subsystem.
There is now a mainline for the lexer.
Try:
java -jar lexer.jar http://whatever
or the integration build has a new lexer execution script:
bin/lexer http://whatever
--- 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: runLexer.bat ---
java -jar ..\lib\htmlparser.jar org.htmlparser.lexer.Lexer %1 %2
--- Manifest.mf DELETED ---
|