Examples of Paths


Examples of com.amazonaws.services.cloudfront.model.Paths

        paths.add("/" + key);
      }
    }

    if (!paths.isEmpty()) {
      batch.setPaths(new Paths().withItems(paths));

      invalidationRequest.withInvalidationBatch(batch);

      getService().createInvalidation(invalidationRequest);
    } else {
View Full Code Here

Examples of com.amazonaws.services.cloudfront.model.Paths

        paths.add("/" + key);
      }
    }

    if (!paths.isEmpty()) {
      batch.setPaths(new Paths().withItems(paths));

      invalidationRequest.withInvalidationBatch(batch);

      getService().createInvalidation(invalidationRequest);
    } else {
View Full Code Here

Examples of com.esotericsoftware.wildcard.Paths

        File dirFile = new File(dirPath);
        if (!dirFile.exists() || !dirFile.isDirectory()) {
            throw new CedarRuntimeException("Directory does not exist.");
        }

        Paths paths = new Paths(dirPath, glob);
        for (String path : paths.getRelativePaths()) {
            contents.add(normalize(path));
        }

        return contents;
    }
View Full Code Here

Examples of com.esotericsoftware.wildcard.Paths

    // Output ane executable jar to the output folder
    String outputPath = project.path("$target$/../dist/" + JarWrapper.version);
    paths(outputPath).delete();
   
    String jar = outputPath + "/JarWrapper-"+JarWrapper.version+".jar";
    Scar.jar(jar, paths(onejar), "com.robotality.jarwrapper.JarWrapper", new Paths());
   
    paths(".", wrapperResources.toArray(new String[0])).copyTo(outputPath);
   
    new File(outputPath + "/mac/jre").mkdir();
    new File(outputPath + "/linux/jre/32").mkdirs();
View Full Code Here

Examples of com.sun.tools.javac.util.Paths

            origOptions = Collections.unmodifiableMap(origOptions);

            {
                // Note: it might be necessary to check for an empty
                // component ("") of the source path or class path
                Paths paths = Paths.instance(context);

                String sourceDest = options.get("-s");
                if (paths.sourcePath() != null) {
                    for(File f: paths.sourcePath())
                        augmentedSourcePath += (f + File.pathSeparator);
                    augmentedSourcePath += (sourceDest == null)?".":sourceDest;
                } else {
                    augmentedSourcePath = ".";

                    if (sourceDest != null)
                        augmentedSourcePath += (File.pathSeparator + sourceDest);
                }

                String classDest = options.get("-d");
                if (paths.userClassPath() != null) {
                    for(File f: paths.userClassPath())
                        baseClassPath += (f + File.pathSeparator);
                    // put baseClassPath into map to handle any
                    // value needed for the classloader
                    options.put("-classpath", baseClassPath);

                    augmentedClassPath = baseClassPath + ((classDest == null)?".":classDest);
                } else {
                    baseClassPath = ".";
                    if (classDest != null)
                        augmentedClassPath = baseClassPath + (File.pathSeparator + classDest);
                }
                assert options.get("-classpath") != null;
            }

            /*
             * Create base and augmented class loaders
             */
            ClassLoader augmentedAptCL = null;
            {
            /*
             * Use a url class loader to look for classes on the
             * user-specified class path. Prepend computed bootclass
             * path, which includes extdirs, to the URLClassLoader apt
             * uses.
             */
                String aptclasspath = "";
                Paths paths = Paths.instance(context);
                String bcp = "";
                Collection<File> bootclasspath = paths.bootClassPath();

                if (bootclasspath != null) {
                    for(File f: bootclasspath)
                        bcp += (f + File.pathSeparator);
                }
View Full Code Here

Examples of er.rest.routes.jsr311.Paths

    }

    for (Method routeMethod : routeControllerClass.getDeclaredMethods()) {
      String routeMethodName = routeMethod.getName();
      Path pathAnnotation = routeMethod.getAnnotation(Path.class);
      Paths pathsAnnotation = routeMethod.getAnnotation(Paths.class);
      if (pathAnnotation != null || pathsAnnotation != null) {
        String actionName;
        if (routeMethodName.endsWith("Action")) {
          actionName = routeMethodName.substring(0, routeMethodName.length() - "Action".length());
        }
        else {
          actionName = routeMethodName;
        }

        ERXRoute.Method method = null;
        // Search annotations for @PUT, @GET, etc.
        for (Annotation annotation : routeMethod.getAnnotations()) {
          HttpMethod httpMethod = annotation.annotationType().getAnnotation(HttpMethod.class);
          if (httpMethod != null) {
            if (method == null) {
              method = httpMethod.value();
            }
            else {
              throw new IllegalArgumentException(routeControllerClass.getSimpleName() + "." + routeMethod.getName() + " is annotated as more than one http method.");
            }
          }
        }

        // Finally default declared REST actions to @GET
        if (method == null) {
          method = ERXRoute.Method.Get;
        }

        if (pathAnnotation != null) {
          addRoute(new ERXRoute(entityName, pathAnnotation.value(), method, routeControllerClass, actionName));
          declaredRoutesFound = true;
        }
        if (pathsAnnotation != null) {
          for (Path path : pathsAnnotation.value()) {
            addRoute(new ERXRoute(entityName, path.value(), method, routeControllerClass, actionName));
          }
          declaredRoutesFound = true;
        }
      }
View Full Code Here

Examples of fitnesse.wikitext.parser.Paths

  protected List<String> getItemsFromPage(WikiPage page) {
    if (page instanceof WikitextPage) {
      Symbol tree = ((WikitextPage) page).getSyntaxTree();
      ParsingPage parsingPage = ((WikitextPage) page).getParsingPage();
      return new Paths(new HtmlTranslator(new WikiSourcePage(page), parsingPage)).getPaths(tree);
    }
    return Collections.emptyList();
  }
View Full Code Here

Examples of org.apache.openejb.tomcat.installer.Paths

     */
    private void installConfigFiles(Properties properties) {
        String openejbWarDir = properties.getProperty("openejb.war");
        if (openejbWarDir == null) return;

        Paths paths = new Paths(new File(openejbWarDir));
        if (paths.verify()) {
            Installer installer = new Installer(paths);
            installer.installConfigFiles();
        }
    }
View Full Code Here

Examples of org.apache.openejb.tomcat.installer.Paths

        // install conf/openejb.xml and conf/logging.properties files
        String openejbWarDir = properties.getProperty("openejb.war");
        if (openejbWarDir != null) {

            Paths paths = new Paths(new File(openejbWarDir));
            if (paths.verify()) {
                Installer installer = new Installer(paths);
                installer.installConfigFiles();
            }
        }
View Full Code Here

Examples of org.apache.openejb.tomcat.installer.Paths

    private void installConfigFiles() {
        String openejbWarDir = System.getProperty("openejb.war");
        if (openejbWarDir == null) return;

        Paths paths = new Paths(openejbWarDir);
        if (paths.verify()) {
            Installer installer = new Installer(paths);
            installer.installConfigFiles();
        }
    }
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.