[kaffe] [gump] recreating jikes hang

Davanum Srinivas dims at yahoo.com
Tue Jan 4 09:13:08 PST 2005


Please get xml-xerces (instructions http://xml.apache.org/xerces-j/). Attached is my jikes2.txt
and RunCmd.java

The following command hangs:
[java RunCmd "jikes -d /home/gump/workspaces2/kaffe/workspace/xml-xerces/java/build/classes
@/tmp/jikes2.txt"]

Thanks,
dims

--- Davanum Srinivas <dims at yahoo.com> wrote:

> Step #1: compile RunCmd.java
> Step #2: generate all.files with files from gjdoc (see attached)
> Step #3: Run [java RunCmd "jikes -help"] to check if RunCmd works.
> Step #4: Run [java RunCmd "jikes -d /home/dims/kaffe/libraries/javalib/lib @all.files"] to
> recreate the problem.
> 
> If u run [jikes -d /home/dims/kaffe/libraries/javalib/lib @all.files] it will not hang.
> 
> thanks,
> dims
> 
> 
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Helps protect you from nasty viruses. 
> http://promotions.yahoo.com/new_mail> 
> import java.io.BufferedReader;
> import java.io.InputStreamReader;
> 
> /**
>  * Created by IntelliJ IDEA.
>  * User: srida01
>  * Date: Jan 4, 2005
>  * Time: 10:26:37 AM
>  * To change this template use File | Settings | File Templates.
>  */
> public class RunCmd {
>     public static void main(String[] args) throws Exception {
>         Runtime rt = Runtime.getRuntime();
>         try {
>             String line;
>             Process p = rt.exec(args[0]);
>             BufferedReader in =
>                     new BufferedReader(
>                             new InputStreamReader(p.getInputStream()));
>             BufferedReader err =
>                     new BufferedReader(
>                             new InputStreamReader(p.getErrorStream()));
>             p.waitFor();
>             line = in.readLine();
>             while (line != null) {
>                 System.out.println(line);
>                 line = in.readLine();
>             }
>             line = err.readLine();
>             while (line != null) {
>                 System.out.println(line);
>                 line = err.readLine();
>             }
>         } catch (Exception e) {
>             e.printStackTrace();
>         }
>     }
> }
> 

> ATTACHMENT part 3 application/octet-stream name=all.files
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> 

=====
Davanum Srinivas - http://webservices.apache.org/~dims/


		
__________________________________ 
Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more. 
http://celebrity.mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RunCmd.java
Type: text/java
Size: 1824 bytes
Desc: RunCmd.java
Url : http://kaffe.org/pipermail/kaffe/attachments/20050104/9d3c2dcb/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jikes2.txt
Type: text/x-patch
Size: 66125 bytes
Desc: jikes2.txt
Url : http://kaffe.org/pipermail/kaffe/attachments/20050104/9d3c2dcb/attachment-0005.bin 


More information about the kaffe mailing list