@@ -8,6 +8,8 @@ import * as path from "path";
8
8
import * as temp from "temp" ;
9
9
import * as minimatch from "minimatch" ;
10
10
import * as constants from "../mobile/constants" ;
11
+ import * as util from "util" ;
12
+
11
13
let gaze = require ( "gaze" ) ;
12
14
13
15
class LiveSyncServiceBase implements ILiveSyncServiceBase {
@@ -246,7 +248,8 @@ class LiveSyncServiceBase implements ILiveSyncServiceBase {
246
248
247
249
private transferFiles ( deviceAppData : Mobile . IDeviceAppData , localToDevicePaths : Mobile . ILocalToDevicePathData [ ] , projectFilesPath : string , isFullSync : boolean ) : IFuture < void > {
248
250
return ( ( ) => {
249
- this . $logger . info ( "Transferring project files..." ) ;
251
+ this . logFilesSyncInformation ( localToDevicePaths , "Transferring %s." ) ;
252
+
250
253
let canTransferDirectory = isFullSync && ( this . $devicesService . isAndroidDevice ( deviceAppData . device ) || this . $devicesService . isiOSSimulator ( deviceAppData . device ) ) ;
251
254
if ( canTransferDirectory ) {
252
255
let tempDir = temp . mkdirSync ( "tempDir" ) ;
@@ -256,10 +259,17 @@ class LiveSyncServiceBase implements ILiveSyncServiceBase {
256
259
} else {
257
260
deviceAppData . device . fileSystem . transferFiles ( deviceAppData , localToDevicePaths ) . wait ( ) ;
258
261
}
259
- this . $logger . info ( "Successfully transferred all project files." ) ;
262
+
263
+ this . logFilesSyncInformation ( localToDevicePaths , "Successfully transferred %s." ) ;
260
264
} ) . future < void > ( ) ( ) ;
261
265
}
262
266
267
+ private logFilesSyncInformation ( localToDevicePaths : Mobile . ILocalToDevicePathData [ ] , message : string ) : void {
268
+ _ . each ( localToDevicePaths , ( file : Mobile . ILocalToDevicePathData ) => {
269
+ this . $logger . info ( util . format ( message , path . basename ( file . getLocalPath ( ) ) . yellow ) ) ;
270
+ } ) ;
271
+ }
272
+
263
273
private resolvePlatformLiveSyncService ( platform : string , device : Mobile . IDevice ) : IPlatformLiveSyncService {
264
274
return this . $injector . resolve ( this . $liveSyncProvider . platformSpecificLiveSyncServices [ platform . toLowerCase ( ) ] , { _device : device } ) ;
265
275
}
0 commit comments