You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Hugh Brien <hb...@vmialum.com> on 2000/02/14 20:19:33 UTC

Changing Compiler

Is there a way to substitute the selected compiler in ANT.  I would like
to use the JIKES native compiler from IBM for development.  It is
significantly faster than any other compiler I have used thus far.  Any
help would be appreciated.  BTW, I have checked the web site, the src,
etc without any success.
r,
Hugh

Senior Commerce Engineer
http://www.infomech.com

Re: Changing Compiler

Posted by Angel Aray <aa...@aaray>.
On Tue, 15 Feb 2000, Fergus Gallagher wrote:
I alredy cheked this and jikes is on the PATH but i still get no
compiled classes.

> Ant is silent if Jikes can't be found.  Make sure the jikes executable
> is in your path.
> 
> Fergus
> 
> Angel Aray wrote:
> > 
> > I tried this and it a get the following
> >   <property name="build.compiler" value="jikes"/>
> > 
> > On Mon, 14 Feb Compiling 3 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 2 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Completed in 2 seconds
> > 
> > when  I go to the directory where compiled classes should be there is
> > nothing there.
> > 
> > Maybe someone out there can help me with this one.
> > 
> > Regards,
> >         Angel Aray.
> > 
> > 2000, Christopher Elkins wrote:
> > > Hugh Brien [hbrien@vmialum.com] wrote:
> > > > Is there a way to substitute the selected compiler in ANT.  I would like
> > > > to use the JIKES native compiler from IBM for development.  It is
> > > > significantly faster than any other compiler I have used thus far.  Any
> > > > help would be appreciated.  BTW, I have checked the web site, the src,
> > > > etc without any success.
> > > > r,
> > > > Hugh
> > > >
> > > > Senior Commerce Engineer
> > > > http://www.infomech.com
> > >
> > > I just added this to the FAQ:
> > > <http://locus.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/339>
> > >
> > > --
> > > Christopher Elkins
> 
> -- 
> Fergus Gallagher          Tel: +44 (20) 89 87 07 17
> Orbis                     Fax: +44 (20) 87 42 26 49
> The Swan Centre           email: Fergus.Gallagher@orbisuk.com
> Fishers Lane              Web: http://www.orbisuk.com
> London W4 1RX / UK

Re: Changing Compiler

Posted by Angel Aray <aa...@aaray>.

On Wed, 16 Feb 2000, Morten Jensen wrote:
> Angel Aray wrote:
> > 
> > I tried this and it a get the following
> >   <property name="build.compiler" value="jikes"/>
> > 
> > On Mon, 14 Feb Compiling 3 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 2 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Completed in 2 seconds
> > 
> > when  I go to the directory where compiled classes should be there is
> > nothing there.
> > 
> > Maybe someone out there can help me with this one.
> 
> It looks like you are using an older version of Ant, in which jikes
> compiling is not yet implemented.
> 
> -- 
> CAPUT              Morten Jensen           Phone +45 33 12 24 42
> Nygade 6           Developer               Fax   +45 33 91 24 42
> DK-1164 Kbh K      jensen@caput.com        http://www.caput.com


I checked out the ant source from the cvs and compiled it and
everything is working now but what puzzles me is that if I
download the ant binary snapshot from jakarta.apache.org it does not work.

Angel Aray. 

Re: Changing Compiler

Posted by Johann Romefort <ro...@club-internet.Fr>.
I have exactly the same problem. Is there any workaround?

Regards;

Johann

> > > I tried this and it a get the following
> > >   <property name="build.compiler" value="jikes"/>
> > >
> > > On Mon, 14 Feb Compiling 3 source files to
/home/aaray/Projects/tnet/build/tnet/classes
> > > Performing a Jikes COmpile
> > > Compiling 1 source files to
/home/aaray/Projects/tnet/build/tnet/classes
> > > Performing a Jikes COmpile
> > > Compiling 1 source files to
/home/aaray/Projects/tnet/build/tnet/classes
> > > Performing a Jikes COmpile
> > > Compiling 2 source files to
/home/aaray/Projects/tnet/build/tnet/classes
> > > Performing a Jikes COmpile
> > > Completed in 2 seconds
> > >
> > > when  I go to the directory where compiled classes should be there is
> > > nothing there.
> > >
> > I've noticed similar behavior, but only on NT. For projects that are
> > "self-contained" (i.e., have no dependencies other than standard JDK
jars),
> > specifying jikes as the compiler works correctly on both Linux and NT.
> > However, projects where I append to the classpath before calling Ant
> > (from a shell script/batch file) work only on Linux. Unfortunately, I
> > haven't had time to figure out what's happening on NT. Maybe your
problem
> > is related?
> >
> > > Maybe someone out there can help me with this one.
> > >
> > >
> > > Regards,
> > > Angel Aray.
> > >
> >
> > --
> > Christopher Elkins
>
> Maybe they are related ( I am adding some jars I need to the classpath). I
have
> tried with RedHat Linux 6.1 and Solaris 7 without luck.
>
> Angel Aray.
>


