You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/06/24 19:47:17 UTC

[4/4] lucenenet git commit: Modified build script to not use a BOM on build.bat file when generated

Modified build script to not use a BOM on build.bat file when generated


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/46613e4c
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/46613e4c
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/46613e4c

Branch: refs/heads/master
Commit: 46613e4c35f315af341f97a775d962e11041ea49
Parents: 2f5d89b
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Jun 25 02:19:35 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Jun 25 02:28:27 2017 +0700

----------------------------------------------------------------------
 build.bat       | 2 +-
 build/build.ps1 | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/46613e4c/build.bat
----------------------------------------------------------------------
diff --git a/build.bat b/build.bat
index ad944aa..c4375e4 100644
--- a/build.bat
+++ b/build.bat
@@ -1,4 +1,4 @@
-@echo off
+@echo off
 GOTO endcommentblock
 :: -----------------------------------------------------------------------------------
 ::

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/46613e4c/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 92e338a..efdac20 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -421,7 +421,9 @@ endlocal
 	Ensure-Directory-Exists $dir
 
 	Write-Host "Generating build.bat file: $file"
-	Out-File -filePath $file -encoding UTF8 -inputObject $buildBat -Force
+	#Out-File -filePath $file -encoding UTF8 -inputObject $buildBat -Force
+	$Utf8EncodingNoBom = New-Object System.Text.UTF8Encoding $false
+	[System.IO.File]::WriteAllLines($file, $buildBat, $Utf8EncodingNoBom)
 }
 
 function Build-Assemblies([string[]]$projects) {