Examples of toURL()


Examples of java.io.File.toURL()

         else {
            // Use given path
            File f = new File(this.directoryName, this.scriptFileName);
            if (f.exists() && f.isFile() && f.canRead()) {
               try {
                  this.scriptFileUrl = f.toURL();
               } catch (MalformedURLException e) {
                  log.warning(e.toString());
               }
            }
         }
View Full Code Here

Examples of java.io.File.toURL()

                        }
                        if (candidate.exists())
                        {
                            try
                            {
                                moduleUrl = candidate.toURL().toExternalForm();
                            }
                            catch (final MalformedURLException exception)
                            {
                                // ignore
                            }
View Full Code Here

Examples of java.io.File.toURL()

            System.exit(1);
        }
       
        try {
            File wsdl = new File(args[0]);
            SOAPService service = new SOAPService(wsdl.toURL(), SERVICE_NAME);
            Greeter port = service.getSoapPort();

            implicitPropagation(port);

            explicitPropagation(port);
View Full Code Here

Examples of java.io.File.toURL()

        classDir.mkdirs();
       
        RouteTypeUtil.invokeWSDLToJava(wsdlUrl, opDir, classDir);

        URLClassLoader loader =
            URLClassLoader.newInstance(new URL[] {classDir.toURL()},
                                       getClass().getClassLoader());
        return loader;
    }

    private void testRouterSourceAndDestination(Definition def,
View Full Code Here

Examples of java.io.File.toURL()

            System.exit(0);
        }

        File wsdl = new File(args[0]);

        AddNumbersService service = new AddNumbersService(wsdl.toURL(), serviceName);
        AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);
       
        try {
            int number1 = 10;
            int number2 = 20;
View Full Code Here

Examples of java.io.File.toURL()

     */
    public FileObject getBaseTestFolder(final FileSystemManager manager)
        throws Exception
    {
        final File baseDir = AbstractVfsTestCase.getTestDirectoryFile();
        final URL url = baseDir.toURL();
        return manager.resolveFile(url.toExternalForm());
    }
}
View Full Code Here

Examples of java.io.File.toURL()

     */
    public FileObject getBaseTestFolder(final FileSystemManager manager)
        throws Exception
    {
        final File baseDir = AbstractVfsTestCase.getTestDirectoryFile();
        final URL url = baseDir.toURL();
        return manager.resolveFile(url.toExternalForm());
    }
}
View Full Code Here

Examples of java.io.File.toURL()

                final File file = new File((String)classpathFiles.get(ctr));
                if (this.getLog().isDebugEnabled())
                {
                    getLog().debug("adding to classpath '" + file + "'");
                }
                classpathUrls[ctr] = file.toURL();
            }

            final URLClassLoader loader =
                new ConfigurationClassLoader(classpathUrls,
                    Thread.currentThread().getContextClassLoader());
View Full Code Here

Examples of java.io.File.toURL()

        classDir.mkdirs();
       
        rm.testInvokeWSDLToJava(opDir, classDir);
       
        URLClassLoader loader =
            URLClassLoader.newInstance(new URL[] {classDir.toURL()},
                                       null);
       
        Class<?> clz = loader.loadClass("org.objectweb.header_test.TestHeader");
        assertNotNull("TestHeader class instance should be present", clz);
       
View Full Code Here

Examples of java.io.File.toURL()

           
            File metaInfDir = new File(componentContext.getInstallRoot(), "META-INF");
            File celtixConfig = new File(metaInfDir, CELTIX_CONFIG_FILE);
           
            if (celtixConfig.exists()) {
                System.setProperty("celtix.config.file", celtixConfig.toURL().toString());
                LOG.fine("set Celtix configuration to: " + System.getProperty("celtix.config.file"));
            } else {
                LOG.severe("could not find Celtix configuration in " + metaInfDir);
            }
           
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.