server.conf variables
Configure server variables for triggers in Unity Version Control.
読み終わるまでの所要時間 1 分最終更新 9ヶ月前
You can define variables in the file. Their value passes on to the trigger script or program as environment variables. To define these variables, you need to add a section called to the file, which you can find in the server installation folder. The following example shows one way you can use this file:
server.confTriggerVariablesserver.conf<?xml version="1.0"?><ServerConfigData> <Language>en</Language> <WorkingMode>UPWorkingMode</WorkingMode> <ServerType>ServerTypeAll</ServerType> <TriggerVariables> <TriggerVariable name="TRIGGERS_PATH" value="c:\triggers" /> </TriggerVariables></ServerConfigData>
This sample defines a variable called with the value . For example, you can use this variable in the script field when you create a trigger:
TRIGGERS_PATHc:\\triggerscm trigger create before-checkin "code checker" "@TRIGGERS_PATH\stylecheck.bat"