Hi, Dave!
I'm so confused ... didn't you see the bash shell script? Here it is:
https://github.com/NCBITools/DtdAnalyzer/blob/master/dtdanalyzer.
As for the log4j ... I got that from the d2rq script. I know we're
not using it at present, but I thought, it looks like a pretty cool
utility, and maybe we'll want to use it in the future, so I didn't
take that setting out of the startup scripts. It doesn't break
anything, since nothing in the code is looking for this file. I'll
put a note about this fact in each of the existing scripts.
The bash script that I got from d2rq sets $DTDANALYZER_HOME based on
the directory in which the script resides. The only thing I'm not
crazy about is that it doesn't follow symlinks. So, if I set up a
symlink to point to the script from somewhere else, say:
cd /usr/bin
ln -s /home/maloneyc/DtdAnalyzer/dtdanalyzer
And then try to run /usr/bin/dtdanalyzer, it won't work, because
DTDANALYZER_HOME, inside the script, will be "/usr/bin".
I found a convoluted way of resolving that, here:
http://www.daniweb.com/software-development/shell-scripting/threads/342521/getting-pwd-of-the-script.
But I think it is too complicated, and probably brittle, and not
worth it.
This is really getting into the area of making a distribution package,
I think, so that people could get it with apt-get or rpm -- which is
beyond what I know how to do.
Let me know if you have any feedback on the existing bash script.
Thanks!
Chris
> --
> You received this message because you are subscribed to the Google Groups "DtdAnalyzer" group.
> To post to this group, send email to
dtdan...@googlegroups.com.
> To unsubscribe from this group, send email to
dtdanalyzer...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/dtdanalyzer?hl=en.
>