dlwin888 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Make jsrun.sh works everywhere #231

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Suppose jsdoc_toolkit is install in /usr/local/jsdoc_toolkit
2. export PATH=$PATH:/usr/local/jsdoc_toolkit
3. go somewhere else than /usr/local/jsdoc_toolkit
4. try ti run jsrun.sh
=> 
java -jar ./jsrun.jar ./app/run.js
Unable to access jarfile ./jsrun.jar

What is the expected output? What do you see instead?
It simply works :)

What version of the product are you using? On what operating system?
2.3.0

Please provide any additional information below.
Here is my minor hack to make it works without specifying any new env vars:

if [[ -n "$JSDOCDIR" ]]; then
        _DOCDIR="-Djsdoc.dir=$JSDOCDIR"
        _APPDIR="$JSDOCDIR/app"
        _BASEDIR="$JSDOCDIR"
else
        _CURDIR=`dirname $0`
        _DOCDIR=""
        _APPDIR="$_CURDIR/app"
        _BASEDIR=$_CURDIR
fi

Could you add it in the next release?

Thx for your great work,
Wilfried Loche.

Original issue reported on code.google.com by wloche@gmail.com on 13 Aug 2009 at 9:28

GoogleCodeExporter commented 9 years ago
Since JSDocToolkit does not have an installer, I do not think there is a good 
way to 
achive this. Setting the environmental variables seems the best way to do this 
IMO. Or 
we'll need a "makefile" or an installer.

Original comment by madBYK on 24 Aug 2009 at 5:46