tksk / jing-trang

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

jing -s should take an argument giving the output filename #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

On line 43 of Driver.java, an ErrorHandler is set up to use System.out. I think 
it would be better to use System.err. 

Currently, jing -s spits out the simpilfied schema to stdout. If an error 
happens during the simplification, the error is also sent to system.out. This 
means that you have to check the contents of the file to see if the processing 
worked, whereas system.err would be seen when the command was run.

It would also be nice if there was an arg to specify an output filename for the 
-s command instead of just system.out.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

jing 20091111
MacOSX 10.6
Java 1.6

Please provide any additional information below.

Original issue reported on code.google.com by pcrotw...@gmail.com on 18 Aug 2010 at 4:41

GoogleCodeExporter commented 9 years ago
I prefer to make messages go to stdout because it's easier to redirect 
particularly for Windows users.

Since jing is a validator, it's main job is to generate validation messages, 
and it's a normal situation for it to generate messages, so I think it's 
reasonable to regard these as the "output" of jing.

However the behaviour with -s is definitely a problem, so I think it's best to 
fix -s to take an argument.

Original comment by jjc.jclark.com on 24 Aug 2010 at 4:24