You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Rmic.java 23 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. /*
  2. * The Apache Software License, Version 1.1
  3. *
  4. * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
  5. * reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions
  9. * are met:
  10. *
  11. * 1. Redistributions of source code must retain the above copyright
  12. * notice, this list of conditions and the following disclaimer.
  13. *
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in
  16. * the documentation and/or other materials provided with the
  17. * distribution.
  18. *
  19. * 3. The end-user documentation included with the redistribution, if
  20. * any, must include the following acknowlegement:
  21. * "This product includes software developed by the
  22. * Apache Software Foundation (http://www.apache.org/)."
  23. * Alternately, this acknowlegement may appear in the software itself,
  24. * if and wherever such third-party acknowlegements normally appear.
  25. *
  26. * 4. The names "The Jakarta Project", "Ant", and "Apache Software
  27. * Foundation" must not be used to endorse or promote products derived
  28. * from this software without prior written permission. For written
  29. * permission, please contact apache@apache.org.
  30. *
  31. * 5. Products derived from this software may not be called "Apache"
  32. * nor may "Apache" appear in their names without prior written
  33. * permission of the Apache Group.
  34. *
  35. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  36. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  37. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  38. * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  39. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  40. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  41. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  42. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  43. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  44. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  45. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  46. * SUCH DAMAGE.
  47. * ====================================================================
  48. *
  49. * This software consists of voluntary contributions made by many
  50. * individuals on behalf of the Apache Software Foundation. For more
  51. * information on the Apache Software Foundation, please see
  52. * <http://www.apache.org/>.
  53. */
  54. package org.apache.tools.ant.taskdefs;
  55. import java.io.File;
  56. import java.io.IOException;
  57. import java.rmi.Remote;
  58. import java.util.Vector;
  59. import org.apache.tools.ant.AntClassLoader;
  60. import org.apache.tools.ant.BuildException;
  61. import org.apache.tools.ant.DirectoryScanner;
  62. import org.apache.tools.ant.Project;
  63. import org.apache.tools.ant.taskdefs.rmic.RmicAdapter;
  64. import org.apache.tools.ant.taskdefs.rmic.RmicAdapterFactory;
  65. import org.apache.tools.ant.types.FilterSetCollection;
  66. import org.apache.tools.ant.types.Path;
  67. import org.apache.tools.ant.types.Reference;
  68. import org.apache.tools.ant.util.FileNameMapper;
  69. import org.apache.tools.ant.util.FileUtils;
  70. import org.apache.tools.ant.util.SourceFileScanner;
  71. import org.apache.tools.ant.util.facade.FacadeTaskHelper;
  72. /**
  73. * Runs the rmic compiler against classes.</p>
  74. * <p>Rmic can be run on a single class (as specified with the classname
  75. * attribute) or a number of classes at once (all classes below base that
  76. * are neither _Stub nor _Skel classes). If you want to rmic a single
  77. * class and this class is a class nested into another class, you have to
  78. * specify the classname in the form <code>Outer$$Inner</code> instead of
  79. * <code>Outer.Inner</code>.</p>
  80. * <p>It is possible to refine the set of files that are being rmiced. This can be
  81. * done with the <i>includes</i>, <i>includesfile</i>, <i>excludes</i>,
  82. * <i>excludesfile</i> and <i>defaultexcludes</i>
  83. * attributes. With the <i>includes</i> or <i>includesfile</i> attribute you specify the files you want to
  84. * have included by using patterns. The <i>exclude</i> or <i>excludesfile</i> attribute is used to specify
  85. * the files you want to have excluded. This is also done with patterns. And
  86. * finally with the <i>defaultexcludes</i> attribute, you can specify whether you
  87. * want to use default exclusions or not. See the section on
  88. * directory based tasks</a>, on how the
  89. * inclusion/exclusion of files works, and how to write patterns.</p>
  90. * <p>This task forms an implicit FileSet and
  91. * supports all attributes of <code>&lt;fileset&gt;</code>
  92. * (<code>dir</code> becomes <code>base</code>) as well as the nested
  93. * <code>&lt;include&gt;</code>, <code>&lt;exclude&gt;</code> and
  94. * <code>&lt;patternset&gt;</code> elements.</p>
  95. * <p>It is possible to use different compilers. This can be selected
  96. * with the &quot;build.rmic&quot; property or the <code>compiler</code>
  97. * attribute. <a name="compilervalues">There are three choices</a>:</p>
  98. * <ul>
  99. * <li>sun (the standard compiler of the JDK)</li>
  100. * <li>kaffe (the standard compiler of
  101. * {@link <a href="http://www.kaffe.org">Kaffe</a>})</li>
  102. * <li>weblogic</li>
  103. * </ul>
  104. *
  105. * <p> The <a href="http://dione.zcu.cz/~toman40/miniRMI/">miniRMI</a>
  106. * project contains a compiler implementation for this task as well,
  107. * please consult miniRMI's documentation to learn how to use it.</p>
  108. *
  109. * @author duncan@x180.com
  110. * @author ludovic.claude@websitewatchers.co.uk
  111. * @author David Maclean <a href="mailto:david@cm.co.za">david@cm.co.za</a>
  112. * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a>
  113. * @author Takashi Okamoto tokamoto@rd.nttdata.co.jp
  114. *
  115. * @since Ant 1.1
  116. *
  117. * @ant.task category="java"
  118. */
  119. public class Rmic extends MatchingTask {
  120. private static final String FAIL_MSG
  121. = "Rmic failed; see the compiler error output for details.";
  122. private File baseDir;
  123. private String classname;
  124. private File sourceBase;
  125. private String stubVersion;
  126. private Path compileClasspath;
  127. private Path extdirs;
  128. private boolean verify = false;
  129. private boolean filtering = false;
  130. private boolean iiop = false;
  131. private String iiopopts;
  132. private boolean idl = false;
  133. private String idlopts;
  134. private boolean debug = false;
  135. private boolean includeAntRuntime = true;
  136. private boolean includeJavaRuntime = false;
  137. private Vector compileList = new Vector();
  138. private ClassLoader loader = null;
  139. private FileUtils fileUtils = FileUtils.newFileUtils();
  140. private FacadeTaskHelper facade;
  141. public Rmic() {
  142. try {
  143. Class.forName("kaffe.rmi.rmic.RMIC");
  144. facade = new FacadeTaskHelper("kaffe");
  145. } catch (ClassNotFoundException cnfe) {
  146. facade = new FacadeTaskHelper("sun");
  147. }
  148. }
  149. /**
  150. * Sets the location to store the compiled files; required
  151. */
  152. public void setBase(File base) {
  153. this.baseDir = base;
  154. }
  155. /**
  156. * Gets the base directory to output generated class.
  157. */
  158. public File getBase() {
  159. return this.baseDir;
  160. }
  161. /**
  162. * Sets the the class to run <code>rmic</code> against;
  163. * optional
  164. */
  165. public void setClassname(String classname) {
  166. this.classname = classname;
  167. }
  168. /**
  169. * Gets the class name to compile.
  170. */
  171. public String getClassname() {
  172. return classname;
  173. }
  174. /**
  175. * optional directory to save generated source files to.
  176. */
  177. public void setSourceBase(File sourceBase) {
  178. this.sourceBase = sourceBase;
  179. }
  180. /**
  181. * Gets the source dirs to find the source java files.
  182. */
  183. public File getSourceBase() {
  184. return sourceBase;
  185. }
  186. /**
  187. * Specify the JDK version for the generated stub code.
  188. * Specify &quot;1.1&quot; to pass the &quot;-v1.1&quot; option to rmic.</td>
  189. */
  190. public void setStubVersion(String stubVersion) {
  191. this.stubVersion = stubVersion;
  192. }
  193. public String getStubVersion() {
  194. return stubVersion;
  195. }
  196. /**
  197. * indicates whether token filtering should take place;
  198. * optional, default=false
  199. */
  200. public void setFiltering(boolean filter) {
  201. filtering = filter;
  202. }
  203. public boolean getFiltering() {
  204. return filtering;
  205. }
  206. /**
  207. * generate debug info (passes -g to rmic);
  208. * optional, defaults to false
  209. */
  210. public void setDebug(boolean debug) {
  211. this.debug = debug;
  212. }
  213. /**
  214. * Gets the debug flag.
  215. */
  216. public boolean getDebug() {
  217. return debug;
  218. }
  219. /**
  220. * Set the classpath to be used for this compilation.
  221. */
  222. public void setClasspath(Path classpath) {
  223. if (compileClasspath == null) {
  224. compileClasspath = classpath;
  225. } else {
  226. compileClasspath.append(classpath);
  227. }
  228. }
  229. /**
  230. * Creates a nested classpath element.
  231. */
  232. public Path createClasspath() {
  233. if (compileClasspath == null) {
  234. compileClasspath = new Path(getProject());
  235. }
  236. return compileClasspath.createPath();
  237. }
  238. /**
  239. * Adds to the classpath a reference to
  240. * a &lt;path&gt; defined elsewhere.
  241. */
  242. public void setClasspathRef(Reference r) {
  243. createClasspath().setRefid(r);
  244. }
  245. /**
  246. * Gets the classpath.
  247. */
  248. public Path getClasspath() {
  249. return compileClasspath;
  250. }
  251. /**
  252. * Flag to enable verification so that the classes
  253. * found by the directory match are
  254. * checked to see if they implement java.rmi.Remote.
  255. * Optional; his defaults to false if not set.
  256. */
  257. public void setVerify(boolean verify) {
  258. this.verify = verify;
  259. }
  260. /** Get verify flag. */
  261. public boolean getVerify() {
  262. return verify;
  263. }
  264. /**
  265. * Indicates that IIOP compatible stubs should
  266. * be generated; optional, defaults to false
  267. * if not set.
  268. */
  269. public void setIiop(boolean iiop) {
  270. this.iiop = iiop;
  271. }
  272. /**
  273. * Gets iiop flags.
  274. */
  275. public boolean getIiop() {
  276. return iiop;
  277. }
  278. /**
  279. * Set additional arguments for iiop
  280. */
  281. public void setIiopopts(String iiopopts) {
  282. this.iiopopts = iiopopts;
  283. }
  284. /**
  285. * Gets additional arguments for iiop.
  286. */
  287. public String getIiopopts() {
  288. return iiopopts;
  289. }
  290. /**
  291. * Indicates that IDL output should be
  292. * generated. This defaults to false
  293. * if not set.
  294. */
  295. public void setIdl(boolean idl) {
  296. this.idl = idl;
  297. }
  298. /**
  299. * Gets IDL flags.
  300. */
  301. public boolean getIdl() {
  302. return idl;
  303. }
  304. /**
  305. * pass additional arguments for idl compile
  306. */
  307. public void setIdlopts(String idlopts) {
  308. this.idlopts = idlopts;
  309. }
  310. /**
  311. * Gets additional arguments for idl compile.
  312. */
  313. public String getIdlopts() {
  314. return idlopts;
  315. }
  316. /**
  317. * Gets file list to compile.
  318. */
  319. public Vector getFileList() {
  320. return compileList;
  321. }
  322. /**
  323. * Sets whether or not to include ant's own classpath in this task's
  324. * classpath.
  325. * Optional; default is <code>true</code>.
  326. */
  327. public void setIncludeantruntime(boolean include) {
  328. includeAntRuntime = include;
  329. }
  330. /**
  331. * Gets whether or not the ant classpath is to be included in the
  332. * task's classpath.
  333. */
  334. public boolean getIncludeantruntime() {
  335. return includeAntRuntime;
  336. }
  337. /**
  338. * task's classpath.
  339. * Enables or disables including the default run-time
  340. * libraries from the executing VM; optional,
  341. * defaults to false
  342. */
  343. public void setIncludejavaruntime(boolean include) {
  344. includeJavaRuntime = include;
  345. }
  346. /**
  347. * Gets whether or not the java runtime should be included in this
  348. * task's classpath.
  349. */
  350. public boolean getIncludejavaruntime() {
  351. return includeJavaRuntime;
  352. }
  353. /**
  354. * Sets the extension directories that will be used during the
  355. * compilation; optional.
  356. */
  357. public void setExtdirs(Path extdirs) {
  358. if (this.extdirs == null) {
  359. this.extdirs = extdirs;
  360. } else {
  361. this.extdirs.append(extdirs);
  362. }
  363. }
  364. /**
  365. * Maybe creates a nested extdirs element.
  366. */
  367. public Path createExtdirs() {
  368. if (extdirs == null) {
  369. extdirs = new Path(getProject());
  370. }
  371. return extdirs.createPath();
  372. }
  373. /**
  374. * Gets the extension directories that will be used during the
  375. * compilation.
  376. */
  377. public Path getExtdirs() {
  378. return extdirs;
  379. }
  380. public Vector getCompileList() {
  381. return compileList;
  382. }
  383. /**
  384. * Sets the compiler implementation to use; optional,
  385. * defaults to the value of the <code>build.rmic</code> property,
  386. * or failing that, default compiler for the current VM
  387. * @since Ant 1.5
  388. */
  389. public void setCompiler(String compiler) {
  390. facade.setImplementation(compiler);
  391. }
  392. /**
  393. * get the name of the current compiler
  394. * @since Ant 1.5
  395. */
  396. public String getCompiler() {
  397. facade.setMagicValue(getProject().getProperty("build.rmic"));
  398. return facade.getImplementation();
  399. }
  400. /**
  401. * Adds an implementation specific command line argument.
  402. * @since Ant 1.5
  403. */
  404. public ImplementationSpecificArgument createCompilerArg() {
  405. ImplementationSpecificArgument arg =
  406. new ImplementationSpecificArgument();
  407. facade.addImplementationArgument(arg);
  408. return arg;
  409. }
  410. /**
  411. * Get the additional implementation specific command line arguments.
  412. * @return array of command line arguments, guaranteed to be non-null.
  413. * @since Ant 1.5
  414. */
  415. public String[] getCurrentCompilerArgs() {
  416. getCompiler();
  417. return facade.getArgs();
  418. }
  419. /**
  420. * execute by creating an instance of an implementation
  421. * class and getting to do the work
  422. */
  423. public void execute() throws BuildException {
  424. if (baseDir == null) {
  425. throw new BuildException("base attribute must be set!", getLocation());
  426. }
  427. if (!baseDir.exists()) {
  428. throw new BuildException("base does not exist!", getLocation());
  429. }
  430. if (verify) {
  431. log("Verify has been turned on.", Project.MSG_VERBOSE);
  432. }
  433. RmicAdapter adapter = RmicAdapterFactory.getRmic(getCompiler(), this);
  434. // now we need to populate the compiler adapter
  435. adapter.setRmic(this);
  436. Path classpath = adapter.getClasspath();
  437. loader = new AntClassLoader(getProject(), classpath);
  438. try {
  439. // scan base dirs to build up compile lists only if a
  440. // specific classname is not given
  441. if (classname == null) {
  442. DirectoryScanner ds = this.getDirectoryScanner(baseDir);
  443. String[] files = ds.getIncludedFiles();
  444. scanDir(baseDir, files, adapter.getMapper());
  445. } else {
  446. // otherwise perform a timestamp comparison - at least
  447. scanDir(baseDir,
  448. new String[] {classname.replace('.',
  449. File.separatorChar)
  450. + ".class"},
  451. adapter.getMapper());
  452. }
  453. int fileCount = compileList.size();
  454. if (fileCount > 0) {
  455. log("RMI Compiling " + fileCount +
  456. " class" + (fileCount > 1 ? "es" : "") + " to " + baseDir,
  457. Project.MSG_INFO);
  458. // finally, lets execute the compiler!!
  459. if (!adapter.execute()) {
  460. throw new BuildException(FAIL_MSG, getLocation());
  461. }
  462. }
  463. /*
  464. * Move the generated source file to the base directory. If
  465. * base directory and sourcebase are the same, the generated
  466. * sources are already in place.
  467. */
  468. if (null != sourceBase && !baseDir.equals(sourceBase)
  469. && fileCount > 0) {
  470. if (idl) {
  471. log("Cannot determine sourcefiles in idl mode, ",
  472. Project.MSG_WARN);
  473. log("sourcebase attribute will be ignored.",
  474. Project.MSG_WARN);
  475. } else {
  476. for (int j = 0; j < fileCount; j++) {
  477. moveGeneratedFile(baseDir, sourceBase,
  478. (String) compileList.elementAt(j),
  479. adapter);
  480. }
  481. }
  482. }
  483. } finally {
  484. compileList.removeAllElements();
  485. }
  486. }
  487. /**
  488. * Move the generated source file(s) to the base directory
  489. *
  490. * @throws org.apache.tools.ant.BuildException When error
  491. * copying/removing files.
  492. */
  493. private void moveGeneratedFile (File baseDir, File sourceBaseFile,
  494. String classname,
  495. RmicAdapter adapter)
  496. throws BuildException {
  497. String classFileName =
  498. classname.replace('.', File.separatorChar) + ".class";
  499. String[] generatedFiles =
  500. adapter.getMapper().mapFileName(classFileName);
  501. for (int i = 0; i < generatedFiles.length; i++) {
  502. final String generatedFile = generatedFiles[i];
  503. if (!generatedFile.endsWith(".class")) {
  504. // don't know how to handle that - a IDL file doesn't
  505. // have a corresponding Java source for example.
  506. continue;
  507. }
  508. final int pos = generatedFile.length() - ".class".length();
  509. String sourceFileName =
  510. generatedFile.substring(0, pos) + ".java";
  511. File oldFile = new File(baseDir, sourceFileName);
  512. if (!oldFile.exists()) {
  513. // no source file generated, nothing to move
  514. continue;
  515. }
  516. File newFile = new File(sourceBaseFile, sourceFileName);
  517. try {
  518. if (filtering) {
  519. fileUtils.copyFile(oldFile, newFile,
  520. new FilterSetCollection(getProject()
  521. .getGlobalFilterSet()));
  522. } else {
  523. fileUtils.copyFile(oldFile, newFile);
  524. }
  525. oldFile.delete();
  526. } catch (IOException ioe) {
  527. String msg = "Failed to copy " + oldFile + " to " +
  528. newFile + " due to " + ioe.getMessage();
  529. throw new BuildException(msg, ioe, getLocation());
  530. }
  531. }
  532. }
  533. /**
  534. * Scans the directory looking for class files to be compiled.
  535. * The result is returned in the class variable compileList.
  536. */
  537. protected void scanDir(File baseDir, String[] files,
  538. FileNameMapper mapper) {
  539. String[] newFiles = files;
  540. if (idl) {
  541. log("will leave uptodate test to rmic implementation in idl mode.",
  542. Project.MSG_VERBOSE);
  543. } else if (iiop
  544. && iiopopts != null && iiopopts.indexOf("-always") > -1) {
  545. log("no uptodate test as -always option has been specified",
  546. Project.MSG_VERBOSE);
  547. } else {
  548. SourceFileScanner sfs = new SourceFileScanner(this);
  549. newFiles = sfs.restrict(files, baseDir, baseDir, mapper);
  550. }
  551. for (int i = 0; i < newFiles.length; i++) {
  552. String classname = newFiles[i].replace(File.separatorChar, '.');
  553. classname = classname.substring(0, classname.lastIndexOf(".class"));
  554. compileList.addElement(classname);
  555. }
  556. }
  557. /**
  558. * Load named class and test whether it can be rmic'ed
  559. */
  560. public boolean isValidRmiRemote(String classname) {
  561. try {
  562. Class testClass = loader.loadClass(classname);
  563. // One cannot RMIC an interface for "classic" RMI (JRMP)
  564. if (testClass.isInterface() && !iiop && !idl) {
  565. return false;
  566. }
  567. return isValidRmiRemote(testClass);
  568. } catch (ClassNotFoundException e) {
  569. log("Unable to verify class " + classname +
  570. ". It could not be found.", Project.MSG_WARN);
  571. } catch (NoClassDefFoundError e) {
  572. log("Unable to verify class " + classname +
  573. ". It is not defined.", Project.MSG_WARN);
  574. } catch (Throwable t) {
  575. log("Unable to verify class " + classname +
  576. ". Loading caused Exception: " +
  577. t.getMessage(), Project.MSG_WARN);
  578. }
  579. // we only get here if an exception has been thrown
  580. return false;
  581. }
  582. /**
  583. * Returns the topmost interface that extends Remote for a given
  584. * class - if one exists.
  585. */
  586. public Class getRemoteInterface(Class testClass) {
  587. if (Remote.class.isAssignableFrom(testClass)) {
  588. Class [] interfaces = testClass.getInterfaces();
  589. if (interfaces != null) {
  590. for (int i = 0; i < interfaces.length; i++) {
  591. if (Remote.class.isAssignableFrom(interfaces[i])) {
  592. return interfaces[i];
  593. }
  594. }
  595. }
  596. }
  597. return null;
  598. }
  599. /**
  600. * Check to see if the class or (super)interfaces implement
  601. * java.rmi.Remote.
  602. */
  603. private boolean isValidRmiRemote (Class testClass) {
  604. return getRemoteInterface(testClass) != null;
  605. }
  606. /**
  607. * Classloader for the user-specified classpath.
  608. */
  609. public ClassLoader getLoader() {
  610. return loader;
  611. }
  612. /**
  613. * Adds an "compiler" attribute to Commandline$Attribute used to
  614. * filter command line attributes based on the current
  615. * implementation.
  616. */
  617. public class ImplementationSpecificArgument extends
  618. org.apache.tools.ant.util.facade.ImplementationSpecificArgument {
  619. /**
  620. * Only pass the specified argument if the
  621. * chosen compiler implementation matches the
  622. * value of this attribute. Legal values are
  623. * the same as those in the above list of
  624. * valid compilers.)
  625. */
  626. public void setCompiler(String impl) {
  627. super.setImplementation(impl);
  628. }
  629. }
  630. }