示例#1
0
		public override void SyncOut (XcodeSyncContext context)
		{
			var target = context.ProjectDir.Combine (targetRelative);
			var dir = target.ParentDirectory;
			if (!Directory.Exists (dir))
				Directory.CreateDirectory (dir);
			if (File.Exists (target))
				File.Delete (target);
			File.Copy (source, target);
			context.UpdateSyncTime (targetRelative);
		}
		public override void SyncOut (XcodeSyncContext context)
		{
			FilePath target = context.ProjectDir.Combine (targetRelative);
			var dir = target.ParentDirectory;
			if (!Directory.Exists (dir))
				Directory.CreateDirectory (dir);
			if (File.Exists (target))
				File.Delete (target);
			var result = Mono.Unix.Native.Syscall.link (source, target);
			Mono.Unix.UnixMarshal.ThrowExceptionForLastErrorIf (result);
			context.UpdateSyncTime (targetRelative);
		}
示例#3
0
        public override void SyncOut(XcodeSyncContext context)
        {
            var target = context.ProjectDir.Combine(targetRelative);
            var dir    = target.ParentDirectory;

            if (!Directory.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }
            if (File.Exists(target))
            {
                File.Delete(target);
            }
            File.Copy(source, target);
            context.UpdateSyncTime(targetRelative);
        }
        public override void SyncOut(XcodeSyncContext context)
        {
            FilePath target = context.ProjectDir.Combine(targetRelative);
            var      dir    = target.ParentDirectory;

            if (!Directory.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }
            if (File.Exists(target))
            {
                File.Delete(target);
            }
            try {
                var result = Mono.Unix.Native.Syscall.link(source, target);
                Mono.Unix.UnixMarshal.ThrowExceptionForLastErrorIf(result);
            } catch {
                File.Copy(source, target);
            }
            context.UpdateSyncTime(targetRelative);
        }
示例#5
0
		public override void SyncOut (XcodeSyncContext context)
		{
			Type.GenerateObjcType (context.ProjectDir);
			context.UpdateSyncTime (Type.ObjCName + ".h");
			context.UpdateSyncTime (Type.ObjCName + ".m");
		}
示例#6
0
 public override void SyncOut(XcodeSyncContext context)
 {
     Type.GenerateObjcType(context.ProjectDir, Frameworks);
     context.UpdateSyncTime(Type.ObjCName + ".h");
     context.UpdateSyncTime(Type.ObjCName + ".m");
 }