View | Details | Raw Unified | Return to bug 54473
Collapse All | Expand All

(-)src/main/org/apache/tools/ant/taskdefs/Antlib.java (-1 / +4 lines)
Lines 20-25 Link Here
20
20
21
import java.io.IOException;
21
import java.io.IOException;
22
import java.net.URL;
22
import java.net.URL;
23
import java.net.URLConnection;
23
import java.util.ArrayList;
24
import java.util.ArrayList;
24
import java.util.Iterator;
25
import java.util.Iterator;
25
import java.util.List;
26
import java.util.List;
Lines 63-69 Link Here
63
                                      String uri) {
64
                                      String uri) {
64
        // Check if we can contact the URL
65
        // Check if we can contact the URL
65
        try {
66
        try {
66
            antlibUrl.openConnection().connect();
67
            java.net.URLConnection c = antlibUrl.openConnection();
68
            c.setDefaultUseCaches(false);
69
            c.connect();
67
        } catch (IOException ex) {
70
        } catch (IOException ex) {
68
            throw new BuildException(
71
            throw new BuildException(
69
                "Unable to find " + antlibUrl, ex);
72
                "Unable to find " + antlibUrl, ex);

Return to bug 54473