Permalink
Browse files

extradoc.sh and bug fix by Tim Perrett (https://github.com/timperrett)

  • Loading branch information...
1 parent 19f4ae6 commit 26c29579086f3d6fd0091a72f3e91a7454ea94d2 @szeiger committed Jan 30, 2011
Showing with 17 additions and 1 deletion.
  1. +4 −1 README.txt
  2. +10 −0 bin/extradoc.sh
  3. +3 −0 src/main/scala/com/novocode/extradoc/json/JsonMultiFactory.scala
View
5 README.txt
@@ -46,4 +46,7 @@ already exists; put everything on one line):
src\actors src\library\scala src\swing src\continuations\library
See LICENSE.txt for licensing conditions (BSD-style). Dependencies have their
-own licenses (BSD or MIT).
+own licenses (BSD, MIT, Apache, Scla). Patches are gladly accepted from their
+original author. Along with any patches, please state that the patch is your
+original work and that you license the work to the Extradoc project under the
+project's open source license.
View
10 bin/extradoc.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+_SCRIPT_PATH="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
+_SCRIPT_DIR=`dirname "${_SCRIPT_PATH}"}`
+_EXTRADOC_HOME=${_SCRIPT_DIR}/..
+
+export TOOL_CLASSPATH="${_EXTRADOC_HOME}/target/scala_2.8.0/classes:${_EXTRADOC_HOME}/src/main/resources"
+export JAVA_OPTS="-Xms512M -Xmx2048M -Xss1M -XX:MaxPermSize=128M"
+
+scala -classpath ${TOOL_CLASSPATH} com.novocode.extradoc.ExtraDoc "$@"
View
3 src/main/scala/com/novocode/extradoc/json/JsonMultiFactory.scala
@@ -29,8 +29,11 @@ class JsonMultiFactory(universe: Universe, explorer: Boolean = false) extends Ab
val p = "/com/novocode/extradoc/explorer"
copyResource(p, "index.html")
copyResource(p, "css/extradoc.css")
+ copyResource(p, "js/cache.js")
+ copyResource(p, "js/diagrams.js")
copyResource(p, "js/extradoc.js")
copyResource(p, "js/explorer.js")
+ copyResource(p, "js/jit.js")
copyResource(p, "js/jquery-1.4.2.min.js")
copyResource(p, "js/jquery-ui-1.8.5.custom.min.js")
copyResource(p, "js/jquery.history.js")

0 comments on commit 26c2957

Please sign in to comment.