[mono/monodevelop] [3 commits] 89e88cf3: [Core] Add ENABLE_RAYGUN constant.
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141c71a2fcf-1dfb6f41-bcaa-467f-a883-c41dfc0bde49-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/f5ddd6d1ea0a...3900c9345923
Commit: 89e88cf39a676a20d290f2858be59f391cafa788
Author: Cody Russell <[email protected]> (bratsche)
Date: 2013-10-17 15:36:43 GMT
URL: https://github.com/mono/monodevelop/commit/89e88cf39a676a20d290f2858be59f391cafa788
[Core] Add ENABLE_RAYGUN constant.
Changed paths:
M main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj
M main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj
===================================================================
@@ -12,6 +12,9 @@
<BuildInfo>..\..\..\build\bin\buildinfo</BuildInfo>
<VcRevision>..\..\..\vcrevision</VcRevision>
</PropertyGroup>
+ <PropertyGroup Condition="'$(BUILD_REVISION)' != ''">
+ <DefineConstants>$(DefineConstants);ENABLE_RAYGUN</DefineConstants>
+ </PropertyGroup>
<Choose>
<When Condition=" Exists('c:\Program Files\Git\bin\git.exe') ">
<PropertyGroup>
Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
===================================================================
@@ -100,7 +100,7 @@ static LoggingService ()
timestamp = DateTime.Now;
-#if !DEBUG
+#if ENABLE_RAYGUN
string raygunKey = BrandingService.GetString ("RaygunApiKey");
if (raygunKey != null) {
raygunClient = new RaygunClient (raygunKey);
Commit: 52c1389ef569c24de525e8328724bc3521b1e1c5
Author: Cody Russell <[email protected]> (bratsche)
Date: 2013-10-17 15:41:26 GMT
URL: https://github.com/mono/monodevelop/commit/52c1389ef569c24de525e8328724bc3521b1e1c5
Add environment variables section to README.
Changed paths:
M README
Modified: README
===================================================================
@@ -77,7 +77,14 @@ Dependencies
Gtk# >= 2.12.8
monodoc >= 1.0
mono-addins >= 0.6
-
+
+Special Environment Variables
+-----------------------------
+
+BUILD_REVISION
+ If this environment variable exists we assume we are compiling inside wrench
+
+
References
----------
Commit: 3900c9345923c92ff557f58a05f9e3a9a4565822
Author: Cody Russell <[email protected]> (bratsche)
Date: 2013-10-17 15:44:16 GMT
URL: https://github.com/mono/monodevelop/commit/3900c9345923c92ff557f58a05f9e3a9a4565822
Merge pull request #417 from mono/enable-raygun
[Core] Add ENABLE_RAYGUN constant.
Changed paths:
M README
M main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj
M main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
Modified: README
===================================================================
@@ -77,7 +77,14 @@ Dependencies
Gtk# >= 2.12.8
monodoc >= 1.0
mono-addins >= 0.6
-
+
+Special Environment Variables
+-----------------------------
+
+BUILD_REVISION
+ If this environment variable exists we assume we are compiling inside wrench
+
+
References
----------
Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj
===================================================================
@@ -12,6 +12,9 @@
<BuildInfo>..\..\..\build\bin\buildinfo</BuildInfo>
<VcRevision>..\..\..\vcrevision</VcRevision>
</PropertyGroup>
+ <PropertyGroup Condition="'$(BUILD_REVISION)' != ''">
+ <DefineConstants>$(DefineConstants);ENABLE_RAYGUN</DefineConstants>
+ </PropertyGroup>
<Choose>
<When Condition=" Exists('c:\Program Files\Git\bin\git.exe') ">
<PropertyGroup>
Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
===================================================================
@@ -100,7 +100,7 @@ static LoggingService ()
timestamp = DateTime.Now;
-#if !DEBUG
+#if ENABLE_RAYGUN
string raygunKey = BrandingService.GetString ("RaygunApiKey");
if (raygunKey != null) {
raygunClient = new RaygunClient (raygunKey);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches