diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2010-02-18 03:12:10 +0300 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2010-02-18 03:12:10 +0300 |
commit | 736fe3c53e3c972de7d500fbbbf6afe778aabb32 (patch) | |
tree | 9df20989cfbb492a41c0bf3397ea72c65759798d /extras/MonoDevelop.MeeGo/MeeGoUtility.cs | |
parent | 429b2019b8d871e42b992b181a9fe7a8cd269511 (diff) |
* .:
* MeeGoUtility.cs:
* MeeGoProject.cs:
* MonoDevelop.MeeGo.sln:
* MeeGoProjectBinding.cs:
* MeeGoDebuggerSession.cs:
* MonoDevelop.MeeGo.csproj:
* MeeGoExecutionHandler.cs:
* MeeGoExecutionCommand.cs:
* MeeGoSoftDebuggerEngine.cs:
* MonoDevelop.MeeGo.addin.xml:
* MeeGoProjectConfiguration.cs: Stubbed out new MeeGo addin.
svn path=/trunk/monodevelop/; revision=151941
Diffstat (limited to 'extras/MonoDevelop.MeeGo/MeeGoUtility.cs')
-rw-r--r-- | extras/MonoDevelop.MeeGo/MeeGoUtility.cs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/extras/MonoDevelop.MeeGo/MeeGoUtility.cs b/extras/MonoDevelop.MeeGo/MeeGoUtility.cs new file mode 100644 index 0000000000..0b6d0c5a61 --- /dev/null +++ b/extras/MonoDevelop.MeeGo/MeeGoUtility.cs @@ -0,0 +1,62 @@ +// +// MeeGoUtility.cs +// +// Author: +// Michael Hutchinson <mhutchinson@novell.com> +// +// Copyright (c) 2010 Novell, Inc. (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; +using System.IO; +using MonoDevelop.Core.Execution; +using MonoDevelop.Core; + +namespace MonoDevelop.MeeGo +{ + static class MeeGoUtility + { + public static ProcessWrapper Upload (MeeGoDevice targetDevice, FilePath appExe) + { + throw new NotImplementedException (); + } + + public static bool NeedsUploading (MeeGoProjectConfiguration conf) + { + var markerFile = conf.OutputDirectory.Combine (".meego_last_uploaded"); + return File.Exists (conf.OutputAssembly) && (!File.Exists (markerFile) + || File.GetLastWriteTime (markerFile) < File.GetLastWriteTime (conf.OutputAssembly)); + } + + public static void TouchUploadMarker (MeeGoProjectConfiguration conf) + { + var markerFile = conf.OutputDirectory.Combine (".meego_last_uploaded"); + if (File.Exists (markerFile)) + File.SetLastWriteTime (markerFile, DateTime.Now); + else + File.WriteAllText (markerFile, "This file is used to determine when the app was last uploaded to a device"); + } + } + + public class MeeGoDevice + { + } +} + |