KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > tools > OPP > compiler > InternalJavaCompiler


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: $
8
package org.ozoneDB.tools.OPP.compiler;
9
10 import com.sun.tools.javac.Main;
11
12 import java.util.Collection JavaDoc;
13
14 public class InternalJavaCompiler extends AbstractJavaCompiler {
15     public synchronized void compile(Collection JavaDoc classes) throws CompilerException {
16         String JavaDoc arguments[] = getArguments(classes);
17         if (Main.compile(arguments) != 0) {
18             throw new CompilerException("Unable to compile class(es)!", arguments);
19         }
20     }
21 }
22
Popular Tags