Hi Nicolas and all,

On 8/7/2012 3:58 PM, Nicolas Lalevée wrote:
Then, only speaking for myself and not for the Ant committers, I don't think 
"reverse" behavior to be ugly. We gain a fine control of the classloading, just 
like we do while using inheritance in Java.
And considering Ant backward compatibility policy, I wouldn't worry much of 
that attribute to be removed soon, even deprecated.

Thanks again for your confirmation regarding the use of the *reverseloader *attribute. We will be using it and hope it is not removed in the future!

Regarding the log message:

The reverseloader attribute is DEPRECATED. It will be removed

Is there a way to prevent this from being written to the logs? I tried using the recorder task, but that didn't work:

<record name="output.log" action="stop"/>
<taskdef name="groovy" ... reverseloader="true"/>

If there is no reasonable way to prevent it from being emitted, we'll just need to document it as a message to be ignored.

Many thanks again for your input and help!

Steve Amerige
SAS Institute, Deployment Developer

*build.xml:*

<?xml version="1.0" encoding="UTF-8"?>

<project name="Ant" default="main" basedir=".">

<taskdef
   name="groovy"
   classname="org.codehaus.groovy.ant.Groovy"
   classpath="C:/groovy-2.0.1/embeddable/groovy-all-2.0.1.jar"
   reverseloader="true"/>

<target name="main">
<echo message="ant: ${ant.version}"/>
<groovy>
        println GroovySystem.getVersion()
</groovy>
</target>

</project>

*output with Ant 1.7.1:*

*without reverseloader="true":*

main:
     [echo] ant: Apache Ant version 1.7.1 compiled on June 27 2008
   [groovy] 1.7.10
BUILD SUCCESSFUL

*with reverseloader="true":*

  [taskdef] The reverseloader attribute is DEPRECATED. It will be removed
main:
     [echo] ant: Apache Ant version 1.7.1 compiled on June 27 2008
   [groovy] 2.0.1
BUILD SUCCESSFUL

Reply via email to