Exemplo n.º 1
0
        /// <nodoc />
        public static BXLInvocationEvent ToBXLInvocationEvent(this DominoInvocationEventData data, uint workerID, PathTable pathTable)
        {
            var loggingConfig = data.Configuration.Logging;

            var bxlInvEvent = new BXLInvocationEvent
            {
                WorkerID           = workerID,
                SubstSource        = loggingConfig.SubstSource.ToAbsolutePath(pathTable),
                SubstTarget        = loggingConfig.SubstTarget.ToAbsolutePath(pathTable),
                IsSubstSourceValid = loggingConfig.SubstSource.IsValid,
                IsSubstTargetValid = loggingConfig.SubstTarget.IsValid
            };

            return(bxlInvEvent);
        }
Exemplo n.º 2
0
        public override void DominoInvocation(DominoInvocationEventData data)
        {
            // Capture the DominoInvocation event for sake of switching process run scripts to their un-substed versions.
            var loggingConfig = data.Configuration.Logging;

            if (loggingConfig.SubstSource.IsValid &&
                loggingConfig.SubstTarget.IsValid)
            {
                // tostring on root of drive automatically adds trailing slash, so only add trailing slash when needed.
                m_substTarget = loggingConfig.SubstTarget.ToString(PathTable, PathFormat.HostOs);
                if (m_substTarget.LastOrDefault() != Path.DirectorySeparatorChar)
                {
                    m_substTarget += Path.DirectorySeparatorChar;
                }

                m_substSource = loggingConfig.SubstSource.ToString(PathTable, PathFormat.HostOs);
                if (m_substSource.LastOrDefault() != Path.DirectorySeparatorChar)
                {
                    m_substSource += Path.DirectorySeparatorChar;
                }
            }
        }
Exemplo n.º 3
0
 public override void DominoInvocation(DominoInvocationEventData data)
 {
     m_invocationData = data;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Single event giving build invocation information that contains configuration details usefull for analyzers.
 /// </summary>
 public virtual void DominoInvocation(DominoInvocationEventData data)
 {
     ReportUnhandledEvent(data);
 }
Exemplo n.º 5
0
        /// <inheritdoc />
        public override void DominoInvocation(DominoInvocationEventData data)
        {
            var conf = data.Configuration.Logging;

            m_pathTranslator = GetPathTranslator(conf.SubstSource, conf.SubstTarget, PathTable);
        }