[cvsnt] Re: running loginfo in cvsnt

yinhua hyin at cdtv.org.cn
Fri Jun 10 07:17:49 BST 2005


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Bo Berglund,ÄúºÃ£¡

	

======= 2005-06-09 14:56:35 ÄúÔÚÀ´ÐÅÖÐдµÀ£º=======

>> How to get the log message from the STDIN, is there any sample for this?
>
>Are you kidding? *Any* program you write should be able to read STDIN, right?
>
Sorry, I would like to express more detail.
I'm using bat in loginfo to run the script, and java program to record the log message.
In the loginfo file, like this:
DEFAULT e:\test\test.bat

And in the bat file like this:
java -jar e:\test\test.jar
in the java program, it listen the stdin to get the log message, but there is nothing to output.
If I change the bat file like this:
cmd 
java -jar e:\test\test.jar

the log message can be printed in the wincvs console, but the java program cannot still get this information, the only way for this is to export the log message to a local file and then let the java program to read that file.
So I just wonder is there a simple way of not using write and read file to get the log message?

Thanks a lot
Frank
>What you need to do is read STDIN and then decode that information to get
>the data you need. STDIN contains the log message, the list of committed
>files, the tag information etc. Just read it in a test program and dump to
>a log file and then have a look and you will see how to treat it.
>
>/Bo

= = = = = = = = = = = = = = = = = = = =
			

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
Àñ£¡
 
				 
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡yinhua
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hyin at cdtv.org.cn
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-06-10



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook