Package org.syncany.operations.status

Examples of org.syncany.operations.status.StatusOperationOptions


  public void testVeryRecentFileModificationWithoutSizeOrModifiedDateChange() throws Exception {
    // Setup
    Config config = TestConfigUtil.createTestLocalConfig();   
    File testFile = TestFileUtil.createRandomFileInDirectory(config.getLocalDir(), 40);
   
    StatusOperationOptions statusOptions = new StatusOperationOptions();
    statusOptions.setForceChecksum(true);

    UpOperationOptions syncUpOptions = new UpOperationOptions();
    syncUpOptions.setStatusOptions(statusOptions);     
   
    // Perform 'up' and immediately change test file
View Full Code Here


   
    this.setConfig(testConfig);
 
 
  public UpOperationResult upWithForceChecksum() throws Exception {
    StatusOperationOptions statusOptions = new StatusOperationOptions();
    statusOptions.setForceChecksum(true);
   
    UpOperationOptions upOptions = new UpOperationOptions();
    upOptions.setStatusOptions(statusOptions);
   
    return up(upOptions);
View Full Code Here

    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
    TestClient clientC = new TestClient("C", testConnection);
    TestClient clientD = new TestClient("D", testConnection);
 
    StatusOperationOptions statusOptions = new StatusOperationOptions();
    statusOptions.setForceChecksum(true);
   
    UpOperationOptions upOptionsForceEnabled = new UpOperationOptions();
    upOptionsForceEnabled.setStatusOptions(statusOptions);
    upOptionsForceEnabled.setForceUploadEnabled(true);
   
View Full Code Here

    return true;
  }
 
  @Override
  public int execute(String[] operationArgs) throws Exception {
    StatusOperationOptions operationOptions = parseOptions(operationArgs);
    StatusOperationResult operationResult = client.status(operationOptions);
   
    printResults(operationResult);
   
    return 0;
View Full Code Here

    return 0;
  }

  @Override
  public StatusOperationOptions parseOptions(String[] operationArgs) throws Exception {
    StatusOperationOptions operationOptions = new StatusOperationOptions();

    OptionParser parser = new OptionParser()
    parser.allowsUnrecognizedOptions();
   
    OptionSpec<Void> optionForceChecksum = parser.acceptsAll(asList("f", "force-checksum"));
   
    OptionSet options = parser.parse(operationArgs)
   
    // --force-checksum
    operationOptions.setForceChecksum(options.has(optionForceChecksum));
   
    return operationOptions;
 
View Full Code Here

TOP

Related Classes of org.syncany.operations.status.StatusOperationOptions

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.