Re: Changing Compiler

Posted by Angel Aray <aa...@aaray>.
On Tue, 15 Feb 2000, you wrote:
> Angel Aray [aaray@aaray] wrote:
> > I tried this and it a get the following 
> >   <property name="build.compiler" value="jikes"/>   
> > 
> > On Mon, 14 Feb Compiling 3 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Compiling 2 source files to /home/aaray/Projects/tnet/build/tnet/classes
> > Performing a Jikes COmpile
> > Completed in 2 seconds       
> > 
> > when  I go to the directory where compiled classes should be there is
> > nothing there.
> > 
> I've noticed similar behavior, but only on NT. For projects that are 
> "self-contained" (i.e., have no dependencies other than standard JDK jars),
> specifying jikes as the compiler works correctly on both Linux and NT.
> However, projects where I append to the classpath before calling Ant
> (from a shell script/batch file) work only on Linux. Unfortunately, I
> haven't had time to figure out what's happening on NT. Maybe your problem
> is related?
> 
> > Maybe someone out there can help me with this one.
> > 
> > 
> > Regards,
> > 	Angel Aray.
> > 
> 
> -- 
> Christopher Elkins

Maybe they are related ( I am adding some jars I need to the classpath). I have
tried with RedHat Linux 6.1 and Solaris 7 without luck. 

Angel Aray.


Re: Changing Compiler

Posted by James Duncan Davidson <ja...@eng.sun.com>.
> Ant is silent if Jikes can't be found.  Make sure the jikes executable
> is in your path.

The Jikes part of the JavaC task should bark when Jikes doesn't exit
normally -- and throw an Exception so that the compile cycle stops.

.duncan


Re: Changing Compiler

Posted by Fergus Gallagher <Fe...@OrbisUK.com>.
Ant is silent if Jikes can't be found.  Make sure the jikes executable
is in your path.

Fergus

Angel Aray wrote:
> 
> I tried this and it a get the following
>   <property name="build.compiler" value="jikes"/>
> 
> On Mon, 14 Feb Compiling 3 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 2 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Completed in 2 seconds
> 
> when  I go to the directory where compiled classes should be there is
> nothing there.
> 
> Maybe someone out there can help me with this one.
> 
> Regards,
>         Angel Aray.
> 
> 2000, Christopher Elkins wrote:
> > Hugh Brien [hbrien@vmialum.com] wrote:
> > > Is there a way to substitute the selected compiler in ANT.  I would like
> > > to use the JIKES native compiler from IBM for development.  It is
> > > significantly faster than any other compiler I have used thus far.  Any
> > > help would be appreciated.  BTW, I have checked the web site, the src,
> > > etc without any success.
> > > r,
> > > Hugh
> > >
> > > Senior Commerce Engineer
> > > http://www.infomech.com
> >
> > I just added this to the FAQ:
> > <http://locus.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/339>
> >
> > --
> > Christopher Elkins

-- 
Fergus Gallagher          Tel: +44 (20) 89 87 07 17
Orbis                     Fax: +44 (20) 87 42 26 49
The Swan Centre           email: Fergus.Gallagher@orbisuk.com
Fishers Lane              Web: http://www.orbisuk.com
London W4 1RX / UK

Re: Changing Compiler

Posted by Christopher Elkins <ch...@esha.com>.
Angel Aray [aaray@aaray] wrote:
> I tried this and it a get the following 
>   <property name="build.compiler" value="jikes"/>   
> 
> On Mon, 14 Feb Compiling 3 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 2 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Completed in 2 seconds       
> 
> when  I go to the directory where compiled classes should be there is
> nothing there.
> 
I've noticed similar behavior, but only on NT. For projects that are 
"self-contained" (i.e., have no dependencies other than standard JDK jars),
specifying jikes as the compiler works correctly on both Linux and NT.
However, projects where I append to the classpath before calling Ant
(from a shell script/batch file) work only on Linux. Unfortunately, I
haven't had time to figure out what's happening on NT. Maybe your problem
is related?

