]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaWriter.java
Extract msa license info from inf file.
[mirror_edk2.git] / Tools / Java / Source / MigrationTools / org / tianocore / migration / MsaWriter.java
index 132d6c3bc5a59b9d58da1fcdbd4c41d3f4830e90..af8646f792d0de4b946f7d3a7ffe22021da535c2 100644 (file)
@@ -100,18 +100,16 @@ public class MsaWriter {
             msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("Guid Value Not Found!  Please Input Guid Value")));\r
         }\r
 \r
-        msaheader.setCopyright("Copyright (c) 2006, Intel Corporation");\r
+        msaheader.setCopyright("Copyright (c) 2006, Intel Corporation. All right reserved.");\r
         msaheader.setVersion("1.0");\r
         msaheader.setAbstract("Component name for module " + mi.modulename);\r
         msaheader.setDescription("FIX ME!");\r
-        msaheader.addNewLicense().setStringValue("All rights reserved.\n" +\r
-                "      This software and associated documentation (if any) is furnished\n" +\r
-                "      under a license and may only be used or copied in accordance\n" +\r
-                "      with the terms of the license. Except as permitted by such\n" +\r
-                "      license, no part of this software or documentation may be\n" +\r
-                "      reproduced, stored in a retrieval system, or transmitted in any\n" +\r
-                "      form or by any means without the express written consent of\n" +\r
-                "      Intel Corporation.");\r
+\r
+        if (mi.license == null) {\r
+            mi.license = "FIX ME!";\r
+            MigrationTool.ui.println ("Fail to extract license info in inf file"); \r
+        }\r
+        msaheader.addNewLicense().setStringValue(mi.license);\r
         msaheader.setSpecification("FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052");\r
         \r
         List<Enum> arch = new ArrayList<Enum>();\r