コード例 #1
0
        public ProcessDetails(CachedGraph graph, Process process)
            : base(graph, process)
        {
            Executable = new FileRef(graph.Context, process.Executable);
            Arguments  = new PipData(graph.Context, process.Arguments);
            EnvironmentVariables.AddRange(process.EnvironmentVariables.Select(envVar => new EnvironmentVariable(graph.Context, envVar)));
            WorkingDirectory = new DirectoryRef(graph.Context, process.WorkingDirectory);

            UntrackedScopes.AddRange(process.UntrackedScopes.Select(scope => new DirectoryRef(graph.Context, scope)));
            UntrackedFiles.AddRange(process.UntrackedPaths.Select(path => new FileRef(graph.Context, FileArtifact.CreateSourceFile(path))));
        }
コード例 #2
0
 public EnvironmentVariable(PipExecutionContext context, Pips.Operations.EnvironmentVariable envVar)
 {
     Name = envVar.Name.ToString(context.StringTable);
     // Passthrough environment variables have invalid values
     if (envVar.Value.IsValid)
     {
         Value         = new PipData(context, envVar.Value);
         IsPassthrough = false;
     }
     else
     {
         Value         = PipData.EmptyPipData;
         IsPassthrough = true;
     }
 }
コード例 #3
0
 public NestedPipDataEntry(PipData n)
 {
     N = n;
 }