Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
merge daemon in lib
Browse files Browse the repository at this point in the history
  • Loading branch information
vwiencek committed Sep 1, 2014
1 parent b39c48d commit f80342e
Show file tree
Hide file tree
Showing 52 changed files with 15 additions and 50 deletions.
4 changes: 0 additions & 4 deletions build.gradle
Expand Up @@ -44,12 +44,8 @@ dependencies {
compile project(":syncany-lib")
compile project(":syncany-cli")
compile project(":syncany-util")
compile project(":syncany-daemon")
compile project(":syncany-messages")

testCompile project(path: ":syncany-lib", configuration: "tests")
testCompile project(path: ":syncany-cli", configuration: "tests")
testCompile project(path: ":syncany-util", configuration: "tests")
testCompile project(path: ":syncany-daemon", configuration: "tests")
testCompile project(path: ":syncany-messages", configuration: "tests")
}
4 changes: 1 addition & 3 deletions settings.gradle
@@ -1,5 +1,3 @@
include 'syncany-lib'
include 'syncany-cli'
include 'syncany-util'
include 'syncany-daemon'
include 'syncany-messages'
include 'syncany-util'
1 change: 0 additions & 1 deletion syncany-cli/build.gradle
Expand Up @@ -6,7 +6,6 @@ import java.io.File;
dependencies {
compile project(":syncany-lib")
compile project(":syncany-util")
compile project(":syncany-messages")
compile "net.sf.jopt-simple:jopt-simple:4.5"
compile "org.apache.httpcomponents:httpclient:4.3.4"

Expand Down
18 changes: 0 additions & 18 deletions syncany-daemon/build.gradle

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions syncany-lib/.gitignore
@@ -0,0 +1,2 @@
/bin/
/bin/
7 changes: 6 additions & 1 deletion syncany-lib/build.gradle
Expand Up @@ -11,6 +11,7 @@ repositories {

dependencies {
compile project(':syncany-util')
// compile project(':syncany-messages')

compile "commons-io:commons-io:2.4"
compile "org.bouncycastle:bcprov-jdk15on:1.51"
Expand All @@ -20,7 +21,11 @@ dependencies {
compile "commons-codec:commons-codec:1.8"
compile "org.hsqldb:hsqldb:2.3.1"
compile "com.github.zafarkhaja:java-semver:0.7.2"


compile "io.undertow:undertow-servlet:1.0.15.Final"
compile "io.undertow:undertow-websockets-jsr:1.0.15.Final"
compile "commons-io:commons-io:2.4"

testCompile project(path: ':syncany-util', configuration: 'tests')
testCompile "junit:junit:4.9"
}
@@ -1,5 +1,5 @@
/*
* Syncany, www.syncany.org
* Syncany, www.syncany.org
* Copyright (C) 2011-2014 Philipp C. Heckel <philipp.heckel@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -31,8 +31,6 @@

import org.simpleframework.xml.core.Persister;
import org.syncany.Client;
import org.syncany.cli.Command;
import org.syncany.cli.CommandFactory;
import org.syncany.config.Config;
import org.syncany.config.ConfigException;
import org.syncany.config.to.PortTO;
Expand Down Expand Up @@ -243,19 +241,19 @@ private void handleCliRequestSyncRunning(CliRequest cliRequest) {

private void handleCliRequestNoSyncRunning(CliRequest cliRequest) {
try {
Command command = CommandFactory.getInstance(cliRequest.getCommand());
//Command command = CommandFactory.getInstance(cliRequest.getCommand());
String[] commandArgs = cliRequest.getCommandArgs().toArray(new String[0]);

ByteArrayOutputStream cliOutputStream = new ByteArrayOutputStream();

Client client = new Client();
client.setConfig(config);

command.setOut(new PrintStream(cliOutputStream));
command.setClient(client);
command.setLocalDir(config.getLocalDir());
//command.setOut(new PrintStream(cliOutputStream));
//command.setClient(client);
//command.setLocalDir(config.getLocalDir());

command.execute(commandArgs);
//command.execute(commandArgs);

String cliOutput = cliOutputStream.toString();

Expand Down
7 changes: 0 additions & 7 deletions syncany-messages/build.gradle

This file was deleted.

0 comments on commit f80342e

Please sign in to comment.