summaryrefslogtreecommitdiff
path: root/Tools/Java
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-24 11:54:42 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-24 11:54:42 +0000
commit9d5349800fb9556789ce4309154e4eccb9caa3c1 (patch)
tree7fc833e6d8d564002a025bcd0174919af4db327b /Tools/Java
parent07ffaeb8c17b12a009283f8542fc7d9018c7f390 (diff)
downloadedk2-platforms-9d5349800fb9556789ce4309154e4eccb9caa3c1.tar.xz
Generate correct license for R8Lib.c & R8Lib.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3427 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java')
-rw-r--r--Tools/Java/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java
index 488e055211..6bf0b24b53 100644
--- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java
+++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java
@@ -419,14 +419,14 @@ public final class SourceFileReplacer implements Common.ForDoAll {
Matcher mtrr8onlyhead;
// add head comment
- Matcher mtrr8onlyheadcomment = Critic.PTN_NEW_HEAD_COMMENT
- .matcher(line);
- if (mtrr8onlyheadcomment.find()) {
- outfile1.append(mtrr8onlyheadcomment.group() + "\n\n");
- outfile2.append(mtrr8onlyheadcomment.group() + "\n\n");
- }
-
- // add functions body
+ if (mi.license != null) {
+ String header = "/**@file\n Copyright (c) 2007, Intel Corporation\n\n" +
+ mi.license.replace(" ", " ") + "**/\n\n";
+ outfile1.append(header);
+ outfile2.append(header);
+ }
+
+ // add functions body
while (mtrr8only.find()) {
if (mi.hashr8only.contains(mtrr8only.group(3))) {
paragraph = mtrr8only.group(2);