::*******************************************************************************************************:: CommonBuild.bat - Gbtc:::: Copyright © 2013, Grid Protection Alliance. All Rights Reserved.:::: Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See:: the NOTICE file distributed with this work for additional information regarding copyright ownership.:: The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may:: not use this file except in compliance with the License. You may obtain a copy of the License at::::: http://www.opensource.org/licenses/eclipse-1.0.php:::: Unless agreed to in writing, the subject software distributed under the License is distributed on an:: "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the:: License for the specific language governing permissions and limitations.:::: Code Modification History::: -----------------------------------------------------------------------------------------------------:: 8/25/2014 - Gavin E. Holden:: Generated original version of source code.::::******************************************************************************************************* @echo off set show_help=0if [%1]==[] set show_help=1if "%1"=="/?" set show_help=1if %show_help%==1 (echo.echo Help File:echo Explain Parametersecho.echo /u = TFS User Nameecho /p = TFS Passwordecho /d = Build Deploy Location (required^)echo /o = Nuget Package Location (required^)echo /l = Loggerecho /f = Force Build (booleen^)echo /k = nuget.org API Key )set tfs_user_name=""set tfs_password=""set deploy=""set package=""set logger=""set api_key=""set %%y=""set item=""set set_user=0set set_pass=0set set_deploy=0set set_pkg=0set set_log=0set set_apiKey=0for %%y in (%*) do ( rem Set TFS User Name if !set_user!==1 ( set tfs_user_name=%%y set set_user=0 ) if %%y==/u ( set set_user=1 ) rem Set TFS Password if !set_pass!==1 ( set tfs_password=%%y set set_pass=0 ) if %%y==/p ( set set_pass=1 ) rem Set Build Deploy Folder if !set_deploy!==1 ( set deploy=%%y set set_deploy=0 ) if %%y==/d ( set set_deploy=1 ) rem Set Nuget Package Location if !set_pkg!==1 ( set package=%%y set set_pkg=0 ) if %%y==/o ( set set_pkg=1 ) rem Set Logger if !set_log!==1 ( set logger=%%y set set_log=0 ) if %%y==/l ( set set_log=1 ) rem Set NugetApiKey if !set_apiKey!==1 ( set api_key=%%y set set_apiKey=0 ) if %%y==/k ( set set_apiKey=1 ))
::*******************************************************************************************************
:: CommonBuild.bat - Gbtc
::
:: Copyright © 2013, Grid Protection Alliance. All Rights Reserved.
::
:: Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
:: the NOTICE file distributed with this work for additional information regarding copyright ownership.
:: The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may
:: not use this file except in compliance with the License. You may obtain a copy of the License at:
::
:: http://www.opensource.org/licenses/eclipse-1.0.php
::
:: Unless agreed to in writing, the subject software distributed under the License is distributed on an
:: "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
:: License for the specific language governing permissions and limitations.
::
:: Code Modification History:
:: -----------------------------------------------------------------------------------------------------
:: 8/25/2014 - Gavin E. Holden
:: Generated original version of source code.
::
::*******************************************************************************************************
@echo off
set show_help=0
if [%1]==[] set show_help=1
if "%1"=="/?" set show_help=1
if %show_help%==1 (
echo.
echo Help File:
echo Explain Parameters
echo.
echo /u = TFS User Name
echo /p = TFS Password
echo /d = Build Deploy Location (required^)
echo /o = Nuget Package Location (required^)
echo /l = Logger
echo /f = Force Build (booleen^)
echo /k = nuget.org API Key
)
set tfs_user_name=""
set tfs_password=""
set deploy=""
set package=""
set logger=""
set api_key=""
set %%y=""
set item=""
set set_user=0
set set_pass=0
set set_deploy=0
set set_pkg=0
set set_log=0
set set_apiKey=0
for %%y in (%*) do (
rem Set TFS User Name
if !set_user!==1 (
set tfs_user_name=%%y
set set_user=0
)
if %%y==/u (
set set_user=1
)
rem Set TFS Password
if !set_pass!==1 (
set tfs_password=%%y
set set_pass=0
)
if %%y==/p (
set set_pass=1
)
rem Set Build Deploy Folder
if !set_deploy!==1 (
set deploy=%%y
set set_deploy=0
)
if %%y==/d (
set set_deploy=1
)
rem Set Nuget Package Location
if !set_pkg!==1 (
set package=%%y
set set_pkg=0
)
if %%y==/o (
set set_pkg=1
)
rem Set Logger
if !set_log!==1 (
set logger=%%y
set set_log=0
)
if %%y==/l (
set set_log=1
)
rem Set NugetApiKey
if !set_apiKey!==1 (
set api_key=%%y
set set_apiKey=0
)
if %%y==/k (
set set_apiKey=1
)
)