Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: AW: [eclipselink-dev] Build errors - try 4.7

Update,
    The following pages are updated to reference that the "latest" version of JUnit 4.5 be used when using ant.
     Eclipse 3.5 EE ships with org.junit4_4.5.0.v20090824 - so we should be ok compiling on the IDE since v20090423 was verified
http://wiki.eclipse.org/EclipseLink/Building#Environment_Setup
http://wiki.eclipse.org/EclipseLink/Building#From_Ant
http://wiki.eclipse.org/EclipseLink/Development/Testing/Prereq

    thank you
    /michael

Michael O'Brien wrote:
Adrian,
    In the WDF properties file the following 2 properties are overridden but build.xml has the propert user-home overrides as well on line 70 - so they should not be an issue - they are not.

junit.lib=../../../extension.lib.external/junit.jar
# Edit this property when you would like to override the java version during testing
javac.version=1.6

----------------working---------------
I switched to JUnit 4.7 and Waldorf compiles fine now, evidently my 4.5 jar is missing the following api
http://junit.sourceforge.net/javadoc/org/junit/runner/notification/RunNotifier.html#fireTestAssumptionFailed(org.junit.runner.notification.Failure)



F:\view_w35c\jpa\eclipselink.jpa.wdf.test>ant
Buildfile: build.xml
     [echo] wdf_test.build.location = 'F:/view_w35c/jpa/eclipselink.jpa.wdf.test'
     [echo] wdf_test.2.trunk.dir = '../..'

clean:

init:
    [mkdir] Created dir: F:\view_w35c\jpa\eclipselink.jpa.wdf.test\classes

init_against_jar:

compile:
    [javac] Compiling 213 source files to F:\view_w35c\jpa\eclipselink.jpa.wdf.test\classes
    [javac] Compiling 24 source files to F:\view_w35c\jpa\eclipselink.jpa.wdf.test\classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

get-server-properties:
     [echo] server.lib=C:/jboss-5.1.0.GA/client
     [echo] server.depend=jbossall-client.jar
     [echo] server.name=jboss
     [echo] server.platform=JBoss

package-tests:
    [mkdir] Created dir: F:\view_w35c\jpa\eclipselink.jpa.wdf.test\stage
     [echo] eclipselink.jpa.test=../eclipselink.jpa.test
     [copy] Copying 1 file to F:\view_w35c\jpa\eclipselink.jpa.wdf.test\stage
      [jar] Building jar: F:\view_w35c\jpa\eclipselink.jpa.wdf.test\eclipselink-tests.jar
   [delete] Deleting directory F:\view_w35c\jpa\eclipselink.jpa.wdf.test\stage

package-wdf-jpa2-model:
     [echo] wdf_test.build.location = 'F:/view_w35c/jpa/eclipselink.jpa.wdf.test'
     [echo] wdf_test.2.trunk.dir = '../..'

get-server-properties:
     [echo] server.lib=C:/jboss-5.1.0.GA/client
     [echo] server.depend=jbossall-client.jar
     [echo] server.name=jboss
     [echo] server.platform=JBoss

detect-os:
     [echo] suffix=bat

set-app-name:

package-model:
     [copy] Copying 1 file to F:\view_w35c\jpa\eclipselink.jpa.wdf.test\build\META-INF
      [jar] Building jar: F:\view_w35c\jpa\eclipselink.jpa.wdf.test\eclipselink-wdf-jpa2-model.jar
   [delete] Deleting directory F:\view_w35c\jpa\eclipselink.jpa.wdf.test\build\META-INF

package-wdf-jpa1-model:
     [echo] wdf_test.build.location = 'F:/view_w35c/jpa/eclipselink.jpa.wdf.test'
     [echo] wdf_test.2.trunk.dir = '../..'

get-server-properties:
     [echo] server.lib=C:/jboss-5.1.0.GA/client
     [echo] server.depend=jbossall-client.jar
     [echo] server.name=jboss
     [echo] server.platform=JBoss

detect-os:
     [echo] suffix=bat

set-app-name:

