Skip to content

Commit 9655e7e

Browse files
committed
Fix cmd line version
1 parent d751ad9 commit 9655e7e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • remotesync-api/src/main/java/org/piwigo/remotesync/api

remotesync-api/src/main/java/org/piwigo/remotesync/api/Main.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
* are made available under the terms of the GNU Public License v2.0
55
* which accompanies this distribution, and is available at
66
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
7-
*
7+
*
88
* Contributors:
99
* Matthieu Helleboid - initial API and implementation
1010
******************************************************************************/
1111
package org.piwigo.remotesync.api;
1212

1313
import org.piwigo.remotesync.api.AbstractMain;
14+
import org.piwigo.remotesync.api.sync.LoginJob;
15+
import org.piwigo.remotesync.api.sync.SyncJob;
1416
import org.slf4j.Logger;
1517
import org.slf4j.LoggerFactory;
1618

@@ -20,9 +22,12 @@ public class Main extends AbstractMain {
2022
public static void main(String[] args) {
2123
new Main().run(args);
2224
}
23-
25+
2426
protected void start() {
2527
logger.debug("will start batch Remotesync");
28+
LoginJob preJob = new LoginJob();
29+
preJob.execute();
30+
new SyncJob(preJob).execute();
2631
}
2732

2833
// // TODO implement dry run

0 commit comments

Comments
 (0)