[hg] main-silver: regression catched by tests fixed

  • From: Milos Kleint < >
  • To:
  • Subject: [hg] main-silver: regression catched by tests fixed
  • Date: Tue, 07 May 2013 18:45:43 -0700

changeset 1d65135c0400 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/1d65135c0400
description:
        regression catched by tests fixed

diffstat:

 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ProjectXMLManager.java
 |  14 +++++-----
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (29 lines):

diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ProjectXMLManager.java
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ProjectXMLManager.java
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ProjectXMLManager.java
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ProjectXMLManager.java
@@ -791,18 +791,18 @@
         insertPublicOrFriend(friendPackages);
 
         for (String friend : friends) {
-            if (friend.endsWith(".*")) {
                 friendPackages.appendChild(
-                    createModuleElement(doc, ProjectXMLManager.SUBPACKAGES, 
friend.substring(0, friend.length() - ".*".length())));
+                    createModuleElement(doc, ProjectXMLManager.FRIEND, 
friend));
+        }
+        for (String pkg : packagesToExpose) {
+            if (pkg.endsWith(".*")) {
+                friendPackages.appendChild(
+                    createModuleElement(doc, ProjectXMLManager.SUBPACKAGES, 
pkg.substring(0, pkg.length() - ".*".length())));
             } else {
                 friendPackages.appendChild(
-                    createModuleElement(doc, ProjectXMLManager.PACKAGE, 
friend));
+                    createModuleElement(doc, ProjectXMLManager.PACKAGE, 
pkg));
             }
         }
-        for (String pkg : packagesToExpose) {
-            friendPackages.appendChild(
-                    createModuleElement(doc, ProjectXMLManager.PACKAGE, 
pkg));
-        }
         project.putPrimaryConfigurationData(_confData);
         publicPackages = null;
     }

[hg] main-silver: regression catched by tests fixed

Milos Kleint 05/08/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close