package-model:
     [copy] Copying 1 file to F:\view_w35c\jpa\eclipselink.jpa.wdf.test\build\META-INF
      [jar] Building jar: F:\view_w35c\jpa\eclipselink.jpa.wdf.test\eclipselink-wdf-jpa1-model.jar
   [delete] Deleting directory F:\view_w35c\jpa\eclipselink.jpa.wdf.test\build\META-INF

package:

build-against-jar:

build:

BUILD SUCCESSFUL
Total time: 3 seconds


Goerler, Adrian wrote:

Hi,

 

strange. My build is fine in eclipse as well as with ant.

 

In Eclipse, I am compiling against

 

org.junit4_4.5.0.v20090423

 

with ant, I am using junit 4.5 as well.

 

Looks like your version of junit is lacking the

 

org.junit.runner.notification.RunNotifier.fireTestAssumptionFailed

 

method for some reason. Sure it is 4.5?

 

-Adrian

 

 

 

Adrian Görler
SAP AG

Pflichtangaben/Mandatory Disclosure Statements: http://www.sap.com/company/legal/impressum.epx

 

Von: Guy Pelletier [mailto:guy.pelletier@xxxxxxxxxx]
Gesendet: Freitag, 9. April 2010 16:38
An: Goerler, Adrian; Dev mailing list for Eclipse Persistence Services
Betreff: Re: [eclipselink-dev] Build errors

 

Hi Adrian

 

I'm using junit-4.5 and jdk 1.6.0_06

 

Cheers,

Guy

----- Original Message -----

Sent: Friday, April 09, 2010 10:28 AM

Subject: AW: [eclipselink-dev] Build errors

 

Hi Guy,

 

sorry, I was wrong.

 

I am not overriding an interface method.

 

Maybe it’s a mismatch of a junit version then. Which version are you using?

 

-Adrian

 

 

Von: eclipselink-dev-bounces@xxxxxxxxxxx [mailto:eclipselink-dev-bounces@xxxxxxxxxxx] Im Auftrag von Goerler, Adrian
Gesendet: Freitag, 9. April 2010 16:25
An: Guy Pelletier
Cc: Dev mailing list for Eclipse Persistence Services
Betreff: AW: [eclipselink-dev] Build errors

 

Hi Guy,

 

this is due to my change.

 

Actually, it’s a JDK 1.5/1.6 issue: in 1.5, you can’t put @Override on an interface method. In 1.6, you can. Unfortunately, Eclipse by default generates @Override on interface methods.

 

I’ll change it to be 1.5 compatible.

 

Thanks for spotting this.

 

-Adrian

 





 

Von: eclipselink-dev-bounces@xxxxxxxxxxx [mailto:eclipselink-dev-bounces@xxxxxxxxxxx] Im Auftrag von Guy Pelletier
Gesendet: Freitag, 9. April 2010 16:21
An: Dev mailing list for Eclipse Persistence Services
Betreff: [eclipselink-dev] Build errors

 

After updating this morning, I'm getting the following compile issues when doing a full build, any ideas?

 

compile:
    [javac] Compiling 213 source files to C:\Work\eclipse\jpa\eclipselink.jpa.wd
f.test\classes
    [javac] C:\Work\eclipse\jpa\eclipselink.jpa.wdf.test\src\org\eclipse\persist
ence\testing\framework\wdf\server\CollectNotificationsListener.java:41: method d
oes not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Work\eclipse\jpa\eclipselink.jpa.wdf.test\src\org\eclipse\persist
ence\testing\framework\wdf\server\TestAssumptionFailed.java:32: cannot find symb
ol
    [javac] symbol  : method fireTestAssumptionFailed(org.junit.runner.notificat
ion.Failure)
    [javac] location: class org.junit.runner.notification.RunNotifier
    [javac]         notifier.fireTestAssumptionFailed(failure.restore());
    [javac]                 ^
    [javac] 2 errors

 

BUILD FAILED
C:\Work\eclipse\build.xml:315: The following error occurred while executing this
 line:
C:\Work\eclipse\jpa\eclipselink.jpa.wdf.test\build.xml:178: Compile failed; see
the compiler error output for details.

 


_______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev


_______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev


Back to the top