[jsword-svn] bibledesktop-web/web/version099 s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sat Dec 31 20:13:05 MST 2005


Update of /cvs/jsword/bibledesktop-web/web/version099
In directory www.crosswire.org:/tmp/cvs-serv15515/web/version099

Added Files:
	commons-net-1.3.0.jar jsword.bat icon32.png jlfgr-1_0.jar 
	bibledesktop.jar lcp.bat jsword.jar jsword.sh 
	bibledesktop.jnlp icon64.png lucene-1.4.3.jar jdom-1.0.jar 
	common.jar 
Log Message:
Updated tooling (Note could not upgrade checkstyle)

--- NEW FILE: commons-net-1.3.0.jar ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: jsword.jar ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: jsword.sh ---
#!/bin/sh

# Parts of this file were derived from the ant startup script for unix.
# Copyright (c) 2001-2003 The Apache Software Foundation.

# OS specific support.  $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
case "`uname`" in
  CYGWIN*) cygwin=true ;;
  Darwin*) darwin=true
           if [ -z "$JAVA_HOME" ] ; then
             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home   
           fi
           ;;
esac

if [ -z "$JSWORD" ] ; then
  ## resolve links - $0 may be a link to jsword's 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

  JSWORD=`dirname "$PRG"`

  cd "$saveddir"

  # make it fully qualified
  JSWORD=`cd "$JSWORD" && pwd`
fi

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
  [ -n "$JSWORD" ] &&
    JSWORD=`cygpath --unix "$JSWORD"`
  [ -n "$JAVA_HOME" ] &&
    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  [ -n "$CLASSPATH" ] &&
    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
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

# This is redundant if we are using the endorsed.dirs method
for i in "${JSWORD}/"*.jar
do
  # if the directory is empty, then it will return the input string
  # this is stupid, so case for it
  if [ -f "$i" ] ; then
    if [ -z "$LOCALCLASSPATH" ] ; then
      LOCALCLASSPATH="$i"
    else
      LOCALCLASSPATH="$i":"$LOCALCLASSPATH"
    fi
  fi
done

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
  JSWORD=`cygpath --windows "$JSWORD"`
  JAVA_HOME=`cygpath --windows "$JAVA_HOME"`
  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
  CYGHOME=`cygpath --windows "$HOME"`
fi

# "-Djava.endorsed.dirs=${JSWORD}/lib"
# -classpath "${JSWORD}/resource"
"$JAVACMD" -classpath "${LOCALCLASSPATH}" org.crosswire.bibledesktop.desktop.Desktop

--- NEW FILE: lucene-1.4.3.jar ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: common.jar ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: icon64.png ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: bibledesktop.jnlp ---
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 1.0//EN" "jnlp.dtd">

<jnlp spec="1.0+" codebase="http://www.crosswire.org/bibledesktop/stable" href="bibledesktop.jnlp">

  <information>
    <title>Bible Desktop</title>
    <vendor>Crosswire Bible Society</vendor>
    <homepage href="http://www.crosswire.org/bibledesktop"/>
    <description>Bible Desktop - Bible Study Software based on the Sword project</description>
    <description kind="short">Bible Desktop is a Bible study package available over the internet</description>
    <description kind="tooltip">Bible Desktop Application</description>
    <icon href="icon32.png"/>
    <icon kind="splash" href="icon64.png"/>    
    <offline-allowed/>
  </information>

  <security>
    <!--
    We need disk io to read installed Sword Bibles,
    network access to install new ones, and the ability to read system vars
    I'm not sure there is much point in asking for less that everything
    -->
    <all-permissions/>
  </security>

  <resources>
    <j2se version="1.4+" max-heap-size="512m"/>
    <jar href="bibledesktop.jar"/>
    <jar href="jsword.jar"/>
    <jar href="common.jar"/>
    <jar href="jdom-1.0.jar"/>
    <jar href="commons-net-1.3.0.jar"/>
    <jar href="lucene-1.4.3.jar"/>
    <jar href="jlfgr-1_0.jar"/>
    <property name="apple.laf.useScreenMenuBar" value="true"/>
    <property name="com.apple.mrj.application.apple.menu.about.name" value="BibleDesktop"/>
  </resources>

  <application-desc main-class="org.crosswire.bibledesktop.desktop.Desktop"/>

</jnlp>

--- NEW FILE: bibledesktop.jar ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: lcp.bat ---
REM   Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
REM   reserved.

set _CLASSPATHCOMPONENT=%1
if ""%1""=="""" goto gotAllArgs
shift

:argCheck
if ""%1""=="""" goto gotAllArgs
set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1
shift
goto argCheck

:gotAllArgs
set LOCALCLASSPATH=%_CLASSPATHCOMPONENT%;%LOCALCLASSPATH%


--- NEW FILE: jlfgr-1_0.jar ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: icon32.png ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: jsword.bat ---

REM STEP 1 - Initial setup
REM @echo off
if "%OS%"=="Windows_NT" @setlocal

REM STEP 2 - Check we know where we are installed
set DEFAULT_JSWORD=%~dp0
if "%JSWORD%"=="" set JSWORD=%DEFAULT_JSWORD%
set DEFAULT_JSWORD=
if exist "%JSWORD%" goto DoneFindJSword
REM have a blind guess ...
if not exist "C:\Progra~1\JSword" goto FailedFindJSword
set JSWORD=C:\Progra~1\JSword
:DoneFindJSword
echo "Using JSWORD=%JSWORD%"

REM STEP 3 - Setup the classpath
set LOCALCLASSPATH=%CLASSPATH%
for %%i in ("%JSWORD%\*.jar") do call "%JSWORD%\lcp.bat" %%i

REM STEP 4 - Run JSword
REM -Xmx256M
REM "-Djava.endorsed.dirs=%JSWORD%\lib"
REM -classpath "%JSWORD%\resource"
"%JAVA_HOME%\bin\java.exe" -classpath "%LOCALCLASSPATH%" org.crosswire.bibledesktop.desktop.Desktop
goto End

:FailedFindJSword
echo "Can't find install directory. Please use C:\Progra~1\JSword or set the JSWORD variable"

:End
set LOCALCLASSPATH=
set _JAVACMD=
if "%OS%"=="Windows_NT" @endlocal

--- NEW FILE: jdom-1.0.jar ---
(This appears to be a binary file; contents omitted.)



More information about the jsword-svn mailing list