RE: Checking in-use compiler?

2006-04-18 Thread Gwyn


Roye, Suhneel BGI SF wrote:
> 
> Take a look at this link:
> http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 
> 
> You have to explicitly specify that you want to compile with Java 1.5
> 

Hmm, so it appears... Thanks!

/Gwyn
--
View this message in context: 
http://www.nabble.com/Checking-in-use-compiler--t1469398.html#a3974270
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Checking in-use compiler?

2006-04-18 Thread Roye, Suhneel BGI SF
Take a look at this link:
http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 

You have to explicitly specify that you want to compile with Java 1.5

-Original Message-
From: Gwyn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 10:06 AM
To: users@maven.apache.org
Subject: Checking in-use compiler?


Hi,
  I'm running Maven2 on WinXP, with a JDK 1.5 system, but when I try &
build some classes that use some 1.5 features, specifically
MessageFormat.format(String, Object... ), then I get a "cannot find
symbol"
error on the compile. (The var-args is new in 1.5)

Compiling via Ant or IntelliJ using the same (as far as I know) JDK give
clean compiles.

  mvn -X doesn't give anything of any obvious help with regards to the
internal compiler version in use, just reporting "javac", but echoing
the JDK that the batch job uses confirms it's the expected one
(1.5.0_06).

 M2 doesn't have a bundled 1.4 javac does it?  Any suggestions or
thoughts?

  The only 'odd' think about my pom.xml is that I call the xdoclet
plugin to run ejbdoclet, but I don't know if that's involved...

/Gwyn
--
View this message in context:
http://www.nabble.com/Checking-in-use-compiler--t1469398.html#a3972335
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 
 
This message and any attachments are confidential, proprietary, and may be 
privileged.  If this message was misdirected, Barclays Global Investors (BGI) 
does not waive any confidentiality or privilege.  If you are not the intended 
recipient, please notify us immediately and destroy the message without 
disclosing its contents to anyone.  Any distribution, use or copying of this 
e-mail or the information it contains by other than an intended recipient is 
unauthorized.  The views and opinions expressed in this e-mail message are the 
author's own and may not reflect the views and opinions of BGI, unless the 
author is authorized by BGI to express such views or opinions on its behalf.  
All email sent to or from this address is subject to electronic storage and 
review by BGI.  Although BGI operates anti-virus programs, it does not accept 
responsibility for any damage whatsoever caused by viruses being passed.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]