ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KapilSingh Pawar <KapilSin...@PLANETASIA.COM>
Subject RE: Jikes and ANT's optional ejbc task (was: external compiler ta sk)
Date Thu, 26 Jul 2001 07:01:37 GMT

What if I want to use jikes as well as classic with the same build script
and using ant1.3? We need to run the same build script with jikes as well as
classic compilers. We will use Jikes for compilation on NT and classic on
Solaris. For one I have been unable to find jikes compiler (compiled code)
for Solaris. Further our live server (solaris) has ant1.3 build and we
cannot go to ant1.4 on that server.

I got impressed with the speed of doing build using Jikes on NT and gave me
the thought of using for compiling Java classes as well as EJB classes but
got struck with EJB compilation :-(


-----Original Message-----
From: Conor MacNeill []
Sent: Thursday, July 26, 2001 12:09 PM
Subject: RE: Jikes and ANT's optional ejbc task (was: external compiler
ta sk)

Leave out the compiler attribute. You are passing build.compiler to the
compiler attribute which is set to classic but weblogic's ejbc doesn't
understand that.


if you want standard compiler - no compiler attribute
if you want jikes - set compielr attribute to "jikes", rather than

Grab a 1.4 nightly build, where this is largely automated according to the
setting of the build.compiler property.


> -----Original Message-----
> From: KapilSingh Pawar [mailto:KapilSinghP@PLANETASIA.COM]
> Sent: Thursday, 26 July 2001 4:35 PM
> To: ''
> Subject: RE: Jikes and ANT's optional ejbc task (was: external compiler
> ta sk)
> Hi
> I used the mechanism explained below to compile the EJBs with
> Jikes. However
> I encounter a problem if I compile it with the classic javac compiler. The
> exception that gets thrown is listed below:
>      [ejbc] CreateProcess: classic -classpath
> d:\jdk1.2.2\jre\lib\rt.jar;{goes on to list the entire classpath}
>      [ejbc]     at java.lang.Win32Process.create(Native Method)
>      [ejbc]     at java.lang.Win32Process.<init>(
>      [ejbc]     at java.lang.Runtime.execInternal(Native Method)
>      [ejbc]     at java.lang.Runtime.exec(
>      [ejbc]     at java.lang.Runtime.exec(
>      [ejbc]     at
> weblogic.utils.Executable.exec(, Compiled
> Code)
>      [ejbc]     at weblogic.utils.Executable.exec(
>      [ejbc]     at
> weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerI
> nvoker.jav
> a, Compiled Code)
>      [ejbc]     at
> weblogic.utils.compiler.CompilerInvoker.compile(
>      [ejbc]     at
> weblogic.utils.compiler.CompilerInvoker.compile(
>      [ejbc]     at
> weblogic.ejb.ejbc.EJBCompiler.compileEJB(, Compiled Code)
>      [ejbc]     at weblogic.ejbc.runBody(, Compiled Code)
>      [ejbc]     at
>      [ejbc]     at weblogic.ejbc.main(
>      [ejbc] Exec failed .. exiting
>      [ejbc] Java Result: 1
> What is the way out in this situation?
> Rgds
> Kapil
> -----Original Message-----
> From: Niels Verdonk []
> Sent: Wednesday, July 25, 2001 1:14 PM
> To: ''
> Subject: RE: Jikes and ANT's optional ejbc task (was: external compiler
> ta sk)
> Hi,
> Using jikes we managed to bring our full buildtime down from 75mins to
> 9mins!!!!
> After that we started to use the depend task to do an incremental build
> which
> sped up development even more:
> > I have a question related to this: we're already using jikes
> > to do the bulk
> > of our Java compilations in ANT builds, but now we want to make ejbc,
> > Weblogic's EJB compiler, use jikes as well...
> <ejbjar srcdir="build" descriptordir="${src}" destdir="${build.dest}"
> flatdestdir="true">
> 	<weblogic args="-nowarn" compiler="${build.compiler}"
> destdir="${build.dest}" classpath="${classpath.ejbc}"/>
> 	<include name="**/*-ejb-jar.xml"/>
> 	<exclude name="**/*weblogic*.xml"/>
> </ejbjar>
> Go for it,
> Niels

View raw message