~ubuntu-branches/ubuntu/quantal/tomcat7/quantal-security

« back to all changes in this revision

Viewing changes to java/org/apache/naming/resources/VirtualDirContext.java

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-09-17 10:52:06 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120917105206-435z4lqqn21x575x
Tags: 7.0.30-0ubuntu1
* New upstream point release including several fixes for Java 7
  specific issues.
* Refreshed patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 *
57
57
 *
58
58
 * @author Fabrizio Giustina
59
 
 * @version $Id: VirtualDirContext.java 1307600 2012-03-30 20:33:27Z kkolinko $
 
59
 * @version $Id: VirtualDirContext.java 1371816 2012-08-10 19:54:55Z markt $
60
60
 */
61
61
public class VirtualDirContext extends FileDirContext {
62
62
    private String extraResourcePaths = "";
296
296
        return retSuper;
297
297
    }
298
298
 
 
299
    @Override
 
300
    protected String doGetRealPath(String path) {
 
301
        File file = file(path);
 
302
        if (null != file) {
 
303
            return file.getAbsolutePath();
 
304
        } else {
 
305
            return null;
 
306
        }
 
307
    }
299
308
}