You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by sunnymarc <ms...@csc.com> on 2007/02/02 17:33:21 UTC

Problem calling ANT with "-logger" parameter

Hi,
I have a problem calling Ant using the "-logger" parameter in order to
substitute the DefaultLogger by the MailLogger. My call to Ant is as
follows: 
"ant -f BuildDrsProSubversion.xml build -l c:\BuildDrsProSubversion.log
-Dbasedir=c: -propertyfile BuildDrsPro_Rel401.properties ­-logger
org.apache.tools.ant.listener.MailLogger".
When I execute the call above I get the following message back from Ant:
"Target `¡logger' does not exist in this project." 
What does Ant mean by this message? I didn't mention any target called
"¡logger". Is it possible that Ant does not understand that I want to
specify a special logger with the "-logger" parameter? If so, why? 

Thank you very much for your help.
-- 
View this message in context: http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8770264
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: [SEC=UNCLASSIFIED] Problem calling ANT with "-logger" parameter

Posted by sunnymarc <ms...@csc.com>.
Hi Frank,

that's it! 
I don't know how this invalid "-"-sign (which looks exactly the same as the
"correct" one) got into my script, but since I have been copying and pasting
another "-" from the script it works without any problems!

Thanks,

Marc


Frank Harnack wrote:
> 
> Hi Marc,
> 
> maybe the character "-" (in "-logger") is the problem. The hexcode of the
> character must be "2d".
> 
> Regards
> 
> Frank
> 
> 
> Quoting sunnymarc <ms...@csc.com>:
> 
>>
>> Hi Frank,
>> thank you very much for your posting. The special character you can see
>> in
>> my email doesn't exist in the real script - I don't know how it slipped
>> into
>> the mail. Anyway, there isn't any special character. Does anybody have
>> another idea why ANT acts that strangely?
>>
>> Kind regards
>> Marc
>>
>>
>> Frank Harnack wrote:
>> >
>> > Hi,
>> > in your email I can see a special character between
>> > "BuildDrsPro_Rel401.properties" and "-logger".
>> > That should be the problem.
>> >
>> > Regards
>> >
>> > Frank
>> >
>> >
>> > Quoting sunnymarc <ms...@csc.com>:
>> >
>> >>
>> >> Hi,
>> >> I have a problem calling Ant using the "-logger" parameter in order to
>> >> substitute the DefaultLogger by the MailLogger. My call to Ant is as
>> >> follows:
>> >> "ant -f BuildDrsProSubversion.xml build -l
>> c:\BuildDrsProSubversion.log
>> >> -Dbasedir=c: -propertyfile BuildDrsPro_Rel401.properties ­-logger
>> >> org.apache.tools.ant.listener.MailLogger".
>> >> When I execute the call above I get the following message back from
>> Ant:
>> >> "Target `¡logger' does not exist in this project."
>> >> What does Ant mean by this message? I didn't mention any target called
>> >> "¡logger". Is it possible that Ant does not understand that I want
>> to
>> >> specify a special logger with the "-logger" parameter? If so, why?
>> >>
>> >> Thank you very much for your help.
>> >> --
>> >> View this message in context:
>> >>
>> >
>>
> http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8770264
>> >> Sent from the Ant - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>>
> http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8802848
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a9155957
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: Problem calling ANT with "-logger" parameter

Posted by Frank Harnack <ha...@mail05.harlau.de>.
Hi Marc,

maybe the character "-" (in "-logger") is the problem. The hexcode of the
character must be "2d".

Regards

Frank


Quoting sunnymarc <ms...@csc.com>:

