Ahhhh thanks! I understand, I only checked out the trunk folder (I totally
forgot how SVN works). Sorry for the noob question and thanks for pointing
me in the right direction. I'll try it now.

On Wed, Jan 13, 2016 at 8:00 PM, Kevin Minder <[email protected]>
wrote:

> Lars,
>
> There does appear to be some chicken/egg issue here that probably need to
> be fixed.  However I believe your issue is that you seem to be deleting the
> site/books that is present in svn.  It is sort of strange but site site
> directory is actually the final published site that is picked up the the
> Apache site content management system for publishing the site.  If these
> were empty as the result of a 'svn checkout
> https://svn.apache.org/repos/asf/knox' then we would have no Apache Knox
> site.
>
> Anyway, what I think you need to do is...
>
> ~/Projects> cd knox-site
> ~/Projects/knox-site> svn up
> ~/Projects/knox-site> ant generate review
>
> Specifically the 'svn up’ should bring back
> site/books/knox-0-3-0/markbook-section-link.png
> Which will then allow the ant generate review to work.
>
> That being said I need to figure out why markbook-section-link.png isn’t
> getting pulled from
> trunk/markbook/src/main/resources/markbook-section-link.png like I believe
> it should be.
>
> I also note that the ‘Contribution Process’ docs for this are (shall we
> say) “thin”.  I’ll add there as well.
>
> Kevin.
>
>
>
> On 1/13/16, 11:48 AM, "Lars Francke" <[email protected]> wrote:
>
> >Hi,
> >
> >as hinted at in KNOX-645 I now get the next error:
> >
> >_book-0-3-0:
> >     [java] Loading markdown from
> >/Users/lars/dev/external/knox-site/books/0.3.0/book.md
> >     [java] Exception in thread "main" java.io.FileNotFoundException:
> >../site/books/knox-0-3-0/markbook-section-link.png (No such file or
> >directory)
> >     [java] at java.io.FileOutputStream.open0(Native Method)
> >     [java] at java.io.FileOutputStream.open(FileOutputStream.java:270)
> >     [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
> >     [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
> >     [java] at
>
> >org.apache.hadoop.gateway.markbook.MarkBook.extractClassPathResourceToFile(MarkBook.java:251)
> >     [java] at
>
> >org.apache.hadoop.gateway.markbook.MarkBook.replaceHeadings(MarkBook.java:146)
> >     [java] at
>
> >org.apache.hadoop.gateway.markbook.MarkBook.loadMarkdown(MarkBook.java:104)
> >     [java] at
> >org.apache.hadoop.gateway.markbook.MarkBook.loadMarkdown(MarkBook.java:95)
> >     [java] at
> >org.apache.hadoop.gateway.markbook.MarkBook.main(MarkBook.java:73)
> >
> >There seem to be some assumptions in there. I've checked out the site SVN
> >separately so no "../site/books" directory exists. I'm not sure if I'm
> >doing something wrong or if this is a bug.
> >
> >Easily reproducible by running
> > java -jar markbook/target/markbook.jar -i books/0.3.0/book.md -o
> >../site/books/foobar.html
> >
> >It seems to work when I do
> > java -jar markbook/target/markbook.jar -i books/0.3.0/book.md -o
> >foobar.html
> >
> >Any ideas? Thanks!
> >
> >Cheers,
> >Lars
>

Reply via email to