-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.bat
30 lines (25 loc) · 962 Bytes
/
environment.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
set SEEQ_CONNECTOR_SDK_HOME=%~dp0.
for /d %%i in ("%SEEQ_CONNECTOR_SDK_HOME%\*Seeq.Link.Connector*") do (
echo %%~nxi | findstr /r /v "Test$" >nul
if not errorlevel 1 (
set "SEEQ_CONNECTOR_NAME=%%~nxi"
goto :found
)
)
:found
if not defined SEEQ_CONNECTOR_NAME (
echo Failed to find a connector folder within "%SEEQ_CONNECTOR_SDK_HOME%". Connector should be in a folder whose name is of the form Seeq.Link.Connector.* and does not end in Test
exit 1
)
title Seeq Connector SDK C# Dev Environment
echo.
echo Seeq Connector SDK C# development environment is set up.
echo.
echo Your connector name is currently "%SEEQ_CONNECTOR_NAME%"
echo.
echo First, execute "build" to compile the connector.
echo Then execute "ide" to launch Visual Studio for development and debugging.
echo You could run "test" to execute tests you have included.
echo Finally, execute "package" to build a deployable connector package.
echo.