File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ function parseUml(page) {
13
13
14
14
function execFile ( command , args , callback ) {
15
15
var prc = spawn ( command , args ) ;
16
+
17
+ prc . on ( 'error' , function ( err ) {
18
+ console . log ( 'cannot spawn java' ) ;
19
+ } ) ;
20
+
16
21
prc . stdout . on ( 'data' , function ( data ) {
17
22
console . log ( data . toString ( ) ) ;
18
23
} ) ;
@@ -55,12 +60,12 @@ module.exports = {
55
60
56
61
// This is called before the book is generated
57
62
"init" : function ( ) {
58
- console . log ( "init gitbook-plantUML !" ) ;
63
+ console . log ( "init gitbook-plugin-plantuml !" ) ;
59
64
} ,
60
65
61
66
// This is called after the book generation
62
67
"finish" : function ( ) {
63
- console . log ( "finish gitbook-plantUML !" ) ;
68
+ console . log ( "finish gitbook-plugin-plantuml !" ) ;
64
69
} ,
65
70
66
71
// The following hooks are called for each page of the book
@@ -82,7 +87,7 @@ module.exports = {
82
87
//UML
83
88
debugger ;
84
89
try {
85
- execFile ( 'java ' , [ '-jar' ,
90
+ execFile ( 'javaa ' , [ '-jar' ,
86
91
'plantuml.jar' ,
87
92
'-tsvg' ,
88
93
'plantuml.uml' ,
Original file line number Diff line number Diff line change 2
2
"name" : " gitbook-plugin-plantuml" ,
3
3
"description" : " PlantUML plugin for GitBook" ,
4
4
"main" : " index.js" ,
5
- "version" : " 0.0.3 " ,
5
+ "version" : " 0.0.4 " ,
6
6
"engines" : {
7
7
"gitbook" : " *"
8
8
},
You can’t perform that action at this time.
0 commit comments