/[classpath]/classpath/gnu/java/rmi/rmic/Compile_gcj.java
ViewVC logotype

Diff of /classpath/gnu/java/rmi/rmic/Compile_gcj.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Tue Jan 22 22:26:57 2002 UTC revision 1.3 by mark, Fri Aug 29 21:32:31 2003 UTC
# Line 1  Line 1 
1  /*  /*
2    Copyright (c) 2001 Free Software Foundation, Inc.    Copyright (c) 2001, 2003 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 40  package gnu.java.rmi.rmic; Line 40  package gnu.java.rmi.rmic;
40  /** Subclass of Compiler that can be used to invoke gcj.  */  /** Subclass of Compiler that can be used to invoke gcj.  */
41  public class Compile_gcj extends CompilerProcess  public class Compile_gcj extends CompilerProcess
42  {  {
43    public String[] computeArguments (String filename)    private static final String [] COMPILER_ARGS =
44    {    {
45      int len = 3 + (dest == null ? 0 : 2);      "gcj",
46      String[] result = new String[len];      "-C"
47      int i = 0;    };
   
     result[i++] = "gcj";  
     result[i++] = "-C";  
     if (dest != null)  
       {  
         result[i++] = "-d";  
         result[i++] = dest;  
       }  
     result[i++] = filename;  
48    
49      return result;    public String[] computeArguments (String filename)
50      {
51        return computeTypicalArguments(COMPILER_ARGS,
52                                       getDestination(),
53                                       filename);
54    }    }
55  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26