]> git.proxmox.com Git - mirror_edk2.git/blobdiff - 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
diff --git a/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/TargetHistory.java b/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/TargetHistory.java
new file mode 100644 (file)
index 0000000..0094c8e
--- /dev/null
@@ -0,0 +1,58 @@
+/*\r
+ * \r
+ * Copyright 2002-2004 The Ant-Contrib project\r
+ *\r
+ *  Licensed under the Apache License, Version 2.0 (the "License");\r
+ *  you may not use this file except in compliance with the License.\r
+ *  You may obtain a copy of the License at\r
+ *\r
+ *      http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ *  Unless required by applicable law or agreed to in writing, software\r
+ *  distributed under the License is distributed on an "AS IS" BASIS,\r
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *  See the License for the specific language governing permissions and\r
+ *  limitations under the License.\r
+ */\r
+package net.sf.antcontrib.cpptasks;\r
+/**\r
+ * A description of a file built or to be built\r
+ */\r
+public final class TargetHistory {\r
+    private/* final */String config;\r
+    private/* final */String output;\r
+    private/* final */long outputLastModified;\r
+    private/* final */SourceHistory[] sources;\r
+    /**\r
+     * Constructor from build step\r
+     */\r
+    public TargetHistory(String config, String output, long outputLastModified,\r
+            SourceHistory[] sources) {\r
+        if (config == null) {\r
+            throw new NullPointerException("config");\r
+        }\r
+        if (sources == null) {\r
+            throw new NullPointerException("source");\r
+        }\r
+        if (output == null) {\r
+            throw new NullPointerException("output");\r
+        }\r
+        this.config = config;\r
+        this.output = output;\r
+        this.outputLastModified = outputLastModified;\r
+        this.sources = (SourceHistory[]) sources.clone();\r
+    }\r
+    public String getOutput() {\r
+        return output;\r
+    }\r
+    public long getOutputLastModified() {\r
+        return outputLastModified;\r
+    }\r
+    public String getProcessorConfiguration() {\r
+        return config;\r
+    }\r
+    public SourceHistory[] getSources() {\r
+        SourceHistory[] clone = (SourceHistory[]) sources.clone();\r
+        return clone;\r
+    }\r
+}\r