Closed GoogleCodeExporter closed 8 years ago
I believe this is a duplicate of issue 176 and so was fixed in revision 672.
http://code.google.com/p/jsdoc-toolkit/source/detail?r=672
This is will be released in the next bugfix release, 2.0.3.
Original comment by micmath
on 11 Sep 2008 at 6:47
You are correct, it is the same bug; I did not seen the other entry. However, I
don't think the fix is complete. It does not work if the template directory on
the
command line does not end with a slash '/'. The code in the JsDoc.js file that
I
attached has a fix for this. I have added the following code:
if (typeof JSDOC.opt.t == "string") {
if (!JSDOC.opt.t.charAt(JSDOC.opt.t.length-1).match(/[\\\/]/)) {
JSDOC.opt.t = JSDOC.opt.t+"/";
}
LOG.inform("Template directory set to '"+JSDOC.opt.t+"'.");
}
Original comment by cory.burkhardt@gmail.com
on 11 Sep 2008 at 3:18
Thanks very much. This has been committed in revision 685.
Original comment by micmath
on 11 Sep 2008 at 9:51
Using 2.1.0b
Looking at changes.txt I think this is the right place to put this comment.
With version 2.0.2 my configuration file, for windows, worked fine when it
included this:
{
// Documentation template.
t: "templates\\jsdoc",
}
With 2.1.0b I get an error unless I put a slash on the end.
{
// Documentation template.
t: "templates\\jsdoc\\",
}
JsDoc Toolkit : Generating TslDocs...
js: Couldn't open file "templates\jsdocpublish.js".
>> WARNING: Sorry, that doesn't seem to be a valid template: templates\jsdocpubl
ish.js : ReferenceError: "publish" is not defined.
1 warning.
Is this correct, MUST you now add a slash at the end?
Thanks,
Max
Original comment by m...@dayala.co.uk
on 10 Jan 2009 at 3:29
This is a bug which only affects configuration files. It can be avoided by
adding the trailing slash, but in the next
release the trailing slash will be added automatically if it is missing. This
really isn't directly related to issue 177,
so I'm going to open a new issue.
Original comment by micmath
on 11 Jan 2009 at 12:03
Moved to Issue #191.
Original comment by micmath
on 11 Jan 2009 at 12:19
Original issue reported on code.google.com by
cory.burkhardt@gmail.com
on 10 Sep 2008 at 11:32Attachments: