[ 
http://jira.codehaus.org/browse/MANTTASKS-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92312
 ] 

Herve Boutemy commented on MANTTASKS-44:
----------------------------------------

ok, found in javadoc: "org.apache.tools.ant.ProjectComponent#getLocation() 
Returns the file/location where this task was defined."

We wouldn't care if it only affected bootstrap, but this affects Maven Ant 
Tasks in their "normal user" usage with Ant 1.7 (though only localRepository 
task is affected AFAIK).

we'l have to change "location" property in <artifact:localRepository 
id="local.repository" location="${basedir}/target/local-repo" layout="default"/>

proposal: <artifact:localRepository id="local.repository" 
root="${basedir}/target/local-repo" layout="default"/>

root? dir? basedir?
Changing code is easy, changing documentation and communication about the 
change will need some work, but the most important thing is to find a good 
target...

WDYT?

> bootstrap of components/trunk fails with ant-1.7.0RC1
> -----------------------------------------------------
>
>                 Key: MANTTASKS-44
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-44
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Improvement
>            Reporter: Alfred Nathaniel
>            Priority: Blocker
>
> Bootstrap build of components/trunk with ant-1.7.0RC1 fails.
>     [javac] 
> /home/alfred/apache/maven/components/trunk/maven-artifact-ant/src/main/java/org/apache/maven/artifact/ant/LocalRepository.java:32:
>  getLocation() in org.apache.maven.artifact.ant.LocalRepository cannot 
> override getLocation() in org.apache.tools.ant.ProjectComponent; attempting 
> to use incompatible return type    [javac] found   : java.io.File
>     [javac] required: org.apache.tools.ant.Location
>     [javac]     public File getLocation()
>     [javac]                 ^

-- 
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

        

Reply via email to