source: release-kits/lirk3/resources/gs3-release-maker/ant/docs/manual/api/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 10.5 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:23 NZST 2007 -->
6<TITLE>
7CompilerAdapterFactory (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="CompilerAdapterFactory (Apache Ant API)";
18}
19</SCRIPT>
20
21</HEAD>
22
23<BODY BGCOLOR="white" onload="windowTitle();">
24
25
26<!-- ========= START OF TOP NAVBAR ======= -->
27<A NAME="navbar_top"><!-- --></A>
28<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30<TR>
31<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32<A NAME="navbar_top_firstrow"><!-- --></A>
33<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42 </TR>
43</TABLE>
44</TD>
45<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46</EM>
47</TD>
48</TR>
49
50<TR>
51<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52&nbsp;PREV CLASS&nbsp;
53&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.html" title="class in org.apache.tools.ant.taskdefs.compilers"><B>NEXT CLASS</B></A></FONT></TD>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56&nbsp;<A HREF="CompilerAdapterFactory.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<SCRIPT type="text/javascript">
58 <!--
59 if(window==top) {
60 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
61 }
62 //-->
63</SCRIPT>
64<NOSCRIPT>
65 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
66</NOSCRIPT>
67
68</FONT></TD>
69</TR>
70<TR>
71<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75</TR>
76</TABLE>
77<A NAME="skip-navbar_top"></A>
78<!-- ========= END OF TOP NAVBAR ========= -->
79
80<HR>
81<!-- ======== START OF CLASS DATA ======== -->
82<H2>
83<FONT SIZE="-1">
84org.apache.tools.ant.taskdefs.compilers</FONT>
85<BR>
86Class CompilerAdapterFactory</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory</B>
90</PRE>
91<HR>
92<DL>
93<DT>public class <B>CompilerAdapterFactory</B><DT>extends java.lang.Object</DL>
94
95<P>
96Creates the necessary compiler adapter, given basic criteria.
97<P>
98
99<P>
100<DL>
101<DT><B>Since:</B></DT>
102 <DD>Ant 1.3</DD>
103</DL>
104<HR>
105
106<P>
107<!-- ======== NESTED CLASS SUMMARY ======== -->
108
109
110<!-- =========== FIELD SUMMARY =========== -->
111
112
113<!-- ======== CONSTRUCTOR SUMMARY ======== -->
114
115
116<!-- ========== METHOD SUMMARY =========== -->
117
118<A NAME="method_summary"><!-- --></A>
119<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121<TD COLSPAN=2><FONT SIZE="+2">
122<B>Method Summary</B></FONT></TD>
123</TR>
124<TR BGCOLOR="white" CLASS="TableRowColor">
125<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
126<CODE>static&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/compilers/CompilerAdapter.html" title="interface in org.apache.tools.ant.taskdefs.compilers">CompilerAdapter</A></CODE></FONT></TD>
127<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.html#getCompiler(java.lang.String, org.apache.tools.ant.Task)">getCompiler</A></B>(java.lang.String&nbsp;compilerType,
128 <A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A>&nbsp;task)</CODE>
129
130<BR>
131&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Based on the parameter passed in, this method creates the necessary
132 factory desired.</TD>
133</TR>
134</TABLE>
135&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
136<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
138<TD><B>Methods inherited from class java.lang.Object</B></TD>
139</TR>
140<TR BGCOLOR="white" CLASS="TableRowColor">
141<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
142</TR>
143</TABLE>
144&nbsp;
145<P>
146
147<!-- ============ FIELD DETAIL =========== -->
148
149
150<!-- ========= CONSTRUCTOR DETAIL ======== -->
151
152
153<!-- ============ METHOD DETAIL ========== -->
154
155<A NAME="method_detail"><!-- --></A>
156<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
157<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
158<TD COLSPAN=1><FONT SIZE="+2">
159<B>Method Detail</B></FONT></TD>
160</TR>
161</TABLE>
162
163<A NAME="getCompiler(java.lang.String, org.apache.tools.ant.Task)"><!-- --></A><H3>
164getCompiler</H3>
165<PRE>
166public static <A HREF="../../../../../../org/apache/tools/ant/taskdefs/compilers/CompilerAdapter.html" title="interface in org.apache.tools.ant.taskdefs.compilers">CompilerAdapter</A> <B>getCompiler</B>(java.lang.String&nbsp;compilerType,
167 <A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A>&nbsp;task)
168 throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
169<DL>
170<DD>Based on the parameter passed in, this method creates the necessary
171 factory desired.
172
173 The current mapping for compiler names are as follows:
174 <ul><li>jikes = jikes compiler
175 <li>classic, javac1.1, javac1.2 = the standard compiler from JDK
176 1.1/1.2
177 <li>modern, javac1.3, javac1.4, javac1.5 = the compiler of JDK 1.3+
178 <li>jvc, microsoft = the command line compiler from Microsoft's SDK
179 for Java / Visual J++
180 <li>kjc = the kopi compiler</li>
181 <li>gcj = the gcj compiler from gcc</li>
182 <li>sj, symantec = the Symantec Java compiler</li>
183 <li><i>a fully qualified classname</i> = the name of a compiler
184 adapter
185 </ul>
186<P>
187<DD><DL>
188<DT><B>Parameters:</B><DD><CODE>compilerType</CODE> - either the name of the desired compiler, or the
189 full classname of the compiler's adapter.<DD><CODE>task</CODE> - a task to log through.
190<DT><B>Throws:</B>
191<DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if the compiler type could not be resolved into
192 a compiler adapter.</DL>
193</DD>
194</DL>
195<!-- ========= END OF CLASS DATA ========= -->
196<HR>
197
198
199<!-- ======= START OF BOTTOM NAVBAR ====== -->
200<A NAME="navbar_bottom"><!-- --></A>
201<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
202<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
203<TR>
204<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
205<A NAME="navbar_bottom_firstrow"><!-- --></A>
206<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
207 <TR ALIGN="center" VALIGN="top">
208 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
209 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
210 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
211 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
212 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
213 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
214 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
215 </TR>
216</TABLE>
217</TD>
218<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
219</EM>
220</TD>
221</TR>
222
223<TR>
224<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
225&nbsp;PREV CLASS&nbsp;
226&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.html" title="class in org.apache.tools.ant.taskdefs.compilers"><B>NEXT CLASS</B></A></FONT></TD>
227<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
228 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
229&nbsp;<A HREF="CompilerAdapterFactory.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
230&nbsp;<SCRIPT type="text/javascript">
231 <!--
232 if(window==top) {
233 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
234 }
235 //-->
236</SCRIPT>
237<NOSCRIPT>
238 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
239</NOSCRIPT>
240
241</FONT></TD>
242</TR>
243<TR>
244<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
245 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
246<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
247DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
248</TR>
249</TABLE>
250<A NAME="skip-navbar_bottom"></A>
251<!-- ======== END OF BOTTOM NAVBAR ======= -->
252
253<HR>
254Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
255</BODY>
256</HTML>
Note: See TracBrowser for help on using the repository browser.