tksk / jing-trang

Automatically exported from code.google.com/p/jing-trang
0 stars 0 forks source link

Make it easier to call Trang from Java #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trang's com.thaiopensource.relaxng.translate.Driver.main method calls 
System.exit and the Driver.doMain is private. So you can't call Trang from 
Java without either exiting the VM or copying much of the code from 
Driver.doMain. An easy way to call Trang from Java would be nice.

Original issue reported on code.google.com by uja...@gmail.com on 3 Feb 2009 at 7:35

GoogleCodeExporter commented 9 years ago
So you just want doMain made public?

Are you OK with errors always going to System.err?

Original comment by jjc.jclark.com on 4 Feb 2009 at 1:47

GoogleCodeExporter commented 9 years ago
That would be a simple start, yes. Of course, there's no harm in having a 
variant 
that takes an ErrorHandler as a parameter ;-) but I suppose something like that 
will 
be done anyway when making an Ant task (issue 5).

Thanks, Jay

Original comment by uja...@gmail.com on 4 Feb 2009 at 3:16

GoogleCodeExporter commented 9 years ago

Original comment by jjc.jclark.com on 5 Feb 2009 at 1:40

GoogleCodeExporter commented 9 years ago
Fixed in r2321.

Original comment by jjc.jclark.com on 5 Feb 2009 at 1:42

GoogleCodeExporter commented 9 years ago
Great. Thank you. Jay

Original comment by uja...@gmail.com on 9 Feb 2009 at 11:16