]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/GenBuild/org/tianocore/build/id/PlatformIdentification.java
2 This file is to define PlatformIdentification class.
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 package org
.tianocore
.build
.id
;
17 import org
.tianocore
.build
.global
.GlobalData
;
19 public class PlatformIdentification
extends Identification
{
23 public PlatformIdentification(String guid
, String version
){
27 public PlatformIdentification(String name
, String guid
, String version
){
28 super(name
, guid
, version
);
31 public PlatformIdentification(String name
, String guid
, String version
, String fpdFilename
){
32 super(name
, guid
, version
);
33 this.fpdFile
= new File(fpdFilename
);
36 public PlatformIdentification(String name
, String guid
, String version
, File fpdFile
){
37 super(name
, guid
, version
);
38 this.fpdFile
= fpdFile
;
41 public String
toString(){
42 return "Platform " + name
+ "["+guid
+"]";
45 public void setFpdFile(File fpdFile
) {
46 this.fpdFile
= fpdFile
;
49 public File
getFpdFile() {
53 public String
getRelativeFpdFile (){
54 return fpdFile
.getPath().substring(GlobalData
.getWorkspacePath().length() + 1);
57 public String
getPlatformRelativeDir(){
58 return fpdFile
.getParent().substring(GlobalData
.getWorkspacePath().length() + 1);