New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File watch mode is broken #253

Closed
jonbullock opened this Issue Dec 29, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@jonbullock
Member

jonbullock commented Dec 29, 2015

File watch mode is broken in master branch.

The following is shown when used:

JBake v2.5.0-SNAPSHOT (2015-12-29 21:14:25PM) [http://jbake.org]

Dec 29, 2015 9:23:33 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/var/folders/v0/182c_jnx7995z6z86c648n640000gn/T/vfs_cache" as temporary files store.
org.apache.commons.vfs2.FileSystemException: Could not find file with URI "./content" because it is a relative path, and no base URI was provided.
    at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:719)
    at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:649)
    at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:605)
    at org.jbake.launcher.Main.startWatch(Main.java:160)
    at org.jbake.launcher.Main.run(Main.java:99)
    at org.jbake.launcher.Main.main(Main.java:41)
21:23:34.057 INFO  org.jbake.launcher.JettyServer - Serving out contents of: [output] on http://localhost:8820/
21:23:34.060 INFO  org.jbake.launcher.JettyServer - (To stop server hit CTRL-C)

Raised by @bodiam via Twitter.

@jonbullock jonbullock added the bug label Dec 29, 2015

@jonbullock jonbullock self-assigned this Dec 29, 2015

@jonbullock jonbullock added this to the v2.5.0 milestone Dec 29, 2015

@bodiam

This comment has been minimized.

Show comment
Hide comment
@bodiam

bodiam Dec 29, 2015

In the Main.java, change the listenPath line (line 160) to the following:

FileObject listenPath = fsMan.resolveFile(res.getSource(), config.getString(Keys.CONTENT_FOLDER));

This seems to fix the issue.

bodiam commented Dec 29, 2015

In the Main.java, change the listenPath line (line 160) to the following:

FileObject listenPath = fsMan.resolveFile(res.getSource(), config.getString(Keys.CONTENT_FOLDER));

This seems to fix the issue.

@jonbullock

This comment has been minimized.

Show comment
Hide comment
@jonbullock

jonbullock Dec 29, 2015

Member

Excellent thanks @bodiam

Member

jonbullock commented Dec 29, 2015

Excellent thanks @bodiam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment