Examples of FileResource


Examples of aQute.bnd.osgi.FileResource

     */
    private void doMavenMetadata( MavenProject currentProject, Jar jar ) throws IOException
    {
        String path = "META-INF/maven/" + currentProject.getGroupId() + "/" + currentProject.getArtifactId();
        File pomFile = new File( currentProject.getBasedir(), "pom.xml" );
        jar.putResource( path + "/pom.xml", new FileResource( pomFile ) );

        Properties p = new Properties();
        p.put( "version", currentProject.getVersion() );
        p.put( "groupId", currentProject.getGroupId() );
        p.put( "artifactId", currentProject.getArtifactId() );
View Full Code Here

Examples of aQute.lib.osgi.FileResource

  */
private void doMavenMetadata(Jar jar) throws IOException {
  String path = "META-INF/maven/" + project.getGroupId() + "/"
    + project.getArtifactId();
  File pomFile = new File(baseDir, "pom.xml");
  jar.putResource(path + "/pom.xml", new FileResource(pomFile));
  Properties p = new Properties();
  p.put("version", project.getVersion());
  p.put("groupId", project.getGroupId());
  p.put("artifactId", project.getArtifactId());
View Full Code Here

Examples of ch.entwine.weblounge.common.content.file.FileResource

   * @throws IllegalStateException
   */
  @Test
  public void testWithoutModification() throws ContentRepositoryException,
  IllegalStateException, IOException {
    FileResource fileResource = new FileResourceImpl(documentURI);

    SearchQuery q = new SearchQueryImpl(site);
    SearchResult result = repository.find(q);
    assertEquals(1, result.getDocumentCount());

View Full Code Here

Examples of cn.dreampie.common.web.resource.FileResource

   *
   * @param input a File to use as input.
   * @throws java.io.IOException read file exception
   */
  public CoffeeSource(File input) throws IOException {
    this(new FileResource(input));
  }
View Full Code Here

Examples of cn.dreampie.resource.FileResource

   *
   * @param input a File to use as input.
   * @throws java.io.IOException read file exception
   */
  public CoffeeSource(File input) throws IOException {
    this(new FileResource(input));
  }
View Full Code Here

Examples of com.alibaba.citrus.service.resource.support.FileResource

        } catch (IOException e) {
            log.warn("Could not save to file: " + fileToSave.getAbsolutePath(), e);
            return resource;
        }

        Resource transformed = new FileResource(fileToSave);

        if (log.isDebugEnabled()) {
            log.debug("Transformed resource is saved to " + fileToSave.getAbsolutePath());
        }
View Full Code Here

Examples of com.carma.swagger.doclet.sample.resources.FileResource

    environment.addResource(new ResponseResource());
    environment.addResource(new ModelResource());
    environment.addResource(new ParentResource());
    environment.addResource(new SubResource());
    environment.addResource(new PersonResource());
    environment.addResource(new FileResource());
  }
View Full Code Here

Examples of com.foreach.cuke.core.util.FileResource

      }
    }
  }

  private String determineFile( String fileToUpload ) {
    FileResource resource = fileResourceResolver.resolve( fileToUpload );
    return resource.getAbsolutePath();
  }
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.FileResource

      for (Entry<String, File> entry :
          ResourceGeneratorUtilImpl.getGeneratedFilesByName().entrySet()) {
        String resourcePath = entry.getKey();
        File resourceFile = entry.getValue();
        compilerContext.getLibraryWriter()
            .addBuildResource(new FileResource(null, resourcePath, resourceFile));
      }
    }
View Full Code Here

Examples of com.intel.mtwilson.io.FileResource

     *
     * @param file location of the existing or new keystore
     * @param password to open the existing keystore or protect a new keystore
     */
    public SimpleKeystore(File file, String password) throws KeyManagementException {
        this(new FileResource(file), password);
    }
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.