File tree Expand file tree Collapse file tree
remotesync-api/src/main/java/org/piwigo/remotesync/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ******************************************************************************/
1111package org .piwigo .remotesync .api ;
1212
1313import org .piwigo .remotesync .api .AbstractMain ;
14+ import org .piwigo .remotesync .api .sync .LoginJob ;
15+ import org .piwigo .remotesync .api .sync .SyncJob ;
1416import org .slf4j .Logger ;
1517import 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
You can’t perform that action at this time.
0 commit comments