RE: [M2]How to compile with JDK 1.2

2006-05-10 Thread Tung Nguyen
Yes, it was just a faute of typing, the executable argument must be 
 
C:\jdk1.2.2\bin\javac
 
By the way, even manven 2 requires java 1.4, in the official doc say that "You 
can use any JDK to compile, not only the one used to run Maven." and there's a 
parameter: "compilerArgument" which is "Unformatted argument string to be 
passed to the compiler if fork is set to true. This is because the list of 
valid arguments passed to a Java compiler varies based on the compiler version."

I think that Maven 2 tries to use all the arguments of its jdk by defaut even 
when I want to use an external jdk.

Thanks for all your helps.

>From [EMAIL PROTECTED]
Subject RE: [M2]How to compile with JDK 1.2
DateTue, 09 May 2006 16:23:55 GMT 

The executable must be linked to javac.exe. 
I do not try but the "official help" says: 
 
 
google search -> maven-compiler-plugin 
result: http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 
 
> -Original Message- 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf  
> Of Carlos 
> Sanchez 
> Sent: dinsdag 9 mei 2006 18:17 
> To: Maven Users List 
> Subject: Re: [M2]How to compile with JDK 1.2 
>  
>  
> Can you file a jira issue at http://jira.codehaus.org/browse/PLX under 
> plexus-compiler component? 
>  
> I'm sure nobody tried 1.2 JDK 
>  
> On 5/9/06, Roald Bankras  wrote: 
> > Java 1.4 is the minimum required version for use with maven  
> 2. So I don't think it's going to work. 
> > 
> > Roald Bankras 
> > Software Engineer 
> > JTeam b.v. 
> > 
> > -Original Message- 
> > From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, May 09, 2006 11:06 AM 
> > To: users@maven.apache.org 
> > Subject: [M2]How to compile with JDK 1.2 
> > 
> > Hi everybody, 
> > 
> > I want to compile my source files with an external jdk1.2 :  
> I've tried this: 
> > 
> >  
> >  
> >
> > org.apache.maven.plugins 
> > maven-compiler-plugin 
> >  
> >   true 
> >   C:\jdk1.2.2\bin 
> >   1.2 
> >  
> >
> >  
> >
> > 
> > 
> > but it doesn't work 'cause javac 1.2 can't handle the  
> "source" argument meanwhile maven add automatically this  
> argument when executing the compilation. 
> > 
> > Thanks in advance. 
> > 
> > 
> > 
> > -- 
> > No virus found in this incoming message. 
> > Checked by AVG Free Edition. 
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release  
> Date: 5/8/2006 
> > 
> > 
> > -- 
> > No virus found in this outgoing message. 
> > Checked by AVG Free Edition. 
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release  
> Date: 5/8/2006 
> > 
> > 
> >  
> - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
>  
>  
> -- 
> I could give you my word as a Spaniard. 
> No good. I've known too many Spaniards. 
>  -- The Princess Bride 
>  
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
>  
 
 

 
This message is intended for the addressee or its representative only.  
Any form of unauthorized use, publication, reproduction, copying or  
disclosure of the content of this e-mail is not permitted. If you are  
not the intended recipient of this e-mail message and its contents,  
please notify the sender immediately and delete this message and  
all its attachments subsequently. 
 
 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



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



RE: [M2]How to compile with JDK 1.2

2006-05-09 Thread Andre . Tran
The executable must be linked to javac.exe.
I do not try but the "official help" says:


  ...
  

  
org.apache.maven.plugins
maven-compiler-plugin

  true
  1.3
  C:/Program
Files/Java/jdk1.3.1_18/bin/javac
  

  

  
  ...


google search -> maven-compiler-plugin
result: http://maven.apache.org/plugins/maven-compiler-plugin/howto.html

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf 
> Of Carlos
> Sanchez
> Sent: dinsdag 9 mei 2006 18:17
> To: Maven Users List
> Subject: Re: [M2]How to compile with JDK 1.2
> 
> 
> Can you file a jira issue at http://jira.codehaus.org/browse/PLX under
> plexus-compiler component?
> 
> I'm sure nobody tried 1.2 JDK
> 
> On 5/9/06, Roald Bankras <[EMAIL PROTECTED]> wrote:
> > Java 1.4 is the minimum required version for use with maven 
> 2. So I don't think it's going to work.
> >
> > Roald Bankras
> > Software Engineer
> > JTeam b.v.
> >
> > -Original Message-
> > From: Tung Nguyen [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 09, 2006 11:06 AM
> > To: users@maven.apache.org
> > Subject: [M2]How to compile with JDK 1.2
> >
> > Hi everybody,
> >
> > I want to compile my source files with an external jdk1.2 : 
> I've tried this:
> >
> > 
> > 
> >   
> > org.apache.maven.plugins
> > maven-compiler-plugin
> > 
> >   true
> >   C:\jdk1.2.2\bin
> >   1.2
> > 
> >   
> > 
> >   
> >
> >
> > but it doesn't work 'cause javac 1.2 can't handle the 
> "source" argument meanwhile maven add automatically this 
> argument when executing the compilation.
> >
> > Thanks in advance.
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release 
> Date: 5/8/2006
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release 
> Date: 5/8/2006
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>  -- The Princess Bride
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This message is intended for the addressee or its representative only. 
Any form of unauthorized use, publication, reproduction, copying or 
disclosure of the content of this e-mail is not permitted. If you are 
not the intended recipient of this e-mail message and its contents, 
please notify the sender immediately and delete this message and 
all its attachments subsequently.


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



Re: [M2]How to compile with JDK 1.2

2006-05-09 Thread Carlos Sanchez

Can you file a jira issue at http://jira.codehaus.org/browse/PLX under
plexus-compiler component?

I'm sure nobody tried 1.2 JDK

On 5/9/06, Roald Bankras <[EMAIL PROTECTED]> wrote:

Java 1.4 is the minimum required version for use with maven 2. So I don't think 
it's going to work.

Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 09, 2006 11:06 AM
To: users@maven.apache.org
Subject: [M2]How to compile with JDK 1.2

Hi everybody,

I want to compile my source files with an external jdk1.2 : I've tried this:



  
org.apache.maven.plugins
maven-compiler-plugin

  true
  C:\jdk1.2.2\bin
  1.2

  

  


but it doesn't work 'cause javac 1.2 can't handle the "source" argument 
meanwhile maven add automatically this argument when executing the compilation.

Thanks in advance.



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006


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





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



RE: [M2]How to compile with JDK 1.2

2006-05-09 Thread Siegmann Daniel, NY
> Java 1.4 is the minimum required version for use with maven 
> 2. So I don't think it's going to work. 
> 
> Roald Bankras

Java SE 1.4 is the minimum to run Maven2 itself. However, it should be able
to fork off and execute any JDK. I don't know why M2 should always use a
source argument - if none was specified, shouldn't it not include that
argument (i.e. leave it as the default)?

Anyway, I have compiled for 1.3, but I didn't use a separate JDK. I set
source and target to 1.3, and used bootclasspath to point to rt.jar from the
1.3 JDK. The settings in pom.xml looked like this:


  org.apache.maven.plugins
  maven-compiler-plugin
  
1.3
1.3

  ..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar

  


I don't know if this will fill Tung's needs, however. I've never used JDK
1.2 - it's ancient history. ;)

--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139

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



[M2]How to compile with JDK 1.2

2006-05-09 Thread Roald Bankras
Java 1.4 is the minimum required version for use with maven 2. So I don't think 
it's going to work. 

Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 09, 2006 11:06 AM
To: users@maven.apache.org
Subject: [M2]How to compile with JDK 1.2

Hi everybody,

I want to compile my source files with an external jdk1.2 : I've tried this:



  
org.apache.maven.plugins
maven-compiler-plugin

  true
  C:\jdk1.2.2\bin
  1.2

  

  


but it doesn't work 'cause javac 1.2 can't handle the "source" argument 
meanwhile maven add automatically this argument when executing the compilation.

Thanks in advance.



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006
 

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



[M2]How to compile with JDK 1.2

2006-05-09 Thread Tung Nguyen
Hi everybody,

I want to compile my source files with an external jdk1.2 : I've tried this:



  
org.apache.maven.plugins
maven-compiler-plugin

  true
  C:\jdk1.2.2\bin
  1.2

  

  


but it doesn't work 'cause javac 1.2 can't handle the "source" argument 
meanwhile maven add automatically this argument when executing the compilation.

Thanks in advance.