You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Shawn Castrianni <Sh...@halliburton.com> on 2008/10/03 22:22:42 UTC

garbage characters when specifying properties on the ANT command line

This only happens to a few machines and don't know what causes it:

executing:   build target -Dverbose=true

results in an error message:

Target "ûDverbose" does not exist in the project "MyProject".


You can see that the minus sign is being changed to a garbage character and, therefore, being interpreted as another target to run instead of a property setting.

Any ideas?  I am thinking it has to be an environment problem as it only happens on a few machines.  I have only seen this happen on windows machines.


---
Shawn Castrianni

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

RE: garbage characters when specifying properties on the ANT command line

Posted by Shawn Castrianni <Sh...@halliburton.com>.
Yes, you are right.  I copied and pasted the command from an email and since the email was HTML based, it must have translated the character into something besides ASCII 45.  If I manually typed the command it worked properly.  Thanks for the quick response.

---
Shawn Castrianni


-----Original Message-----
From: Rick Genter [mailto:rgenter@silverlink.com]
Sent: Friday, October 03, 2008 3:32 PM
To: Ant Users List
Subject: RE: garbage characters when specifying properties on the ANT command line

> From: Shawn Castrianni [mailto:Shawn.Castrianni@halliburton.com]
> Sent: Friday, October 03, 2008 1:23 PM
> To: 'Ant Users List'
> Subject: garbage characters when specifying properties on the ANT
> command line
>
> This only happens to a few machines and don't know what causes it:
>
> executing:   build target -Dverbose=true
>
> results in an error message:
>
> Target "ûDverbose" does not exist in the project "MyProject".

The "-" being typed on the command line is not an ASCII hyphen (\u002D), but is some other character that looks like a hyphen in the user's current code page.

--
Rick Genter
Principal Software Engineer
Silverlink Communications


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

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

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


RE: garbage characters when specifying properties on the ANT command line

Posted by Rick Genter <rg...@silverlink.com>.
> From: Shawn Castrianni [mailto:Shawn.Castrianni@halliburton.com]
> Sent: Friday, October 03, 2008 1:23 PM
> To: 'Ant Users List'
> Subject: garbage characters when specifying properties on the ANT
> command line
> 
> This only happens to a few machines and don't know what causes it:
> 
> executing:   build target -Dverbose=true
> 
> results in an error message:
> 
> Target "ûDverbose" does not exist in the project "MyProject".

The "-" being typed on the command line is not an ASCII hyphen (\u002D), but is some other character that looks like a hyphen in the user's current code page.

--
Rick Genter
Principal Software Engineer
Silverlink Communications


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