Mercurial Hosting > luan
comparison src/org/eclipse/jetty/util/resource/JarResource.java @ 820:8e9db0bbf4f9
remove org.eclipse.jetty.util.log and upgrade slf4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 13 Sep 2016 23:13:06 -0600 |
parents | 3428c60d7cfc |
children |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
29 import java.util.jar.JarInputStream; | 29 import java.util.jar.JarInputStream; |
30 import java.util.jar.Manifest; | 30 import java.util.jar.Manifest; |
31 | 31 |
32 import org.eclipse.jetty.util.IO; | 32 import org.eclipse.jetty.util.IO; |
33 import org.eclipse.jetty.util.URIUtil; | 33 import org.eclipse.jetty.util.URIUtil; |
34 import org.eclipse.jetty.util.log.Log; | 34 import org.slf4j.Logger; |
35 import org.eclipse.jetty.util.log.Logger; | 35 import org.slf4j.LoggerFactory; |
36 | 36 |
37 | 37 |
38 /* ------------------------------------------------------------ */ | 38 /* ------------------------------------------------------------ */ |
39 public class JarResource extends URLResource | 39 public class JarResource extends URLResource |
40 { | 40 { |
41 private static final Logger LOG = Log.getLogger(JarResource.class); | 41 private static final Logger LOG = LoggerFactory.getLogger(JarResource.class); |
42 protected JarURLConnection _jarConnection; | 42 protected JarURLConnection _jarConnection; |
43 | 43 |
44 /* -------------------------------------------------------- */ | 44 /* -------------------------------------------------------- */ |
45 JarResource(URL url) | 45 JarResource(URL url) |
46 { | 46 { |
71 if (_jarConnection!=_connection) | 71 if (_jarConnection!=_connection) |
72 newConnection(); | 72 newConnection(); |
73 } | 73 } |
74 catch(IOException e) | 74 catch(IOException e) |
75 { | 75 { |
76 LOG.ignore(e); | 76 LOG.trace("",e); |
77 _jarConnection=null; | 77 _jarConnection=null; |
78 } | 78 } |
79 | 79 |
80 return _jarConnection!=null; | 80 return _jarConnection!=null; |
81 } | 81 } |