>
> Hi Frank,
> thank you very much for your posting. The special character you can see in
> my email doesn't exist in the real script - I don't know how it slipped into
> the mail. Anyway, there isn't any special character. Does anybody have
> another idea why ANT acts that strangely?
>
> Kind regards
> Marc
>
>
> Frank Harnack wrote:
> >
> > Hi,
> > in your email I can see a special character between
> > "BuildDrsPro_Rel401.properties" and "-logger".
> > That should be the problem.
> >
> > Regards
> >
> > Frank
> >
> >
> > Quoting sunnymarc <ms...@csc.com>:
> >
> >>
> >> Hi,
> >> I have a problem calling Ant using the "-logger" parameter in order to
> >> substitute the DefaultLogger by the MailLogger. My call to Ant is as
> >> follows:
> >> "ant -f BuildDrsProSubversion.xml build -l c:\BuildDrsProSubversion.log
> >> -Dbasedir=c: -propertyfile BuildDrsPro_Rel401.properties ­-logger
> >> org.apache.tools.ant.listener.MailLogger".
> >> When I execute the call above I get the following message back from Ant:
> >> "Target `¡logger' does not exist in this project."
> >> What does Ant mean by this message? I didn't mention any target called
> >> "¡logger". Is it possible that Ant does not understand that I want to
> >> specify a special logger with the "-logger" parameter? If so, why?
> >>
> >> Thank you very much for your help.
> >> --
> >> View this message in context:
> >>
> >
>
http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8770264
> >> Sent from the Ant - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8802848
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Problem calling ANT with "-logger" parameter

Posted by sunnymarc <ms...@csc.com>.
Hi Frank,
thank you very much for your posting. The special character you can see in
my email doesn't exist in the real script - I don't know how it slipped into
the mail. Anyway, there isn't any special character. Does anybody have
another idea why ANT acts that strangely?

Kind regards
Marc


Frank Harnack wrote:
> 
> Hi,
> in your email I can see a special character between
> "BuildDrsPro_Rel401.properties" and "-logger".
> That should be the problem.
> 
> Regards
> 
> Frank
> 
> 
> Quoting sunnymarc <ms...@csc.com>:
> 
>>
>> Hi,
>> I have a problem calling Ant using the "-logger" parameter in order to
>> substitute the DefaultLogger by the MailLogger. My call to Ant is as
>> follows:
>> "ant -f BuildDrsProSubversion.xml build -l c:\BuildDrsProSubversion.log
>> -Dbasedir=c: -propertyfile BuildDrsPro_Rel401.properties ­-logger
>> org.apache.tools.ant.listener.MailLogger".
>> When I execute the call above I get the following message back from Ant:
>> "Target `¡logger' does not exist in this project."
>> What does Ant mean by this message? I didn't mention any target called
>> "¡logger". Is it possible that Ant does not understand that I want to
>> specify a special logger with the "-logger" parameter? If so, why?
>>
>> Thank you very much for your help.
>> --
>> View this message in context:
>>
> http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8770264
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8802848
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: Problem calling ANT with "-logger" parameter

Posted by Frank Harnack <ha...@mail05.harlau.de>.
Hi,
in your email I can see a special character between
"BuildDrsPro_Rel401.properties" and "-logger".
That should be the problem.

Regards

Frank


Quoting sunnymarc <ms...@csc.com>:

>
> Hi,
> I have a problem calling Ant using the "-logger" parameter in order to
> substitute the DefaultLogger by the MailLogger. My call to Ant is as
> follows:
> "ant -f BuildDrsProSubversion.xml build -l c:\BuildDrsProSubversion.log
> -Dbasedir=c: -propertyfile BuildDrsPro_Rel401.properties ­-logger
> org.apache.tools.ant.listener.MailLogger".
> When I execute the call above I get the following message back from Ant:
> "Target `¡logger' does not exist in this project."
> What does Ant mean by this message? I didn't mention any target called
> "¡logger". Is it possible that Ant does not understand that I want to
> specify a special logger with the "-logger" parameter? If so, why?
>
> Thank you very much for your help.
> --
> View this message in context:
>
http://www.nabble.com/Problem-calling-ANT-with-%22-logger%22-parameter-tf3161809.html#a8770264
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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