File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ ECHO SQLVersion: "deprecated"
1111ECHO SQLInstanceName: " %~4 "
1212ECHO DBName: " %~5 "
1313ECHO DBLogin: " %~6 "
14- SET DBLogin -E
15- IF " %~6 " != "-v" && "%~6"! = " " SET DBLogin %~6
14+ SET DBLogin = -E
15+ IF NOT " %~6 " == " -v" IF NOT " %~6 " == " " SET DBLogin = %~6
1616IF " %~7 " == " -v" ECHO Verbose ON ELSE ECHO Verbose OFF
17-
17+ ECHO Final Value DBLogin: " %DBLogin% "
1818
1919REM CALL "%~1\bin\ant" -buildfile Build\tSQLt.experiments.build.xml -Dmsbuild.path="%~2" -verbose || goto :error
2020REM goto :EOF
@@ -46,7 +46,7 @@ ECHO +-------------------------+
4646ECHO : Validating BUILD :
4747ECHO +-------------------------+
4848IF " %~7 " == " -v" @ ECHO ON
49- CALL " %~1 \bin\ant" -buildfile Build\tSQLt.validatebuild.xml -Ddb.server=%~4 -Ddb.name=%~5 -Ddb.login=" %DBLogin% " -Dsqlcmd.path=" \" %~3 \" " || goto :error
49+ CALL " %~1 \bin\ant" -buildfile Build\tSQLt.validatebuild.xml -Ddb.server=" %~4 " -Ddb.name=%~5 -Ddb.login=" %DBLogin% " -Dsqlcmd.path=" \" %~3 \" " || goto :error
5050@ ECHO OFF
5151
5252ECHO +-------------------------+
Original file line number Diff line number Diff line change 253253 <echo message =" +----> outputfile: ${execute.sql.outputfile}" />
254254 <echo message =" +----> executeas: ${execute.sql.executeas}" />
255255 <echo message =" +----> sqlconnect: ${execute.sql.sqlconnect}" />
256- <property name =" execute.sql.sqlcmd" value =" ${sqlcmd.path}\sqlcmd ${execute.sql.sqlconnect} -I -i " ${execute.sql.executeas}" ${execute.sql.filename} -v NewDbName=${db.name} DbName=${execute.sql.database} ExecuteStatement=" ${execute.sql.statement}" -V11" />
256+ <property name =" execute.sql.sqlcmd" value =" " ${sqlcmd.path}" \sqlcmd ${execute.sql.sqlconnect} -I -i " ${execute.sql.executeas}" ${execute.sql.filename} -v NewDbName=${db.name} DbName=${execute.sql.database} ExecuteStatement=" ${execute.sql.statement}" -V11" />
257257 <echo message =" ${execute.sql.sqlcmd}" />
258258 <condition property =" execute.sql.statement_or_file.output.tofile" >
259259 <not >
Original file line number Diff line number Diff line change 1111# Set some variables
1212#- SQLCMD_HOME
1313#- ANT_HOME
14- #- MSBUILD_HOME
14+ #- MSBUILD_HOME (make sure that your HOME environment variables consistently DO NOT end with a backslash "\")
1515# Go to SSMS and setup your External Tools
1616#- tSQLt local Dev_tSQLt (ANT)
1717#- $(SolutionDir)\Build\localBuild.bat
1818#- "%ANT_HOME%" "%MSBUILD_HOME%" "%SQLCMD_HOME%" <SERVERNAME eg Dev_tSQLt> tSQLt_dev -v
1919#- $(SolutionDir)
2020# Open the solution from the repo
21+
22+
23+ ADDITIONAL IRRITATING REQUIREMENTS BECAUSE OF SQL SERVER 2008 R2 and possibly 2012, but who's checking?
24+ - You must have .NET framework 3.5 SP1 installed (https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net35-sp1-web-installer)
You can’t perform that action at this time.
0 commit comments