Package de.grey.ownsync.config

Examples of de.grey.ownsync.config.OwnSyncConfiguration


        File folderOfOriginal = new File(rootfolder, dataFolderName+"/"+originalDataFolderName+"/"+folderName+"/");
        File folderOfCopy = new File(rootfolder, dataFolderName+"/"+testDataFolderName+"/"+folderName+"/");
        File folderOfResult = new File(rootfolder, dataFolderName+"/"+expectedDataFolderName+"/"+folderName+"/");
       
        cloneFilesystem(folderOfOriginal, folderOfCopy);
        OwnSyncConfiguration config = createOwnSyncConfiguration(folderOfCopy);
        startOwnSync(config);
       
        // Validate
        compareFilesystems(folderOfResult, folderOfCopy);
    }
View Full Code Here


            props.put(OwnSyncConfiguration.SyncFolderStateB, folder.getAbsolutePath()+"/"+oldStateBName);
            props.put(OwnSyncConfiguration.WastbasketFolderB, folder.getAbsolutePath()+"/"+trashboxBName);
            props.put(OwnSyncConfiguration.KeepLastFileVersionB, "true");
            props.put(OwnSyncConfiguration.SyncExclusionRegExpPatternsB, "");
           
            return new OwnSyncConfiguration(props);
        }
        catch (OwnSyncException e)
        {
            e.printStackTrace();
            fail();
View Full Code Here

        File folderOfOriginal = new File(rootfolder, dataFolderName+"/"+originalDataFolderName+"/"+folderName+"/");
        File folderOfCopy = new File(rootfolder, dataFolderName+"/"+testDataFolderName+"/"+folderName+"/");
        File folderOfResult = new File(rootfolder, dataFolderName+"/"+expectedDataFolderName+"/"+folderName+"/");
       
        cloneFilesystem(folderOfOriginal, folderOfCopy);
        OwnSyncConfiguration config = createOwnSyncConfiguration(folderOfCopy);
        startOwnSync(config);
       
        // Validate
        compareFilesystems(folderOfResult, folderOfCopy);
    }
View Full Code Here

            props.put(OwnSyncConfiguration.SyncFolderStateB, folder.getAbsolutePath()+"/"+oldStateBName);
            props.put(OwnSyncConfiguration.WastbasketFolderB, folder.getAbsolutePath()+"/"+trashboxBName);
            props.put(OwnSyncConfiguration.KeepLastFileVersionB, "true");
            props.put(OwnSyncConfiguration.SyncExclusionRegExpPatternsB, "");
           
            return new OwnSyncConfiguration(props);
        }
        catch (OwnSyncException e)
        {
            e.printStackTrace();
            fail();
View Full Code Here

            configFiles = new String[]{OwnSyncConfiguration.SAMPLE_SYNC_CONFIGURATION_FILE};
        }
       
        try
        {
            OwnSyncConfiguration configuration;
            OwnSyncStarter starter;
            for(int i = 0; i < configFiles.length; i++)
            {
                System.out.println("\n\nUsing configuration:\n\t\t"+configFiles[i]);
                configuration = new OwnSyncConfiguration(configFiles[i]);
                starter = new OwnSyncStarter(configuration);
                starter.sync();
            }
        }
        catch (Exception e)
View Full Code Here

            configFile = OwnSyncConfiguration.SAMPLE_SYNC_CONFIGURATION_FILE;
        }
       
        try
        {
            OwnSyncConfiguration configuration = new OwnSyncConfiguration(configFile);
            OwnSyncStarter starter = new OwnSyncStarter(configuration);
            starter.sync();
        }
        catch (Exception e)
        {
View Full Code Here

TOP

Related Classes of de.grey.ownsync.config.OwnSyncConfiguration

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.