> Maybe someone out there can help me with this one.
> 
> 
> Regards,
> 	Angel Aray.
> 

-- 
Christopher Elkins

Re: Changing Compiler

Posted by Morten Jensen <je...@caput.com>.
Angel Aray wrote:
> 
> I tried this and it a get the following
>   <property name="build.compiler" value="jikes"/>
> 
> On Mon, 14 Feb Compiling 3 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Compiling 2 source files to /home/aaray/Projects/tnet/build/tnet/classes
> Performing a Jikes COmpile
> Completed in 2 seconds
> 
> when  I go to the directory where compiled classes should be there is
> nothing there.
> 
> Maybe someone out there can help me with this one.

It looks like you are using an older version of Ant, in which jikes
compiling is not yet implemented.

-- 
CAPUT              Morten Jensen           Phone +45 33 12 24 42
Nygade 6           Developer               Fax   +45 33 91 24 42
DK-1164 Kbh K      jensen@caput.com        http://www.caput.com

Re: Changing Compiler

Posted by Angel Aray <aa...@aaray>.
I tried this and it a get the following 
  <property name="build.compiler" value="jikes"/>   

On Mon, 14 Feb Compiling 3 source files to /home/aaray/Projects/tnet/build/tnet/classes
Performing a Jikes COmpile
Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
Performing a Jikes COmpile
Compiling 1 source files to /home/aaray/Projects/tnet/build/tnet/classes
Performing a Jikes COmpile
Compiling 2 source files to /home/aaray/Projects/tnet/build/tnet/classes
Performing a Jikes COmpile
Completed in 2 seconds       

when  I go to the directory where compiled classes should be there is
nothing there.

Maybe someone out there can help me with this one.


Regards,
	Angel Aray.



2000, Christopher Elkins wrote:
> Hugh Brien [hbrien@vmialum.com] wrote:
> > Is there a way to substitute the selected compiler in ANT.  I would like
> > to use the JIKES native compiler from IBM for development.  It is
> > significantly faster than any other compiler I have used thus far.  Any
> > help would be appreciated.  BTW, I have checked the web site, the src,
> > etc without any success.
> > r,
> > Hugh
> > 
> > Senior Commerce Engineer
> > http://www.infomech.com
> 
> I just added this to the FAQ:
> <http://locus.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/339>
> 
> -- 
> Christopher Elkins

RE: Changing Compiler

Posted by Conor MacNeill <co...@ebinteractive.com.au>.

> -----Original Message-----
> From: Hugh Brien [mailto:hbrien@vmialum.com]
> Sent: Tuesday, 15 February 2000 8:28
> To: ant-dev@jakarta.apache.org
> Subject: Re: Changing Compiler
> 
> 
> Thanks a lot.  This will definitely increase my development times
> r,
> Hugh
> 

You must be on "time and materials" then :-)

Conor

Re: Changing Compiler

Posted by Hugh Brien <hb...@vmialum.com>.
Thanks a lot.  This will definitely increase my development times
r,
Hugh

Christopher Elkins wrote:
> 
> Hugh Brien [hbrien@vmialum.com] wrote:
> > Is there a way to substitute the selected compiler in ANT.  I would like
> > to use the JIKES native compiler from IBM for development.  It is
> > significantly faster than any other compiler I have used thus far.  Any
> > help would be appreciated.  BTW, I have checked the web site, the src,
> > etc without any success.
> > r,
> > Hugh
> >
> > Senior Commerce Engineer
> > http://www.infomech.com
> 
> I just added this to the FAQ:
> <http://locus.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/339>
> 
> --
> Christopher Elkins

-- 
Hugh P Brien
Senior Commerce Engineer
http://www.infomech.com

Re: Changing Compiler

Posted by Christopher Elkins <ch...@esha.com>.
Hugh Brien [hbrien@vmialum.com] wrote:
> Is there a way to substitute the selected compiler in ANT.  I would like
> to use the JIKES native compiler from IBM for development.  It is
> significantly faster than any other compiler I have used thus far.  Any
> help would be appreciated.  BTW, I have checked the web site, the src,
> etc without any success.
> r,
> Hugh
> 
> Senior Commerce Engineer
> http://www.infomech.com

I just added this to the FAQ:
<http://locus.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/339>

-- 
Christopher Elkins