You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Martin Gainty <mg...@gmail.com> on 2013/03/17 23:57:40 UTC
com.sun.tools.javac.*
Hi Russ
\Users\mgainty\.m2\repository\org\apache\maven\maven-compiler-plugin\2.0.2\org\apache\maven\plugin>ls
-al *.class
-rw-r--r-- 1 mgainty Administ 11069 Feb 13 2007
AbstractCompilerMojo.cla
ss
-rw-r--r-- 1 mgainty Administ 1755 Feb 13 2007
CompilationFailureExcept
ion.class
-rw-r--r-- 1 mgainty Administ 2643 Feb 13 2007 CompilerMojo.class
-rw-r--r-- 1 mgainty Administ 2772 Feb 13 2007
TestCompilerMojo.class
If I grep my maven folder i see one reference in JavacCompiler for
maven-2.0.7
\Maven>grep -S -l com.sun.tools.javac *.*
.\maven-2.0.7-src\bootstrap\bootstrap-mini\src\main\java\org\apache\maven\bootst
rap\compile\JavacCompiler.java
.\maven-2.0.7-src\bootstrap\bootstrap-mini\target\classes\org\apache\maven\boots
trap\compile\JavacCompiler.class
so it appears that com.sun.tools.javac that was referenced in maven-2.0.7
by bootstrap and bootstrap-mini has since been deprecated from maven 3.x
I am curious which documents states com.sun.tools.javac.* compiler would
be a reference to a maven 3.x compiler?
Thanks
Martin
Re: com.sun.tools.javac.*
Posted by Russell Gold <ru...@gold-family.us>.
Ah, excellent. I was not aware of that API, and at least some of the uses in question can be JDK 1.6-dependent
On Mar 20, 2013, at 1:07 PM, Thomas Broyer <t....@gmail.com> wrote:
> Use javax.tools.JavaCompiler then?
> http://docs.oracle.com/javase/7/docs/api/javax/tools/ToolProvider.html#getSystemJavaCompiler()
> Since JDK 1.6 (but as with com.sun.tools.javac, you need to run your
> program with a JDK, a JRE won't be enough)
>
> On Wed, Mar 20, 2013 at 6:03 PM, Russell Gold <ru...@gold-family.us> wrote:
>> It doesn't do what I need - which is to be able to have a compile program (not Maven itself) invoke the java compiler.
>>
>> On Mar 20, 2013, at 12:36 PM, Martin Gainty <mg...@hotmail.com> wrote:
>>
>>> then your ok implementing the new compiler org.apache.maven:maven-compiler-plugin:2.0.X (instead of com.sun.tools.javac.* )
>>>
>>> thanks,
>>> Martin Gainty
>>> ______________________________________________
>>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>>
>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>>>
>>>> From: russ@gold-family.us
>>>> Subject: Re: com.sun.tools.javac.*
>>>> Date: Wed, 20 Mar 2013 08:51:27 -0400
>>>> To: users@maven.apache.org; mgaintynt@gmail.com
>>>>
>>>> Hi Martin,
>>>>
>>>> I don't understand your question. I am not claiming any documentation says anything of the kind.
>>>>
>>>> Regards,
>>>> Russ
>>>>
>>>> On Mar 17, 2013, at 6:57 PM, Martin Gainty <mg...@gmail.com> wrote:
>>>>
>>>>> Hi Russ
>>>>>
>>>>> \Users\mgainty\.m2\repository\org\apache\maven\maven-compiler-plugin\2.0.2\org\apache\maven\plugin>ls
>>>>> -al *.class
>>>>>
>>>>> -rw-r--r-- 1 mgainty Administ 11069 Feb 13 2007
>>>>> AbstractCompilerMojo.cla
>>>>> ss
>>>>> -rw-r--r-- 1 mgainty Administ 1755 Feb 13 2007
>>>>> CompilationFailureExcept
>>>>> ion.class
>>>>> -rw-r--r-- 1 mgainty Administ 2643 Feb 13 2007 CompilerMojo.class
>>>>> -rw-r--r-- 1 mgainty Administ 2772 Feb 13 2007
>>>>> TestCompilerMojo.class
>>>>>
>>>>> If I grep my maven folder i see one reference in JavacCompiler for
>>>>> maven-2.0.7
>>>>>
>>>>> \Maven>grep -S -l com.sun.tools.javac *.*
>>>>>
>>>>> .\maven-2.0.7-src\bootstrap\bootstrap-mini\src\main\java\org\apache\maven\bootst
>>>>> rap\compile\JavacCompiler.java
>>>>> .\maven-2.0.7-src\bootstrap\bootstrap-mini\target\classes\org\apache\maven\boots
>>>>> trap\compile\JavacCompiler.class
>>>>>
>>>>> so it appears that com.sun.tools.javac that was referenced in maven-2.0.7
>>>>> by bootstrap and bootstrap-mini has since been deprecated from maven 3.x
>>>>> I am curious which documents states com.sun.tools.javac.* compiler would
>>>>> be a reference to a maven 3.x compiler?
>>>>>
>>>>> Thanks
>>>>> Martin
>>>>
>>>> -----------------
>>>> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
>>>> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>>>>
>>>>
>>>>
>>>>
>>>
>>
>> -----------------
>> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
>> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>>
>>
>>
>>
>
>
>
> --
> Thomas Broyer
> /tɔ.ma.bʁwa.je/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
Re: com.sun.tools.javac.*
Posted by Thomas Broyer <t....@gmail.com>.
Use javax.tools.JavaCompiler then?
http://docs.oracle.com/javase/7/docs/api/javax/tools/ToolProvider.html#getSystemJavaCompiler()
Since JDK 1.6 (but as with com.sun.tools.javac, you need to run your
program with a JDK, a JRE won't be enough)
On Wed, Mar 20, 2013 at 6:03 PM, Russell Gold <ru...@gold-family.us> wrote:
> It doesn't do what I need - which is to be able to have a compile program (not Maven itself) invoke the java compiler.
>
> On Mar 20, 2013, at 12:36 PM, Martin Gainty <mg...@hotmail.com> wrote:
>
>> then your ok implementing the new compiler org.apache.maven:maven-compiler-plugin:2.0.X (instead of com.sun.tools.javac.* )
>>
>> thanks,
>> Martin Gainty
>> ______________________________________________
>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>
>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>>
>>> From: russ@gold-family.us
>>> Subject: Re: com.sun.tools.javac.*
>>> Date: Wed, 20 Mar 2013 08:51:27 -0400
>>> To: users@maven.apache.org; mgaintynt@gmail.com
>>>
>>> Hi Martin,
>>>
>>> I don't understand your question. I am not claiming any documentation says anything of the kind.
>>>
>>> Regards,
>>> Russ
>>>
>>> On Mar 17, 2013, at 6:57 PM, Martin Gainty <mg...@gmail.com> wrote:
>>>
>>>> Hi Russ
>>>>
>>>> \Users\mgainty\.m2\repository\org\apache\maven\maven-compiler-plugin\2.0.2\org\apache\maven\plugin>ls
>>>> -al *.class
>>>>
>>>> -rw-r--r-- 1 mgainty Administ 11069 Feb 13 2007
>>>> AbstractCompilerMojo.cla
>>>> ss
>>>> -rw-r--r-- 1 mgainty Administ 1755 Feb 13 2007
>>>> CompilationFailureExcept
>>>> ion.class
>>>> -rw-r--r-- 1 mgainty Administ 2643 Feb 13 2007 CompilerMojo.class
>>>> -rw-r--r-- 1 mgainty Administ 2772 Feb 13 2007
>>>> TestCompilerMojo.class
>>>>
>>>> If I grep my maven folder i see one reference in JavacCompiler for
>>>> maven-2.0.7
>>>>
>>>> \Maven>grep -S -l com.sun.tools.javac *.*
>>>>
>>>> .\maven-2.0.7-src\bootstrap\bootstrap-mini\src\main\java\org\apache\maven\bootst
>>>> rap\compile\JavacCompiler.java
>>>> .\maven-2.0.7-src\bootstrap\bootstrap-mini\target\classes\org\apache\maven\boots
>>>> trap\compile\JavacCompiler.class
>>>>
>>>> so it appears that com.sun.tools.javac that was referenced in maven-2.0.7
>>>> by bootstrap and bootstrap-mini has since been deprecated from maven 3.x
>>>> I am curious which documents states com.sun.tools.javac.* compiler would
>>>> be a reference to a maven 3.x compiler?
>>>>
>>>> Thanks
>>>> Martin
>>>
>>> -----------------
>>> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
>>> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>>>
>>>
>>>
>>>
>>
>
> -----------------
> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>
>
>
>
--
Thomas Broyer
/tɔ.ma.bʁwa.je/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: com.sun.tools.javac.*
Posted by Russell Gold <ru...@gold-family.us>.
It doesn't do what I need - which is to be able to have a compile program (not Maven itself) invoke the java compiler.
On Mar 20, 2013, at 12:36 PM, Martin Gainty <mg...@hotmail.com> wrote:
> then your ok implementing the new compiler org.apache.maven:maven-compiler-plugin:2.0.X (instead of com.sun.tools.javac.* )
>
> thanks,
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>> From: russ@gold-family.us
>> Subject: Re: com.sun.tools.javac.*
>> Date: Wed, 20 Mar 2013 08:51:27 -0400
>> To: users@maven.apache.org; mgaintynt@gmail.com
>>
>> Hi Martin,
>>
>> I don't understand your question. I am not claiming any documentation says anything of the kind.
>>
>> Regards,
>> Russ
>>
>> On Mar 17, 2013, at 6:57 PM, Martin Gainty <mg...@gmail.com> wrote:
>>
>>> Hi Russ
>>>
>>> \Users\mgainty\.m2\repository\org\apache\maven\maven-compiler-plugin\2.0.2\org\apache\maven\plugin>ls
>>> -al *.class
>>>
>>> -rw-r--r-- 1 mgainty Administ 11069 Feb 13 2007
>>> AbstractCompilerMojo.cla
>>> ss
>>> -rw-r--r-- 1 mgainty Administ 1755 Feb 13 2007
>>> CompilationFailureExcept
>>> ion.class
>>> -rw-r--r-- 1 mgainty Administ 2643 Feb 13 2007 CompilerMojo.class
>>> -rw-r--r-- 1 mgainty Administ 2772 Feb 13 2007
>>> TestCompilerMojo.class
>>>
>>> If I grep my maven folder i see one reference in JavacCompiler for
>>> maven-2.0.7
>>>
>>> \Maven>grep -S -l com.sun.tools.javac *.*
>>>
>>> .\maven-2.0.7-src\bootstrap\bootstrap-mini\src\main\java\org\apache\maven\bootst
>>> rap\compile\JavacCompiler.java
>>> .\maven-2.0.7-src\bootstrap\bootstrap-mini\target\classes\org\apache\maven\boots
>>> trap\compile\JavacCompiler.class
>>>
>>> so it appears that com.sun.tools.javac that was referenced in maven-2.0.7
>>> by bootstrap and bootstrap-mini has since been deprecated from maven 3.x
>>> I am curious which documents states com.sun.tools.javac.* compiler would
>>> be a reference to a maven 3.x compiler?
>>>
>>> Thanks
>>> Martin
>>
>> -----------------
>> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
>> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>>
>>
>>
>>
>
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
RE: com.sun.tools.javac.*
Posted by Martin Gainty <mg...@hotmail.com>.
then your ok implementing the new compiler org.apache.maven:maven-compiler-plugin:2.0.X (instead of com.sun.tools.javac.* )
thanks,
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> From: russ@gold-family.us
> Subject: Re: com.sun.tools.javac.*
> Date: Wed, 20 Mar 2013 08:51:27 -0400
> To: users@maven.apache.org; mgaintynt@gmail.com
>
> Hi Martin,
>
> I don't understand your question. I am not claiming any documentation says anything of the kind.
>
> Regards,
> Russ
>
> On Mar 17, 2013, at 6:57 PM, Martin Gainty <mg...@gmail.com> wrote:
>
> > Hi Russ
> >
> > \Users\mgainty\.m2\repository\org\apache\maven\maven-compiler-plugin\2.0.2\org\apache\maven\plugin>ls
> > -al *.class
> >
> > -rw-r--r-- 1 mgainty Administ 11069 Feb 13 2007
> > AbstractCompilerMojo.cla
> > ss
> > -rw-r--r-- 1 mgainty Administ 1755 Feb 13 2007
> > CompilationFailureExcept
> > ion.class
> > -rw-r--r-- 1 mgainty Administ 2643 Feb 13 2007 CompilerMojo.class
> > -rw-r--r-- 1 mgainty Administ 2772 Feb 13 2007
> > TestCompilerMojo.class
> >
> > If I grep my maven folder i see one reference in JavacCompiler for
> > maven-2.0.7
> >
> > \Maven>grep -S -l com.sun.tools.javac *.*
> >
> > .\maven-2.0.7-src\bootstrap\bootstrap-mini\src\main\java\org\apache\maven\bootst
> > rap\compile\JavacCompiler.java
> > .\maven-2.0.7-src\bootstrap\bootstrap-mini\target\classes\org\apache\maven\boots
> > trap\compile\JavacCompiler.class
> >
> > so it appears that com.sun.tools.javac that was referenced in maven-2.0.7
> > by bootstrap and bootstrap-mini has since been deprecated from maven 3.x
> > I am curious which documents states com.sun.tools.javac.* compiler would
> > be a reference to a maven 3.x compiler?
> >
> > Thanks
> > Martin
>
> -----------------
> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>
>
>
>
Re: com.sun.tools.javac.*
Posted by Russell Gold <ru...@gold-family.us>.
Hi Martin,
I don't understand your question. I am not claiming any documentation says anything of the kind.
Regards,
Russ
On Mar 17, 2013, at 6:57 PM, Martin Gainty <mg...@gmail.com> wrote:
> Hi Russ
>
> \Users\mgainty\.m2\repository\org\apache\maven\maven-compiler-plugin\2.0.2\org\apache\maven\plugin>ls
> -al *.class
>
> -rw-r--r-- 1 mgainty Administ 11069 Feb 13 2007
> AbstractCompilerMojo.cla
> ss
> -rw-r--r-- 1 mgainty Administ 1755 Feb 13 2007
> CompilationFailureExcept
> ion.class
> -rw-r--r-- 1 mgainty Administ 2643 Feb 13 2007 CompilerMojo.class
> -rw-r--r-- 1 mgainty Administ 2772 Feb 13 2007
> TestCompilerMojo.class
>
> If I grep my maven folder i see one reference in JavacCompiler for
> maven-2.0.7
>
> \Maven>grep -S -l com.sun.tools.javac *.*
>
> .\maven-2.0.7-src\bootstrap\bootstrap-mini\src\main\java\org\apache\maven\bootst
> rap\compile\JavacCompiler.java
> .\maven-2.0.7-src\bootstrap\bootstrap-mini\target\classes\org\apache\maven\boots
> trap\compile\JavacCompiler.class
>
> so it appears that com.sun.tools.javac that was referenced in maven-2.0.7
> by bootstrap and bootstrap-mini has since been deprecated from maven 3.x
> I am curious which documents states com.sun.tools.javac.* compiler would
> be a reference to a maven 3.x compiler?
>
> Thanks
> Martin
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!