|
From: Alef A. <al...@jt...> - 2005-03-30 22:03:57
|
You're right, but I'll be adding support for running the unit tests on = 1.4 as well... I was first thinking about adding a simple master build = script that executes the two builds (1.4 and 1.5) but the problem here = is that the 'ant' task does not support forking of a new JVM and doing = an 'exec' is not an option, since I want to preserve the log files. = JUnit does support the fork (we're already doing it) and you can also = specify a JVM to use. About building (compiling), I thought the behavior when building on 1.5 = in combination with adding the compatibility flag would be the same as = with building on 1.4, wouldn't it? Alef -----Original Message----- From: spr...@li... on behalf of = Juergen Hoeller Sent: Wed 3/30/2005 8:15 PM To: spr...@li... Subject: Re: [Springframework-developer] Changes to build.xml to run = autobuilds build on 1.5 as well =20 Well, I don't object to such a property in general. But such a property = only makes sense if you intend to build the 1.4 version on JDK 1.5: I don't = think there's much point in that; building the 1.5 version only would be sufficient then. The capability of our build script to build on 1.4 is really just meant = as a fallback for users that want to do custom builds on their 1.4 JDK. The = only value we could add to the auto-builds is to check that building the 1.4 version actually works *on JDK 1.4*, which we can't check by building on = JDK 1.5... Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf = Of Alef Arendsen Sent: Wednesday, March 30, 2005 4:32 PM To: spr...@li... Subject: [Springframework-developer] Changes to build.xml to run autobuilds build on 1.5 as well If nobody objects, I'll be modifying the build file to include an = extra property that indicates whether or not you want to build on 1.5. I want = to have the autobuild build for both 1.5 and 1.4 but I can't get this to = work while maintaining the build numbers. To in addition to detecting the = Java version automatically, there will be a property you can specify when = issuing an Ant command. regards, Alef |