You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2004/12/13 09:59:42 UTC
cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/repository HttpRepository.java
bodewig 2004/12/13 00:59:42
Modified: src/main/org/apache/tools/ant/taskdefs/repository
HttpRepository.java
Log:
Make Jikes happy - shadowing of url
Revision Changes Path
1.5 +2 -2 ant/src/main/org/apache/tools/ant/taskdefs/repository/HttpRepository.java
Index: HttpRepository.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/repository/HttpRepository.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- HttpRepository.java 1 Dec 2004 22:48:37 -0000 1.4
+++ HttpRepository.java 13 Dec 2004 08:59:42 -0000 1.5
@@ -99,8 +99,8 @@
*/
public void setBaseDir(File basedir) {
try {
- URL url=basedir.toURL();
- setUrl(url.toExternalForm());
+ URL u = basedir.toURL();
+ setUrl(u.toExternalForm());
} catch (MalformedURLException e) {
throw new BuildException(e);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: cvs commit:
ant/src/main/org/apache/tools/ant/taskdefs/repository HttpRepository.java
Posted by Stefan Bodewig <bo...@apache.org>.
On 13 Dec 2004, <bo...@apache.org> wrote:
> - URL url=basedir.toURL();
> - setUrl(url.toExternalForm());
> + URL u = basedir.toURL();
> + setUrl(u.toExternalForm());
why not "setUrl(fileUtils.getFileURL(baseDir));"?
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org