You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jacob Kjome <ho...@visi.com> on 2007/02/02 05:12:44 UTC

Re: Probably been asked before - Trying to override old definition of

Yep, use Ant-1.7.0

Jake

At 06:28 PM 2/1/2007, you 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
 >...
 >
 >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: user-unsubscribe@ant.apache.org
 >For additional commands, e-mail: user-help@ant.apache.org
 >
 >
 > 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Probably been asked before - Trying to override old definition of

Posted by Guru Balse <gu...@oracle.com>.
Just FYI

I moved the logger class to its own jar and when I use

'ant <usual options> -logger my.own.Logger -lib my/own/logger.jar'

it works fine.

sunnymarc:  double check your command line options, is it possible that 
a property in your BuildDrsPro_Rel401.properties defines a logger?

Guru Balse wrote:
> Thanks, Jacob.  I figured that would be the answer - sigh!  
> Unfortunately switching to 1.7 is not a choice, so are there any 1.6.5 
> solutions?
>
> I tried creating my own Logger to block those messages but that ended 
> up in a catch-22 because the custom logger class file could not be found.
>
> When I tried 'ant <usual options> -logger my.own.Logger -lib 
> my/own/test.jar' other scripts failed with class-not-found, as though 
> the classpaths inside the scripts failed to work - some other tasks 
> use the same jar test.jar - is that why?  Should I just move the 
> logger to its own jar and do 'ant <usual options> -logger 
> my.own.Logger -lib my/own/logger.jar'?
>
>
> Jacob Kjome wrote:
>>
>> Yep, use Ant-1.7.0
>>
>> Jake
>>
>> At 06:28 PM 2/1/2007, you 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
>> >...
>> >
>> >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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Probably been asked before - Trying to override old definition of

Posted by Guru Balse <gu...@oracle.com>.
Thanks, Jacob.  I figured that would be the answer - sigh!  
Unfortunately switching to 1.7 is not a choice, so are there any 1.6.5 
solutions?

I tried creating my own Logger to block those messages but that ended up 
in a catch-22 because the custom logger class file could not be found.

When I tried 'ant <usual options> -logger my.own.Logger -lib 
my/own/test.jar' other scripts failed with class-not-found, as though 
the classpaths inside the scripts failed to work - some other tasks use 
the same jar test.jar - is that why?  Should I just move the logger to 
its own jar and do 'ant <usual options> -logger my.own.Logger -lib 
my/own/logger.jar'?


Jacob Kjome wrote:
>
> Yep, use Ant-1.7.0
>
> Jake
>
> At 06:28 PM 2/1/2007, you 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
> >...
> >
> >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: user-unsubscribe@ant.apache.org
> >For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org