Issue Details (XML | Word | Printable)

Key: GROOVY-1857
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jochen Theodorou
Reporter: Robert Stroud
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Add a check for ant version 1.7

Created: 27/Apr/07 05:58 AM   Updated: 02/Jul/07 03:42 AM
Component/s: Ant integration
Affects Version/s: None
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified


 Description  « Hide
Groovy apparently needs ant version 1.7 to build, or at least ant 1.6.5 rather than ant 1.6.2, so it might be worth adding an explicit version check to the ant build file to prevent the build failing half-way through...

<target name="checkVersion" description="Ensure that we're running ant 1.7">
<fail message="Please install using ant 1.7">
<condition>
<not>
<contains string="${ant.version}" substring="1.7"/>
</not>
</condition>
</fail>
</target>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jochen Theodorou added a comment - 01/Jul/07 05:52 PM
that's fine for testing 1.7, but what about later versions? 1.8 for example

Guillaume Laforge added a comment - 02/Jul/07 03:27 AM
Well, we can always put <contains string="${ant.version}" substring="1.8"/> as well

Jochen Theodorou added a comment - 02/Jul/07 03:42 AM
just wanted to know if there is no better way... ok, then.. check added