Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 38505 invoked from network); 8 Jun 2006 11:10:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2006 11:10:50 -0000 Received: (qmail 65425 invoked by uid 500); 8 Jun 2006 11:10:38 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 65179 invoked by uid 500); 8 Jun 2006 11:10:37 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 65035 invoked by uid 99); 8 Jun 2006 11:10:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2006 04:10:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mikael.petterson@ericsson.com designates 193.180.251.60 as permitted sender) Received: from [193.180.251.60] (HELO mailgw3.ericsson.se) (193.180.251.60) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2006 04:10:34 -0700 Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.120]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id A92734F0049; Thu, 8 Jun 2006 13:10:12 +0200 (CEST) Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Jun 2006 13:10:12 +0200 Received: from esealmw104.eemea.ericsson.se ([153.88.200.67]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Jun 2006 13:10:12 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Print exact version of jvm (java -version) Date: Thu, 8 Jun 2006 13:10:11 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Print exact version of jvm (java -version) Thread-Index: AcaK6v8jkyx4HT7rQWmA3ToI6D4w9gAASqEA From: "Mikael Petterson \(KI/EAB\)" To: "Ant Users List" , X-OriginalArrivalTime: 08 Jun 2006 11:10:12.0303 (UTC) FILETIME=[1C943DF0:01C68AEC] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I guess javac -version is specific to jdk 1.5 since jdk 1.4.1 gives the following out put For javac -version: javac: invalid flag: -version Usage: javac where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath Specify where to find user class files -sourcepath Specify where to find input source files -bootclasspath Override location of bootstrap class files -extdirs Override location of installed extensions -d Specify where to place generated class files -encoding Specify character encoding used by source files -source Provide source compatibility with specified release -target Generate class files for specific VM version -help Print a synopsis of standard options Cheers, //mikael -----Original Message----- From: Scot P. Floess [mailto:floess@mindspring.com]=20 Sent: den 8 juni 2006 13:02 To: Ant Users List Subject: Re: Print exact version of jvm (java -version) For versions of JDK prior to 1.5... I just executed javac -version using JDK 1.5... Mikael Petterson (KI/EAB) wrote: > By the way there is no javac -version :-) but java -version. > > Cheers, > > //mikael > > -----Original Message----- > From: Mikael Petterson (KI/EAB) [mailto:mikael.petterson@ericsson.com] > Sent: den 8 juni 2006 10:02 > To: Ant Users List > Subject: RE: Print exact version of jvm (java -version) > > I wonder if there is an attribute to the javac task. > > Cheers, > > //mikael > > -----Original Message----- > From: Petar Tahchiev [mailto:paranoiabla@gmail.com] > Sent: den 8 juni 2006 10:00 > To: Ant Users List > Subject: Re: Print exact version of jvm (java -version) > > On 08/06/06, Mikael Petterson (KI/EAB) > wrote: > =20 >> How can I print what compiler is used ( exact version like 'java >> -version') when compiling? >> >> Cheers, >> >> //mikael >> >> >> BUILD.TARGET.VM=3D1.3 >> BUILD.BOOTCLASSPATH=3D/app/j2sdk/1.3.1_11/jre/lib/rt.jar >> >> >> > product src code"> >> > cache=3D"depcache" >> closure=3D"yes"/> >> >> > destdir=3D"${classes.dir}" >> srcdir=3D"${src.dir}" >> nowarn=3D"${NO.WARN}" >> target=3D"${BUILD.TARGET.VM}" >> = bootclasspath=3D"${BUILD.BOOTCLASSPATH}" >> extdirs=3D"" >> fork=3D"true" >> memoryMaximumSize=3D"768m"> >> >> >> >> >> >> >> >> >> >> >> >> =20 > > What's wron with "javac -version" ? > -- > Regards, Petar! > Karlovo, Bulgaria. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org > > > =20 -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org