{"action":"closed","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/169","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/169/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/169/events","html_url":"https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/169","id":96905926,"number":169,"title":"Cannot process Asciidoc files residing in a (sub)project's root directory","user":{"login":"pniederw","id":45382,"avatar_url":"https://avatars.githubusercontent.com/u/45382?v=3","gravatar_id":"","url":"https://api.github.com/users/pniederw","html_url":"https://github.com/pniederw","followers_url":"https://api.github.com/users/pniederw/followers","following_url":"https://api.github.com/users/pniederw/following{/other_user}","gists_url":"https://api.github.com/users/pniederw/gists{/gist_id}","starred_url":"https://api.github.com/users/pniederw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pniederw/subscriptions","organizations_url":"https://api.github.com/users/pniederw/orgs","repos_url":"https://api.github.com/users/pniederw/repos","events_url":"https://api.github.com/users/pniederw/events{/privacy}","received_events_url":"https://api.github.com/users/pniederw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-23T21:09:21Z","updated_at":"2015-11-12T17:50:16Z","closed_at":"2015-11-12T17:50:16Z","body":"Environment:\r\nGradle 2.5\r\norg.asciidoctor:asciidoctor-gradle-plugin:1.5.2\r\norg.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.8\r\n\r\nActions:\r\nPut Asciidoc files in a (sub)project's root directory\r\nSet `asciidoctor.sourceDir = projectDir`\r\nRun `gradlew asciidoctor`\r\n\r\nOutcome:\r\n```\r\n:docs:asciidoctor\r\nPassing through unknown backend: pdf\r\n:docs:asciidoctor FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':docs:asciidoctor'.\r\n> Error running Asciidoctor\r\n```\r\n\r\nStack trace:\r\n```\r\nCaused by: org.gradle.api.GradleException: Error running Asciidoctor\r\n\tat org.asciidoctor.gradle.AsciidoctorTask.processDocumentsAndResources(AsciidoctorTask.groovy:659)\r\n\tat org.asciidoctor.gradle.AsciidoctorTask.this$4$processDocumentsAndResources(AsciidoctorTask.groovy)\r\n\tat org.asciidoctor.gradle.AsciidoctorTask$this$4$processDocumentsAndResources.callCurrent(Unknown Source)\r\n\tat org.asciidoctor.gradle.AsciidoctorTask.processAsciidocSources(AsciidoctorTask.groovy:592)\r\n\tat org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208)\r\n\tat org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)\r\n\tat org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)\r\n\t... 69 more\r\nCaused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1\r\n\tat java_lang_StringBuilder$delete$0.call(Unknown Source)\r\n\tat org.asciidoctor.gradle.AsciidoctorUtils.getRelativePath(AsciidoctorUtils.groovy:57)\r\n\tat org.asciidoctor.gradle.AsciidoctorUtils$getRelativePath.call(Unknown Source)\r\n\tat org.asciidoctor.gradle.AsciidoctorTask.mergedOptions(AsciidoctorTask.groovy:701)\r\n\tat org.asciidoctor.gradle.AsciidoctorTask.processSingleFile(AsciidoctorTask.groovy:672)\r\n\tat org.asciidoctor.gradle.AsciidoctorTask$_processDocumentsAndResources_closure7.doCall(AsciidoctorTask.groovy:652)\r\n\tat org.asciidoctor.gradle.AsciidoctorTask.processDocumentsAndResources(AsciidoctorTask.groovy:647)\r\n\t... 80 more\r\n\r\n```"}}