harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject [tools] javac adapter
Date Wed, 03 Jan 2007 12:44:23 GMT
FYI I've just committed a trivial tools adapter to map from the commonly
used Sun compiler implementation type to the equivalent functionality in
Harmony libraries.

This allows tools such as Ant's <javac> task to run on a Harmony JDK
without explicitly defining an Ant compiler adapter.

Regards,
Tim

tellison@apache.org wrote:
> Author: tellison
> Date: Wed Jan  3 04:23:31 2007
> New Revision: 492114
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=492114
> Log:
> Mini compatibility adapter for tools.jar compiler entry point.
> 
> Added:
>     harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/
>     harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/
>     harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/
>     harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/javac/
>     harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/javac/Main.java
  (with props)
> 
> Added: harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/javac/Main.java
> URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/javac/Main.java?view=auto&rev=492114
> ==============================================================================
> --- harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/javac/Main.java
(added)
> +++ harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/javac/Main.java
Wed Jan  3 04:23:31 2007
> @@ -0,0 +1,30 @@
> +/* 
> + * Licensed to the Apache Software Foundation (ASF) under one or more
> + * contributor license agreements.  See the NOTICE file distributed with
> + * this work for additional information regarding copyright ownership.
> + * The ASF licenses this file to You under the Apache License, Version 2.0
> + * (the "License"); you may not use this file except in compliance with
> + * the License.  You may obtain a copy of the License at
> + * 
> + *     http://www.apache.org/licenses/LICENSE-2.0
> + * 
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + */
> +
> +package com.sun.tools.javac;
> +
> +public class Main {
> +
> +    public Main() {
> +        super();
> +    }
> +
> +    public int compile(String[] args) {
> +        org.apache.harmony.tools.javac.Main hyMain = new org.apache.harmony.tools.javac.Main();
> +        return hyMain.compile(args) ? 0 : 1;
> +    }
> +}
> 
> Propchange: harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com/sun/tools/javac/Main.java
> ------------------------------------------------------------------------------
>     svn:eol-style = native
> 
> 
> 

Mime
View raw message