From e925c207ad6006c1af9a3ef5f30da126ab6bf616 Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Wed, 20 Jan 2016 22:22:05 +0100 Subject: [PATCH 1/3] refactor fsihelper --- src/app/FAKE/Program.fs | 4 +- src/app/FakeLib/FSIHelper.fs | 443 ++++++++++++----------- src/test/Test.FAKECore/FSIHelperSpecs.cs | 2 +- 3 files changed, 230 insertions(+), 219 deletions(-) diff --git a/src/app/FAKE/Program.fs b/src/app/FAKE/Program.fs index 6ef5223f498..ba80947820d 100644 --- a/src/app/FAKE/Program.fs +++ b/src/app/FAKE/Program.fs @@ -119,7 +119,7 @@ try //TODO if printDetails then printEnvironment cmdArgs args let useCache = not (fakeArgs.Contains <@ Cli.NoCache @>) - if not (runBuildScriptWithFsiArgsAt printDetails fsiArgs envVars useCache true) then Environment.ExitCode <- 1 + if not (runBuildScriptWithFsiArgsAt printDetails fsiArgs envVars useCache) then Environment.ExitCode <- 1 else if printDetails then log "Ready." () @@ -144,7 +144,7 @@ try let printDetails = containsParam "details" cmdArgs if printDetails then printEnvironment cmdArgs args - if not (runBuildScript printDetails buildScriptArg fsiArgs args true true) then Environment.ExitCode <- 1 + if not (runBuildScript printDetails buildScriptArg fsiArgs args true) then Environment.ExitCode <- 1 else if printDetails then log "Ready." | Some handler -> handler.Interact() diff --git a/src/app/FakeLib/FSIHelper.fs b/src/app/FakeLib/FSIHelper.fs index 507a044f5b3..e47e61fb6f8 100644 --- a/src/app/FakeLib/FSIHelper.fs +++ b/src/app/FakeLib/FSIHelper.fs @@ -199,10 +199,6 @@ let executeFSIWithScriptArgsAndReturnMessages script (scriptArgs: string[]) = open Microsoft.FSharp.Compiler.Interactive.Shell open System.Reflection -type private AssemblySource = -| GAC -| Disk - let hashRegex = Text.RegularExpressions.Regex("(?