You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Michael Bouschen <mb...@spree.de> on 2009/06/30 16:28:37 UTC

JDO TCK project.properties changes

Hi Andy,

you recently added the following line to projects.properties in tck2 in 
order to turn OFF any post-compile enhancement with JDK1.6:
  maven.compile.compilerargs= -proc:none

This leads to a javac error when using JDK 1.5 (I'm using build 
1.5.0_15-b04):
java:compile:
    [echo] Compiling to 
d:\projects\jdo\workspace\jdo\trunk\tck2/target/classes
    [javac] Compiling 1 source file to 
D:\projects\jdo\workspace\jdo\trunk\tck2\target\classes
    [javac] javac: invalid flag: -proc:none
    [javac] Usage: javac <options> <source files>

Do you have an idea how we can set the property in project.properties 
such that it is only used when running JDK 1.6?

Regards Michael

-- 
*Michael Bouschen*
*Prokurist*

akquinet tech@spree GmbH
Bülowstr. 66, D-10783 Berlin

Fon:   +49 30 235 520-33
Fax:   +49 30 217 520-12
Email: michael.bouschen@akquinet.de
Url:    www.akquinet.de <http://www.akquinet.de>

akquinet tech@spree GmbH, Berlin
Geschäftsführung: Martin Weber, Prof. Dr. Christian Roth
Amtsgericht Berlin-Charlottenburg HRB 86780 B
USt.-Id. Nr.: DE 225 964 680

Re: JDO TCK project.properties changes

Posted by Erik Bengtson <er...@jpox.org>.
Another way of disabling the enhancement on compile time is removing the
enhancer jar from the compiler classpath.



On Tue, Jun 30, 2009 at 4:28 PM, Michael Bouschen <mb...@spree.de> wrote:

> Hi Andy,
>
> you recently added the following line to projects.properties in tck2 in
> order to turn OFF any post-compile enhancement with JDK1.6:
>  maven.compile.compilerargs= -proc:none
>
> This leads to a javac error when using JDK 1.5 (I'm using build
> 1.5.0_15-b04):
> java:compile:
>   [echo] Compiling to
> d:\projects\jdo\workspace\jdo\trunk\tck2/target/classes
>   [javac] Compiling 1 source file to
> D:\projects\jdo\workspace\jdo\trunk\tck2\target\classes
>   [javac] javac: invalid flag: -proc:none
>   [javac] Usage: javac <options> <source files>
>
> Do you have an idea how we can set the property in project.properties such
> that it is only used when running JDK 1.6?
>
> Regards Michael
>
> --
> *Michael Bouschen*
> *Prokurist*
>
> akquinet tech@spree GmbH
> Bülowstr. 66, D-10783 Berlin
>
> Fon:   +49 30 235 520-33
> Fax:   +49 30 217 520-12
> Email: michael.bouschen@akquinet.de
> Url:    www.akquinet.de <http://www.akquinet.de>
>
> akquinet tech@spree GmbH, Berlin
> Geschäftsführung: Martin Weber, Prof. Dr. Christian Roth
> Amtsgericht Berlin-Charlottenburg HRB 86780 B
> USt.-Id. Nr.: DE 225 964 680
>

Re: JDO TCK project.properties changes

Posted by Andy Jefferson <an...@datanucleus.org>.
> Do you have an idea how we can set the property in project.properties
> such that it is only used when running JDK 1.6?

Hi Michael,

no idea. M1 doesn't support profiles. M2 does.
Remove the enhancer from the compile CLASSPATH as Erik suggested makes more 
sense to me, shouldn't be in there in the first place IMHO.

-- 
Andy
DataNucleus (http://www.datanucleus.org)