[ 2 posts ]

Mark

  • Offline
  • Profile

YUI Doc Build Exception

Post Posted: Fri Jun 11, 2010 12:37 pm
+0-
Hi,

I'm trying to get and automated YUI Doc process running in Eclipse using Ant as described in http://developer.yahoo.com/yui/yuidoc/. I seem to have it working part way but am unable to resolve an access permission exception.

I've followed all the available docs and have done the following in Mac OS X 10.6:

- installed:

- Python 2.6
- setuptools
- Pygments
- SimpleJSON
- Cheetah

- downloaded the sample doc project from http://github.com/saw/YUI-Doc-Example

- setup the sample project under /Users/[username]/Sites/yuidoc-example

- downloaded,extracted and copied the yuidoc_1.0.0b1.zip to /Users/[username]/yuidoc

- set up a Builder entry within Eclipse

Outcome:

The build runs, creates the 'build' and 'doctmp' dirs as per the example but then throws the exception:

Buildfile: /Users/[username]/Sites/yuidoc-example/build.xml

init:
[echo] Making sure build dir is there

doc:
[echo] generating documentation

BUILD FAILED
/Users/[username]/Sites/yuidoc-example/build.xml:31: Execute failed: java.io.IOException: Cannot run program "/Users/[username]/yuidoc/bin/yuidoc.py" (in directory "/Users/[username]/Sites/yuidoc-example"): error=13, Permission denied

Total time: 148 milliseconds

I'd really appreciate any advice anyone can give me.

Cheers,
Mark

P.S. By the YUI team I recently switched from jQuery and love your work! The YUI 3 experience has been such an eye opener for me.
Cheers,
Mark
codeinfront.com

Mark

  • Offline
  • Profile
Tags:

Re: YUI Doc Build Exception

Post Posted: Mon Jun 21, 2010 2:50 am
+0-
For anyone interested I managed to find the answer to my own question. Put simply:

Code:
chmod 766 yuidoc/bin/yuidoc.py


Seems simple now really ;)
Cheers,
Mark
codeinfront.com
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum