Created
July 21, 2015 20:16
-
-
Save pilhuhn/741e0ca56e8f079bf7b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
gems 'rubygems:asciidoctor-diagram:1.3.0.preview.3' | |
gems 'rubygems:haml:4.0.6' | |
gems 'rubygems:thread_safe:0.3.4' | |
compile files("$javafxHome/jre/lib/jfxrt.jar") | |
compile 'me.champeau.deck2pdf:deck2pdf:0.3.0' | |
} | |
ext { | |
deckjs_version = '1.0.1' | |
deckjsDir = new File(buildDir, 'reveal.js') | |
adocDeckjsDir = new File(buildDir, 'asciidoctor-reveal.js') | |
} | |
task generatePdf(type:JavaExec) { | |
dependsOn asciidoctor | |
main = 'me.champeau.deck2pdf.Main' | |
workingDir = file("$buildDir/asciidoc/html5") | |
args = ['--profile=revealjs','slides.html',"${project.name}.pdf"] | |
Starting process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java''. Working directory: /Users/hrupp/tmp/HawkularPresentation/build/asciidoc/html5 Command: /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java -Dfile.encoding=UTF-8 -Duser.country=DE -Duser.language=de -Duser.variant -cp /Users/hrupp/tmp/HawkularPresentation/build/deck2pdf:/Users/hrupp/tmp/HawkularPresentation/build/classes/main:/Users/hrupp/tmp/HawkularPresentation/build/resources/main:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jfxrt.jar:/Users/hrupp/.gradle/caches/modules-2/files-2.1/me.champeau.deck2pdf/deck2pdf/0.3.0/b61ad63b4823801c0abf6f8038acea3120b2878a/deck2pdf-0.3.0.jar:/Users/hrupp/.gradle/caches/modules-2/files-2.1/com.itextpdf/itextpdf/5.5.1/391a5e410f8b95cd90b528ccc9aa618b1aee3b13/itextpdf-5.5.1.jar:/Users/hrupp/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.4/62dc4f50804c40f3233977e2d3d1a4abca60bc41/groovy-2.4.4.jar me.champeau.deck2pdf.Main --profile=revealjs slides.html HawkularPresentation.pdf | |
Successfully started process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java'' | |
Error while executing the following code: | |
Reveal.configure({controls: false, progress: false}); | |
Exception in thread "JavaFX Application Thread" netscape.javascript.JSException: ReferenceError: Can't find variable: Reveal | |
at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128) | |
at com.sun.webkit.WebPage.twkExecuteScript(Native Method) | |
at com.sun.webkit.WebPage.executeScript(WebPage.java:1427) | |
at javafx.scene.web.WebEngine.executeScript(WebEngine.java:948) | |
at me.champeau.deck2pdf.GroovyProfile.executeJS(GroovyProfile.java:65) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:497) | |
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) | |
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1077) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019) | |
at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1256) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1212) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810) | |
at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46) | |
at groovy.lang.Script.invokeMethod(Script.java:80) | |
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:430) | |
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:369) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019) | |
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69) | |
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52) | |
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154) | |
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166) | |
at Script1$_run_closure3.doCall(Script1.groovy:11) | |
at Script1$_run_closure3.doCall(Script1.groovy) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:497) | |
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) | |
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) | |
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019) | |
at groovy.lang.Closure.call(Closure.java:426) | |
at groovy.lang.Closure.call(Closure.java:420) | |
at me.champeau.deck2pdf.GroovyProfile.setup(GroovyProfile.java:123) | |
at me.champeau.deck2pdf.Browser.lambda$doExport$1(Browser.java:134) | |
at me.champeau.deck2pdf.Browser$$Lambda$133/1019176460.changed(Unknown Source) | |
at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
compile 'me.champeau.deck2pdf:deck2pdf:0.3.0' should be
pdf 'me.champeau.deck2pdf:deck2pdf:0.3.0'
and you are mixing reveal and deckjs refs.