]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/TargetHistory.java
3 * Copyright 2002-2004 The Ant-Contrib project
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package net
.sf
.antcontrib
.cpptasks
;
19 * A description of a file built or to be built
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
;
27 * Constructor from build step
29 public TargetHistory(String config
, String output
, long outputLastModified
,
30 SourceHistory
[] sources
) {
32 throw new NullPointerException("config");
34 if (sources
== null) {
35 throw new NullPointerException("source");
38 throw new NullPointerException("output");
42 this.outputLastModified
= outputLastModified
;
43 this.sources
= (SourceHistory
[]) sources
.clone();
45 public String
getOutput() {
48 public long getOutputLastModified() {
49 return outputLastModified
;
51 public String
getProcessorConfiguration() {
54 public SourceHistory
[] getSources() {
55 SourceHistory
[] clone
= (SourceHistory
[]) sources
.clone();