Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 38520 invoked by uid 500); 24 Apr 2001 17:32:50 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 38445 invoked from network); 24 Apr 2001 17:32:41 -0000 Message-ID: <3D15BF68D0C6D41193A6009027E344BF239C7A@EXBOSTON> From: Pinar Bicioglu To: "'ant-user@jakarta.apache.org'" Subject: RE: Setting the environment varibles and specifying targets in th e tag ?? Date: Tue, 24 Apr 2001 13:27:08 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="windows-1252" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hre is what i have written in order to use a different compiler; But it gives me the following error. Buildfile: build.xml asi-compile: prepare: default: BUILD FAILED D:\sandbox\Engineering\dev\java\build.xml:224: D:/jdk1.2.2 can't be found. --- Nested Exception --- java.lang.ClassNotFoundException: D:/jdk1.2.2 at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.resolveClassN ame (CompilerAdapterFactory.java:136) at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C omp ilerAdapterFactory.java:122) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java, Compiled Code) at org.apache.tools.ant.Target.execute(Target.java, Compiled Code) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java, Compiled Code) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103) at org.apache.tools.ant.Target.execute(Target.java, Compiled Code) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code) at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code) at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code) at org.apache.tools.ant.Main.main(Main.java:149) Total time: 4 seconds Any idea why ?? Thanks a lot -----Original Message----- From: Pinar Bicioglu [mailto:p.bicioglu@CustomerDialogue.com] Sent: Tuesday, April 24, 2001 11:59 AM To: 'ant-user@jakarta.apache.org' Subject: RE: Setting the environment varibles and specifying targets in th e tag ?? yes i know that the the classic compiler is java1.2. But in order to use different compilers based on what Nica said, i need to know whether the compiler I am using is external or one of the javac-compilers ?? Thanks a lot -----Original Message----- From: babramo@uswest.com [mailto:babramo@uswest.com] Sent: Tuesday, April 24, 2001 12:00 PM To: ant-user@jakarta.apache.org Subject: RE: Setting the environment varibles and specifying targets in th e tag ?? depending on the java version. classic compiler is java 1.2 -----Original Message----- From: Pinar Bicioglu [mailto:p.bicioglu@CustomerDialogue.com] Sent: Tuesday, April 24, 2001 10:09 AM To: 'ant-user@jakarta.apache.org' Subject: RE: Setting the environment varibles and specifying targets in th e tag ?? Ok here is the silliest question. How do I know what kind of compiler I am using. ?? -----Original Message----- From: Nico Seessle [mailto:nico@apache.org] Sent: Monday, April 23, 2001 4:43 PM To: ant-user@jakarta.apache.org Subject: Re: Setting the environment varibles and specifying targets in th e tag ?? ----- Original Message ----- From: "Pinar Bicioglu" To: Sent: Monday, April 23, 2001 9:59 PM Subject: RE: Setting the environment varibles and specifying targets in th e tag ?? > > I added the part below to one of targets in my build.xml file > > > destdir="${build-dir}" > classpath="${classpath}" > deprecation="on" > bootclasspath="${Java118Classes}" > target="1.1" > optimize="off" > includes="${LifeSimulatorApplet-compile-list}" > /> > > > And it works fine. I also have " value="classic"/> " on the top of the file. I'd just like to know if it's > true that all of the targets I have, use jdk1.2.2 but LifeSimulatorApplet. > What do you think? is it correct ? > All of the targets in your build.xml will use the same compiler. You can use different compilers if you do *not* define the property "build.compiler" in your build.xml and call your compile-targets using antcall specifying on each call. But this will only work with external compilers. If you use one of the javac-compilers Ant will currently always use the compiler that was shipped with the JDK you use to run Ant. Nico