groovy

Add a check for ant version 1.7

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-beta-2
  • Component/s: Ant integration
  • Labels:
    None
  • Number of attachments :
    0

Description

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>

Activity

Hide
blackdrag blackdrag added a comment -

that's fine for testing 1.7, but what about later versions? 1.8 for example

Show
blackdrag blackdrag added a comment - that's fine for testing 1.7, but what about later versions? 1.8 for example
Hide
Guillaume Laforge added a comment -

Well, we can always put <contains string="${ant.version}" substring="1.8"/> as well

Show
Guillaume Laforge added a comment - Well, we can always put <contains string="${ant.version}" substring="1.8"/> as well
Hide
blackdrag blackdrag added a comment -

just wanted to know if there is no better way... ok, then.. check added

Show
blackdrag blackdrag added a comment - just wanted to know if there is no better way... ok, then.. check added

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: