Examples of resourcePathsForResources()


Examples of com.webobjects.foundation.NSBundle.resourcePathsForResources()

    // Check every bundle (app and frameworks)
      for (Enumeration bundles = NSBundle._allBundlesReally().objectEnumerator(); bundles.hasMoreElements();) {
          NSBundle bundle = (NSBundle) bundles.nextElement();
         
          // Get list of all files with extension indexModel
          NSArray<String> files = bundle.resourcePathsForResources("indexModel", null);
          for (String file : files) {
              URL url = bundle.pathURLForResourcePath(file);
             
              // Get the name of the indexModel file withut the directory path and without the file extension
              String name = url.toString().replaceAll(".*?/(\\w+)\\.indexModel$", "$1");
View Full Code Here

Examples of com.webobjects.foundation.NSBundle.resourcePathsForResources()

    bundles.addObject(NSBundle.mainBundle());
    bundles.addObjectsFromArray(frameworkBundles);

    for (Enumeration<NSBundle> e = bundles.objectEnumerator(); e.hasMoreElements(); ) {
      NSBundle nsbundle = e.nextElement();
      NSArray<String> paths = nsbundle.resourcePathsForResources("eomodeld", null);
      int pathCount = paths.count();
      for (int currentPath = 0; currentPath < pathCount; currentPath++) {
        String indexPath = paths.objectAtIndex(currentPath);
        if(indexPath.endsWith(".eomodeld~/index.eomodeld")) {
          // AK: we don't want to use temp files. This is actually an error in the
View Full Code Here

Examples of com.webobjects.foundation.NSBundle.resourcePathsForResources()

      bundle = NSBundle.bundleForName(migrationBundleName());
      if (bundle == null) {
        bundle = NSBundle._appBundleForName(migrationBundleName());
      }
    }
    NSArray<String> resourcePaths = bundle.resourcePathsForResources("migration", null);

    if (resourcePaths != null) {
      for (String currentPath : resourcePaths) {
        if (currentPath.endsWith(migrationName)) {
          try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.