Package com.volantis.mcs.migrate.impl.set.file

Examples of com.volantis.mcs.migrate.impl.set.file.FileResourceSetMigrator


    private void doTestFileResource(String resourcePath, String[] paths) throws Exception {
        File file = getResourceAsFile(resourcePath);
        File outputDir = File.createTempFile("testFRSM", "");
        outputDir.delete();
        outputDir.deleteOnExit();
        FileResourceSetMigrator frsm = new FileResourceSetMigrator(file, outputDir,
                                                                   new SimpleCLINotificationReporter());
        PathIdentifyingResourceMigrator migrator =
                new PathIdentifyingResourceMigrator(paths);
        frsm.migrate(migrator);
        if (migrator.failed()) {
            fail(migrator.getFailures().toString());
        }
    }
View Full Code Here


    ConfigFactory configFactory = ConfigFactory.getDefaultInstance();

    // Javadoc inherited
    public ResourceSetMigrator createFileResourceSetMigrator(
            File input, File output, NotificationReporter reporter) {
        return new FileResourceSetMigrator(input, output, reporter);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.migrate.impl.set.file.FileResourceSetMigrator

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.