Bug 309853 - Spring test compile path needs rework for 2.5.6 and optionally 3.0
Summary: Spring test compile path needs rework for 2.5.6 and optionally 3.0
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Edwin Tang CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/E...
Whiteboard: spring
Keywords:
Depends on: 288383 295876
Blocks: 332973
  Show dependency tree
 
Reported: 2010-04-20 15:11 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:10 EDT (History)
4 users (show)

See Also:


Attachments
Added updated variables for generation of cp (1.92 KB, patch)
2010-12-03 08:01 EST, Eric Gwin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2010-04-20 15:11:01 EDT
>The compile target's compile-path variable needs to be upgraded to reflect the new library multidirectory structure in Spring 2.5.6 and optionally 3.0

>The following file structure
spring.jlib=aop.jar,asm.jar,aspects.jar,beans.jar,context.jar,context.support.jar,core.jar,expression.jar,instrument.jar,instrument.tomcat.jar,jdbc.jar,jms.jar,orm.jar,oxm.jar,test.jar,transaction.jar,aopalliance-1.0.jar,commons-logging.jar,cglib-nodep-2.1_3.jar,jotm-client.jar,spring-tx-2.5.jar,xapool.jar
>for
<target name="config-compile-path">
  <fileset dir="${spring.jlib.dir}" includes="${spring.jlib}"/>

>no longer works for 2.5.6 - no local spring.jar test jar is generated
>we get expected compilation errors

F:\view_w35e\jpa\eclipselink.jpa.spring.test>ant
compile:
    [javac] Compiling 14 source files to F:\view_w35e\jpa\eclipselink.jpa.spring.test\classes
...
    [javac] 82 errors

BUILD FAILED
F:\view_w35e\jpa\eclipselink.jpa.spring.test\build.xml:132: Compile failed; see the compiler error output for details.

Total time: 1 second
F:\view_w35e\jpa\eclipselink.jpa.spring.test>

>See the recent fix in bug# 295876 that went in to fix the eclipse IDE part of this spring test project

>Either or both of these pages need documentation to match the project
http://wiki.eclipse.org/EclipseLink/Examples/JPA/JPASpring
http://wiki.eclipse.org/EclipseLink/Development/Spring
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Spring_Web_Tutorial
http://wiki.eclipse.org/EclipseLink/Test/JPA
Comment 1 Eric Gwin CLA 2010-12-03 08:01:58 EST
Created attachment 184460 [details]
Added updated variables for generation of cp

Assigning to Edwin, but I will need to review before merge. I have no bandwidth to create the infrastructure I'd need to test the updated build.

In addition to the updates needed for newer versions of spring. The entire path generation scheme needs to be reworked as previously recommended. Ant 8.0 no longer works with the "call to set path" schemes previously used in the test build files. examples of recommended structure can be found in the main component test buildfiles, I've previously rewritten.
Comment 2 Edwin Tang CLA 2011-03-29 10:56:57 EDT
QA is testing EclipseLink with Spring 3.0, not 2.5.6 anymore. Maybe the eclipse IDE part of this spring test project and these documents need to update to use Spring 3.0.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/JPASpring
http://wiki.eclipse.org/EclipseLink/Development/Spring
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Spring_Web_Tutorial
http://wiki.eclipse.org/EclipseLink/Test/JPA
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:10:02 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink