Examples of URLReference


Examples of org.ops4j.pax.exam.options.UrlReference

     */
    public void copyBootClasspathLibraries() throws IOException {
        BootClasspathLibraryOption[] bootClasspathLibraryOptions = subsystem
            .getOptions(BootClasspathLibraryOption.class);
        for (BootClasspathLibraryOption bootClasspathLibraryOption : bootClasspathLibraryOptions) {
            UrlReference libraryUrl = bootClasspathLibraryOption.getLibraryUrl();
            FileUtils.copyURLToFile(
                new URL(libraryUrl.getURL()),
                createFileNameWithRandomPrefixFromUrlAtTarget(libraryUrl.getURL(), new File(
                    karafHome + "/lib"), new String[] { "jar" }));
        }
    }
View Full Code Here

Examples of org.ops4j.pax.exam.options.UrlReference

    @Test
    public void withBootClasspathReference() throws BundleException, IOException,
        InterruptedException, NotBoundException, URISyntaxException {

        File file = new File("target/bundles/metainf-services.jar");
        UrlReference ref = CoreOptions.url("reference:file:" + file.getAbsolutePath());
        startWithBootClasspath(ref);
    }
View Full Code Here

Examples of org.ops4j.pax.exam.options.UrlReference

    @Test
    public void withBootClasspathFile() throws BundleException, IOException,
        InterruptedException, NotBoundException, URISyntaxException {

        File file = new File("target/bundles/metainf-services.jar");
        UrlReference url = CoreOptions.url("file:" + file.getAbsolutePath());
        startWithBootClasspath(url);
    }
View Full Code Here

Examples of org.ops4j.pax.exam.options.UrlReference

            BootClasspathLibraryOption[] bootClasspathLibraryOptions = system
                .getOptions(BootClasspathLibraryOption.class);

            if (bootClasspathLibraryOptions != null && bootClasspathLibraryOptions.length > 0) {
                for (BootClasspathLibraryOption bootClasspathLibraryOption : bootClasspathLibraryOptions) {
                    UrlReference libraryUrl = bootClasspathLibraryOption.getLibraryUrl();
                    String library = localize(libraryUrl.getURL());

                    if (bootClasspathLibraryOption.isAfterFramework()) {
                        afterFrameworkClasspath.add(library);
                    }
                    else {
View Full Code Here

Examples of org.rometools.feed.module.mediarss.types.UrlReference

                Element content = (Element) contents.get(i);
                MediaContent mc = null;
               
                if (content.getAttributeValue("url") != null) {
                    try{
                        mc = new MediaContent(new UrlReference(
                                new URI(content.getAttributeValue("url"))));
                        mc.setPlayer(parsePlayer(content));
                    } catch (Exception ex) {
                        LOG.log(Level.WARNING, "Exception parsing content tag.", ex);
                    }
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.