1 Star 0 Fork 0

tutuLord/logging-log4net

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.cmd 3.58 KB
一键复制 编辑 原始数据 按行查看 历史
Stefan Bodewig 提交于 2015-10-07 03:54 . bring back 1.2.x branch as trunk
rem
rem
rem Licensed to the Apache Software Foundation (ASF) under one
rem or more contributor license agreements. See the NOTICE file
rem distributed with this work for additional information
rem regarding copyright ownership. The ASF licenses this file
rem to you under the Apache License, Version 2.0 (the
rem "License"); you may not use this file except in compliance
rem with the License. You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing,
rem software distributed under the License is distributed on an
rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
rem KIND, either express or implied. See the License for the
rem specific language governing permissions and limitations
rem under the License.
rem
rem
@ECHO OFF
REM We are going to change the environment variables, so protect the current settings.
SETLOCAL ENABLEDELAYEDEXPANSION
IF "%1"=="-?" GOTO CommandLineOptions
REM Figure out the path to the log4net directory
CALL :ComputeBase %~f0
SET LOG4NET_DIR=%RESULT%
ECHO LOG4NET_DIR is %LOG4NET_DIR%
REM Get path to NAnt.exe
REM Try and determine if NAnt is in the PATH
SET NANTEXE_PATH=nant.exe
"%NANTEXE_PATH%" -help >NUL: 2>NUL:
IF NOT ERRORLEVEL 1 goto FoundNAnt
REM Try hard coded path for NAnt
SET NANTEXE_PATH=C:\Program Files\NAnt\nant-0.85\bin\nant.exe
"%NANTEXE_PATH%" -help >NUL: 2>NUL:
IF NOT ERRORLEVEL 1 goto FoundNAnt
REM We have not found NAnt
ECHO.
ECHO NAnt does not appear to be installed. NAnt.exe failed to execute.
ECHO Please ensure NAnt is installed and can be found in the PATH.
GOTO EndError
:FoundNAnt
ECHO NANTEXE_PATH is %NANTEXE_PATH%
REM Setup the build file
IF EXIST nant.build (
SET BUILD_FILE=nant.build
) ELSE (
SET BUILD_FILE=%LOG4NET_DIR%\log4net.build
)
ECHO BUILD_FILE is %BUILD_FILE%
IF "%1"=="package" GOTO Package
"%NANTEXE_PATH%" "-buildfile:%BUILD_FILE%" %1 %2 %3 %4 %5 %6 %7 %8
GOTO EndOk
:Package
IF "%2"=="" GOTO NoProjectVersion
"%NANTEXE_PATH%" "-buildfile:%BUILD_FILE%" package "-D:package.version=%2" %3 %4 %5 %6 %7 %8
GOTO EndOk
:NoProjectVersion
ECHO.
ECHO SYNTAX ERROR: Missing Version String.
ECHO Please specify the version number of log4net that you want to package.
GOTO CommandLineOptions
:CommandLineOptions
ECHO.
ECHO Use the following command line syntax:
ECHO.
ECHO build.cmd -?
ECHO build.cmd -projecthelp
ECHO build.cmd [nant target]
ECHO build.cmd package [version string]
ECHO.
ECHO To get a list of all NAnt build targets run build.cmd with the -projecthelp option.
ECHO If no NAnt target is specified then the default target is 'compile-all'. This will compile all configurations on all available frameworks.
ECHO When using the 'package' command the version label for the package must be specified.
ECHO.
ECHO Examples:
ECHO.
ECHO build.cmd compile-mono-1.0
ECHO build.cmd compile-all
ECHO build.cmd package 1.3.0
ECHO build.cmd package 2.1.0-alpha
ECHO.
GOTO EndError
REM ------------------------------------------
REM Expand a string to a full path
REM ------------------------------------------
:FullPath
SET RESULT=%~f1
GOTO :EOF
REM ------------------------------------------
REM Compute the current directory
REM given a path to this batch script.
REM ------------------------------------------
:ComputeBase
SET RESULT=%~dp1
REM Remove the trailing \
SET RESULT=%RESULT:~0,-1%
CALL :FullPath %RESULT%
GOTO :EOF
:EndOk
ENDLOCAL
EXIT /B 0
:EndError
ENDLOCAL
EXIT /B 1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tutuai1222/logging-log4net.git
git@gitee.com:tutuai1222/logging-log4net.git
tutuai1222
logging-log4net
logging-log4net
master

搜索帮助