On 2/2/07, Guru Balse <[EMAIL PROTECTED]> wrote:
When I run my ant scripts I get these highly annoying and screen
real-estate consuming messages like:

Trying to override old definition of task shellscript
...
Trying to override old definition of datatype isgreaterthan

shellscript and isgreaterthan are tasks and types in ant-contrib.
It is possible to set up a build system to use ant-contrib tasks
and types without these messages (even with using <antcall>
and <ant>).

for example:

<project default="x" xmlns:ac="antlib:net.sf.antcontrib">
 <typedef resource="net/sf/antcontrib/antlib.xml"
          uri="antlib:net.sf.antcontrib"
          classpath="${user.home}/apps/ant-contrib/ant-contrib.jar"/>
 <!-- Strange, the logic conditions are not in antlib.xml ?? -->
 <typedef name="isgreaterthan"
          classname="net.sf.antcontrib.logic.condition.IsGreaterThan"
          uri="antlib:net.sf.antcontrib"
          classpath="${user.home}/apps/ant-contrib/ant-contrib.jar"/>
 <target name="x">
   <ac:shellscript shell="bash">
     ls -rtla
   </ac:shellscript>
 </target>

 <target name="y">
   <antcall target="x"/>
 </target>

 <target name="n">
   <ac:if>
     <ac:isgreaterthan arg1="100" arg2="2"/>
     <then>
       <echo>Hi</echo>
     </then>
   </ac:if>
 </target>

 <target name="calln">
   <ant antfile="build.xml" target="n"/>
 </target>
</project>


Peter



...

I am using ant 1.6.5 and I see in ComponentHelper.java (line 609)

                project.log("Trying to override old definition of "
                    + (isTask ? "task " : "datatype ") + name,
                    (def.similarDefinition(old, project))
                    ? Project.MSG_VERBOSE : Project.MSG_WARN);

I tried running with "-q" option but that only works for top level
script, does not work for scripts that are fired off using:
    ant antfile="..."

Is there any way to turn off these messages?

Thanks.

 - Guru Balse

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to