OSDN Git Service

2006-04-05 Archit Shah <ashah@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / gnu / java / rmi / rmic / Compile_kjc.java
1 /*\r
2   Copyright (c) 2003 Free Software Foundation, Inc.\r
3 \r
4 This file is part of GNU Classpath.\r
5 \r
6 GNU Classpath is free software; you can redistribute it and/or modify\r
7 it under the terms of the GNU General Public License as published by\r
8 the Free Software Foundation; either version 2, or (at your option)\r
9 any later version.\r
10  \r
11 GNU Classpath is distributed in the hope that it will be useful, but\r
12 WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
14 General Public License for more details.\r
15 \r
16 You should have received a copy of the GNU General Public License\r
17 along with GNU Classpath; see the file COPYING.  If not, write to the\r
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
19 02110-1301 USA.\r
20 \r
21 Linking this library statically or dynamically with other modules is\r
22 making a combined work based on this library.  Thus, the terms and\r
23 conditions of the GNU General Public License cover the whole\r
24 combination.\r
25 \r
26 As a special exception, the copyright holders of this library give you\r
27 permission to link this library with independent modules to produce an\r
28 executable, regardless of the license terms of these independent\r
29 modules, and to copy and distribute the resulting executable under\r
30 terms of your choice, provided that you also meet, for each linked\r
31 independent module, the terms and conditions of the license of that\r
32 module.  An independent module is a module which is not derived from\r
33 or based on this library.  If you modify this library, you may extend\r
34 this exception to your version of the library, but you are not\r
35 obligated to do so.  If you do not wish to do so, delete this\r
36 exception statement from your version. */\r
37 \r
38 package gnu.java.rmi.rmic;\r
39 \r
40 /** Subclass of Compiler that can be used to invoke kjc.  */\r
41 public class Compile_kjc extends CompilerProcess\r
42 {\r
43   /** Compiler arguments to invoke kjc */\r
44   private static final String [] COMPILER_ARGS = \r
45   {\r
46     "kjc"\r
47   };\r
48 \r
49   /** Compute the command line for the process.  */\r
50   public String[] computeArguments (String filename)\r
51   {\r
52     return computeTypicalArguments(COMPILER_ARGS,\r
53                                    getClasspath(),\r
54                                    getDestination(),\r
55                                    filename);\r
56   }\r
57 }\r