You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2007/01/03 13:23:32 UTC

svn commit: r492114 - in /harmony/enhanced/classlib/trunk/modules/tools/src/main/java/com: ./ sun/ sun/tools/ sun/tools/javac/ sun/tools/javac/Main.java

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



Re: [tools] javac adapter

Posted by Tim Ellison <t....@gmail.com>.
Geir Magnusson Jr. wrote:
> On Jan 3, 2007, at 9:56 AM, Tim Ellison wrote:
>> What's the difference between classlib/tools and jdktools? i.e. why was
>> it copied and not moved?  I've been putting fixes into the
>> classlib\tools module so if, as I suspect, there is no need for two then
>> it will require some merging across.
> 
> Oh!  I thought you meant enhanced/tools/trunk
> 
> I copied to get it squared away before shutting down modules/tools

Ok -- I've been working in modules/tools, but I'm happy to move it/see
it moved to the jdktools directory.

Regards,
Tim

Re: [tools] javac adapter

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
On Jan 3, 2007, at 9:56 AM, Tim Ellison wrote:

> Geir Magnusson Jr. wrote:
>> Muahaha.  Nice.
>>
>> Why in tools though?  seems like something useful for JDK tools, eh?
>
> What's the difference between classlib/tools and jdktools? i.e. why  
> was
> it copied and not moved?  I've been putting fixes into the
> classlib\tools module so if, as I suspect, there is no need for two  
> then
> it will require some merging across.

Oh!  I thought you meant enhanced/tools/trunk

I copied to get it squared away before shutting down modules/tools

>
>> And I can't resist :
>>
>> Dear Tm,
>>
>> Thanks for using "hy", since you know how much it bugs me.
>>
>> Signed, Gr
>>
>> :)
>
> dEr Gr, SorE 2 hEr dat U h8 it. U nEd 2 git dwn w d kds man.  Tm.

The rule is drop all letters in between the first and last.   
Therefore, I think you meant :

dr Gr, Sy to hr th u ht it.  U nd to gt dn wh te ks mn.  Tm

geir

>
> :-)


Re: [tools] javac adapter

Posted by Tim Ellison <t....@gmail.com>.
Geir Magnusson Jr. wrote:
> Muahaha.  Nice.
> 
> Why in tools though?  seems like something useful for JDK tools, eh?

What's the difference between classlib/tools and jdktools? i.e. why was
it copied and not moved?  I've been putting fixes into the
classlib\tools module so if, as I suspect, there is no need for two then
it will require some merging across.

> And I can't resist :
> 
> Dear Tm,
> 
> Thanks for using "hy", since you know how much it bugs me.
> 
> Signed, Gr
> 
> :)

dEr Gr, SorE 2 hEr dat U h8 it. U nEd 2 git dwn w d kds man.  Tm.

:-)

Re: [tools] javac adapter

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
Muahaha.  Nice.

Why in tools though?  seems like something useful for JDK tools, eh?

And I can't resist :

Dear Tm,

Thanks for using "hy", since you know how much it bugs me.

Signed, Gr

:)

geir


On Jan 3, 2007, at 7:44 AM, Tim Ellison wrote:

> 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
>>
>>
>>


[tools] javac adapter

Posted by Tim Ellison <t....@gmail.com>.
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
> 
> 
>