Java Resource Load getResourceDirectory()

Here you can find the source of getResourceDirectory()

Description

get Resource Directory

License

Open Source License

Declaration

public static File getResourceDirectory() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static File getResourceDirectory() {
        File resourceDir = new File("./smos-box/smos-reader/src/test/resources/org/esa/smos/dataio/smos/dddb/");
        if (!resourceDir.isDirectory()) {
            resourceDir = new File("./src/test/resources/org/esa/smos/dataio/smos/dddb/");
        }// ww  w  .j  ava2  s  .c o  m
        return resourceDir;
    }
}

Related

  1. getResourceAsTempFile(Object context, String resourceName)
  2. getResourceBundle(String baseName)
  3. getResourceBundleForLoc(String language, String fileName)
  4. getResourceBytes(String path)
  5. getResourceByZip(final ZipInputStream zipIN, final String resourcePath)
  6. getResourceFile(Class clazz, String path)
  7. getResourceFile(Class theClass, String fileName)
  8. getResourceFile(String relativeResourceFilePathname)
  9. getResourceFile(String resource)