Package org.sonatype.nexus.webresources

Examples of org.sonatype.nexus.webresources.FileWebResource


    this.directories = checkNotNull(directories);
  }

  private WebResource create(final String fileName, final String path) {
    File file = new File(directories.getTemporaryDirectory(), fileName);
    return new FileWebResource(file, path, JAVASCRIPT, true);
  }
View Full Code Here


    WebResource resource = null;

    // 1) first "dev" resources if enabled (to override everything else)
    File file = DevModeResources.getFileIfOnFileSystem(path);
    if (file != null) {
      resource = new FileWebResource(file, path, mimeSupport.guessMimeTypeFromPath(file.getName()), false);
      log.trace("Found dev-mode resource: {}", resource);
    }

    // 2) second, look at "ordinary" resources, but only if devResource did not hit anything
    if (resource == null) {
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.webresources.FileWebResource

Copyright © 2018 www.massapicom. 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.