]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/TargetHistory.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Java / Source / Cpptasks / net / sf / antcontrib / cpptasks / TargetHistory.java
1 /*
2 *
3 * Copyright 2002-2004 The Ant-Contrib project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 package net.sf.antcontrib.cpptasks;
18 /**
19 * A description of a file built or to be built
20 */
21 public final class TargetHistory {
22 private/* final */String config;
23 private/* final */String output;
24 private/* final */long outputLastModified;
25 private/* final */SourceHistory[] sources;
26 /**
27 * Constructor from build step
28 */
29 public TargetHistory(String config, String output, long outputLastModified,
30 SourceHistory[] sources) {
31 if (config == null) {
32 throw new NullPointerException("config");
33 }
34 if (sources == null) {
35 throw new NullPointerException("source");
36 }
37 if (output == null) {
38 throw new NullPointerException("output");
39 }
40 this.config = config;
41 this.output = output;
42 this.outputLastModified = outputLastModified;
43 this.sources = (SourceHistory[]) sources.clone();
44 }
45 public String getOutput() {
46 return output;
47 }
48 public long getOutputLastModified() {
49 return outputLastModified;
50 }
51 public String getProcessorConfiguration() {
52 return config;
53 }
54 public SourceHistory[] getSources() {
55 SourceHistory[] clone = (SourceHistory[]) sources.clone();
56 return clone;
57 }
58 }