You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Santhosh Nair (JIRA)" <ji...@codehaus.org> on 2008/02/03 03:25:57 UTC

[jira] Issue Comment Edited: (MANTRUN-68) Use ant-1.7.0

    [ http://jira.codehaus.org/browse/MANTRUN-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122174 ] 

snair33 edited comment on MANTRUN-68 at 2/2/08 8:24 PM:
--------------------------------------------------------------

Apparently the URI need to escaped for spaces before passing to URI.

I got around this by making a one line change.

1. download ant 1.7.0 sources
2. open the file  org.apache.tools.ant.launch.Locator.java
3.  Add  the following line as first line inside function  *public static String fromURI\\(String uri\\)*
4.  *uri = uri\\.replaceAll\\(" ", "%20"\\);*
5. build ant from sources
6. go to local maven repository and replace *ant-launcher-1.7.0.jar*  with the new file 


      was (Author: snair33):
    Apparently the URI need to escaped for spaces before passing to URI.

I got around this by making a one line change.

1. download ant 1.7.0 sources
2. open the file  org.apache.tools.ant.launch.Locator.java
3.  Add  the following line as first line inside function  *public static String fromURI(String uri) *
4.  {{uri = uri.replaceAll(" ", "%20"); }}
5. build ant from sources
6. go to local maven repository and replace *ant-launcher-1.7.0.jar*  with the new file 

  
> Use ant-1.7.0
> -------------
>
>                 Key: MANTRUN-68
>                 URL: http://jira.codehaus.org/browse/MANTRUN-68
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.2
>         Environment: xp, linux
>            Reporter: Dan Tran
>         Attachments: MANTRUN-68-maven-antrun-plugin.patch
>
>
> with out this upgrade, i will need to <exec> ant 1.7.0 to use its new features like abily to do delete,move, etc using filelist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira