directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject [2/3] directory-fortress-realm git commit: o Applied the Directory formatter o Renamed 'log" to 'LOG' o formatted the pom.xml file (2 spaces instead of 4)
Date Tue, 25 Nov 2014 09:43:57 GMT
o Applied the Directory formatter
o Renamed 'log" to 'LOG'
o formatted the pom.xml file (2 spaces instead of 4)

Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/commit/4ca67e60
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/tree/4ca67e60
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/diff/4ca67e60

Branch: refs/heads/master
Commit: 4ca67e601fc7a85c041509c326a5429c384a5869
Parents: 805bc4c
Author: Emmanuel L├ęcharny <elecharny@symas.com>
Authored: Tue Nov 25 10:15:57 2014 +0100
Committer: Emmanuel L├ęcharny <elecharny@symas.com>
Committed: Tue Nov 25 10:18:30 2014 +0100

----------------------------------------------------------------------
 .gitignore                                      |  13 +
 pom.xml                                         | 738 +++++++++----------
 proxy/pom.xml                                   | 102 +--
 .../realm/tomcat/Tc7AccessMgrProxy.java         | 127 ++--
 .../fortress/realm/tomcat/TcAccessMgr.java      |   6 +-
 .../realm/util/ChildFirstUrlClassLoader.java    |  49 +-
 .../directory/fortress/realm/util/CpUtil.java   |  84 ++-
 7 files changed, 580 insertions(+), 539 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/4ca67e60/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..35d796e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+.classpath
+.project
+.settings
+.wtpmodules
+*.ipr
+*.iws
+*.iml
+target/
+bin/
+*.log
+.deployables
+.clover
+META-INF/

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/4ca67e60/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index fa8cbec..2dd92de 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
 
-     http://www.apache.org/licenses/LICENSE-2.0
+   http://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
@@ -18,388 +18,386 @@
    under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-    <groupId>org.apache.directory</groupId>
-    <artifactId>fortress-realm</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Fortress Realm</name>
-    <description>Fortress Realm is an ANSI RBAC INCITS 359 compliant policy enforcement engine.</description>
-    <url>http://directory.apache.org/foress/</url>
-    <version>1.0-RC40-SNAPSHOT</version>
-
-    <properties>
-        <projectName>apache-directory-fortress-realm</projectName>
-        <distMgmtSiteUrl>scpexe://people.apache.org/www/directory.apache.org/api/gen-docs/${project.version}/
-        </distMgmtSiteUrl>
-
-        <!-- Set versions for depending projects -->
-        <skin.version>1.0.2</skin.version>
-        <org.apache.directory.junit.junit-addons.version>0.1</org.apache.directory.junit.junit-addons.version>
-        <org.apache.directory.checkstyle-configuration.version>0.1</org.apache.directory.checkstyle-configuration.version>
-        <slf4j.api.version>1.7.5</slf4j.api.version>
-        <slf4j.log4j12.version>1.7.5</slf4j.log4j12.version>
-        <junit.version>4.11</junit.version>
-
-        <!-- Set versions for depending jars -->
-        <fortress-core.version>1.0-RC40-SNAPSHOT</fortress-core.version>
-
-        <!-- Set versions for depending jars -->
-        <findbugs.annotations.version>1.0.0</findbugs.annotations.version>
-    </properties>
-
-    <licenses>
-        <license>
-            <name>Apache License 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
-        </license>
-    </licenses>
-    <scm>
-        <connection>scm:git:http://git-wip-us.apache.org/repos/asf/directory-fortress-realm.git</connection>
-        <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/directory-fortress-realm.git</developerConnection>
-        <tag>HEAD</tag>
-    </scm>
-
-    <issueManagement>
-        <system>jira</system>
-        <url>https://issues.apache.org/jira/browse/DIRREALM</url>
-    </issueManagement>
-
-    <parent>
-        <groupId>org.sonatype.oss</groupId>
-        <artifactId>oss-parent</artifactId>
-        <version>7</version>
-    </parent>
-
-    <mailingLists>
-        <mailingList>
-            <name>Apache Directory -- Fortress List</name>
-            <post>fortress@directory.apache.org</post>
-            <archive>http://mail-archives.apache.org/mod_mbox/directory-fortress/</archive>
-        </mailingList>
-    </mailingLists>
-
-    <developers>
-        <developer>
-            <id>elecharny</id>
-            <name>Emmanuel Lecharny</name>
-            <email>elecharny@@apache.org</email>
-            <roles>
-                <role>Developer</role>
-            </roles>
-            <organization>Apache Software Foundation</organization>
-            <timezone>+1</timezone>
-        </developer>
-        <developer>
-            <id>smckinney</id>
-            <name>Shawn McKinney</name>
-            <email>smckinney@apache.org</email>
-            <timezone>-6</timezone>
-        </developer>
-    </developers>
-
-    <modules>
-        <module>impl</module>
-        <module>proxy</module>
-    </modules>
-
-    <build>
-
-        <finalName>${project.artifactId}-${version}</finalName>
-
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-release-plugin</artifactId>
-                    <configuration>
-                        <tagNameFormat>@{project.version}</tagNameFormat>
-                    </configuration>
-                </plugin>
+     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.directory</groupId>
+  <artifactId>fortress-realm</artifactId>
+  <packaging>pom</packaging>
+  <name>Apache Fortress Realm</name>
+  <description>Fortress Realm is an ANSI RBAC INCITS 359 compliant policy enforcement engine.</description>
+  <url>http://directory.apache.org/foress/</url>
+  <version>1.0-RC40-SNAPSHOT</version>
+
+  <properties>
+    <projectName>apache-directory-fortress-realm</projectName>
+    <distMgmtSiteUrl>scpexe://people.apache.org/www/directory.apache.org/api/gen-docs/${project.version}/
+    </distMgmtSiteUrl>
+
+    <!-- Set versions for depending projects -->
+    <skin.version>1.0.2</skin.version>
+    <org.apache.directory.junit.junit-addons.version>0.1</org.apache.directory.junit.junit-addons.version>
+    <org.apache.directory.checkstyle-configuration.version>0.1</org.apache.directory.checkstyle-configuration.version>
+    <slf4j.api.version>1.7.7</slf4j.api.version>
+    <slf4j.log4j12.version>1.7.7</slf4j.log4j12.version>
+    <junit.version>4.11</junit.version>
+
+    <!-- Set versions for depending jars -->
+    <fortress-core.version>1.0-RC40-SNAPSHOT</fortress-core.version>
+
+    <!-- Set versions for depending jars -->
+    <findbugs.annotations.version>1.0.0</findbugs.annotations.version>
+  </properties>
+
+  <licenses>
+    <license>
+      <name>Apache License 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+    </license>
+  </licenses>
+  <scm>
+    <connection>scm:git:http://git-wip-us.apache.org/repos/asf/directory-fortress-realm.git</connection>
+    <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/directory-fortress-realm.git</developerConnection>
+    <tag>HEAD</tag>
+  </scm>
+
+  <issueManagement>
+    <system>jira</system>
+    <url>https://issues.apache.org/jira/browse/DIRREALM</url>
+  </issueManagement>
+
+  <parent>
+    <groupId>org.sonatype.oss</groupId>
+    <artifactId>oss-parent</artifactId>
+    <version>7</version>
+  </parent>
+
+  <mailingLists>
+    <mailingList>
+      <name>Apache Directory -- Fortress List</name>
+      <post>fortress@directory.apache.org</post>
+      <archive>http://mail-archives.apache.org/mod_mbox/directory-fortress/</archive>
+    </mailingList>
+  </mailingLists>
+
+  <developers>
+    <developer>
+      <id>elecharny</id>
+      <name>Emmanuel Lecharny</name>
+      <email>elecharny@@apache.org</email>
+      <roles>
+        <role>Developer</role>
+      </roles>
+      <organization>Apache Software Foundation</organization>
+      <timezone>+1</timezone>
+    </developer>
+    <developer>
+      <id>smckinney</id>
+      <name>Shawn McKinney</name>
+      <email>smckinney@apache.org</email>
+      <timezone>-6</timezone>
+    </developer>
+  </developers>
+
+  <modules>
+    <module>impl</module>
+    <module>proxy</module>
+  </modules>
+
+  <build>
+
+    <finalName>${project.artifactId}-${version}</finalName>
+
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <configuration>
+            <tagNameFormat>@{project.version}</tagNameFormat>
+          </configuration>
+        </plugin>
+
+      </plugins>
+    </pluginManagement>
+    <plugins>
+      <!-- Assemble a realm distro archive -->
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>2.4</version>
+        <executions>
+          <execution>
+            <id>make-assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+            <configuration>
+              <descriptors>
+                <descriptor>src/main/assembly/distsrc.xml</descriptor>
+              </descriptors>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>jar-no-fork</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-site-plugin</artifactId>
+        <dependencies>
+          <!-- Add support for 'scp'/'sftp' -->
+          <dependency>
+            <groupId>org.apache.maven.wagon</groupId>
+            <artifactId>wagon-ssh</artifactId>
+            <version>2.1</version>
+          </dependency>
+          <!-- Add support for 'scpexe' -->
+          <dependency>
+            <groupId>org.apache.maven.wagon</groupId>
+            <artifactId>wagon-ssh-external</artifactId>
+            <version>2.1</version>
+          </dependency>
+        </dependencies>
+        <configuration>
+          <reportPlugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-jxr-plugin</artifactId>
+              <configuration>
+                <aggregate>true</aggregate>
+              </configuration>
+            </plugin>
 
-            </plugins>
-        </pluginManagement>
-        <plugins>
-            <!-- Assemble a realm distro archive -->
             <plugin>
-                <artifactId>maven-assembly-plugin</artifactId>
-                <version>2.4</version>
-                <executions>
-                    <execution>
-                        <id>make-assembly</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>single</goal>
-                        </goals>
-                        <configuration>
-                            <descriptors>
-                                <descriptor>src/main/assembly/distsrc.xml</descriptor>
-                            </descriptors>
-                        </configuration>
-                    </execution>
-                </executions>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-surefire-report-plugin</artifactId>
+              <configuration>
+                <aggregate>true</aggregate>
+              </configuration>
             </plugin>
 
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-source-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>attach-sources</id>
-                        <phase>verify</phase>
-                        <goals>
-                            <goal>jar-no-fork</goal>
-                        </goals>
-                    </execution>
-                </executions>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-project-info-reports-plugin</artifactId>
             </plugin>
 
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-site-plugin</artifactId>
-                <dependencies>
-                    <!-- Add support for 'scp'/'sftp' -->
-                    <dependency>
-                        <groupId>org.apache.maven.wagon</groupId>
-                        <artifactId>wagon-ssh</artifactId>
-                        <version>2.1</version>
-                    </dependency>
-                    <!-- Add support for 'scpexe' -->
-                    <dependency>
-                        <groupId>org.apache.maven.wagon</groupId>
-                        <artifactId>wagon-ssh-external</artifactId>
-                        <version>2.1</version>
-                    </dependency>
-                </dependencies>
-                <configuration>
-                    <reportPlugins>
-                        <plugin>
-                            <groupId>org.apache.maven.plugins</groupId>
-                            <artifactId>maven-jxr-plugin</artifactId>
-                            <configuration>
-                                <aggregate>true</aggregate>
-                            </configuration>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.apache.maven.plugins</groupId>
-                            <artifactId>maven-surefire-report-plugin</artifactId>
-                            <configuration>
-                                <aggregate>true</aggregate>
-                            </configuration>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.apache.maven.plugins</groupId>
-                            <artifactId>maven-project-info-reports-plugin</artifactId>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.codehaus.mojo</groupId>
-                            <artifactId>taglist-maven-plugin</artifactId>
-                            <configuration>
-                                <tags>
-                                    <tag>TODO</tag>
-                                    <tag>@todo</tag>
-                                    <tag>@deprecated</tag>
-                                    <tag>FIXME</tag>
-                                </tags>
-                            </configuration>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.apache.maven.plugins</groupId>
-                            <artifactId>maven-javadoc-plugin</artifactId>
-                            <configuration>
-                                <minmemory>512m</minmemory>
-                                <maxmemory>1g</maxmemory>
-                                <linksource>true</linksource>
-                                <tags>
-                                    <tag>
-                                        <name>todo</name>
-                                        <!-- todo tag for all places -->
-                                        <placement>a</placement>
-                                        <head>To do:</head>
-                                    </tag>
-                                </tags>
-                                <source>1.6</source>
-                            </configuration>
-                            <reportSets>
-                                <reportSet>
-                                    <reports>
-                                        <report>aggregate</report>
-                                        <report>test-aggregate</report>
-                                    </reports>
-                                </reportSet>
-                            </reportSets>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.codehaus.mojo</groupId>
-                            <artifactId>versions-maven-plugin</artifactId>
-                            <reportSets>
-                                <reportSet>
-                                    <reports>
-                                        <report>dependency-updates-report</report>
-                                        <report>plugin-updates-report</report>
-                                        <report>property-updates-report</report>
-                                    </reports>
-                                </reportSet>
-                            </reportSets>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.apache.rat</groupId>
-                            <artifactId>apache-rat-plugin</artifactId>
-                            <!-- must add configuration here too, it isn't inherited from <pluginConfiguration> :-( -->
-                            <configuration>
-                                <excludeSubProjects>false</excludeSubProjects>
-                                <excludes>
-                                    <!-- MAVEN_DEFAULT_EXCLUDES -->
-                                    <exclude>**/target/**/*</exclude>
-                                    <exclude>**/cobertura.ser</exclude>
-                                    <!-- ECLIPSE_DEFAULT_EXCLUDES -->
-                                    <exclude>**/.classpath</exclude>
-                                    <exclude>**/.project</exclude>
-                                    <exclude>**/.settings/**/*</exclude>
-                                    <!-- IDEA_DEFAULT_EXCLUDES -->
-                                    <exclude>**/*.iml</exclude>
-                                    <exclude>**/*.ipr</exclude>
-                                    <exclude>**/*.iws</exclude>
-                                    <!-- MANIFEST_MF_EXCLUDES -->
-                                    <exclude>**/MANIFEST.MF</exclude>
-                                    <!-- 3RD_PARTY_LICENSES -->
-                                    <exclude>distribution/src/main/release/licenses/*</exclude>
-                                    <exclude>src/main/release/licenses/*</exclude>
-                                    <!-- Missing license header in dependency reduced pom, see http://jira.codehaus.org/browse/MSHADE-48 -->
-                                    <exclude>**/dependency-reduced-pom.xml</exclude>
-                                    <!-- Generated ldif files -->
-                                    <exclude>**/src/main/resources/schema/**/*.ldif</exclude>
-                                    <exclude>**/src/main/resources/schema-all.ldif</exclude>
-                                    <exclude>**/src/main/resources/schema/**/*.ldif</exclude>
-                                    <exclude>**/src/main/resources/schema-all.ldif</exclude>
-                                    <!-- Files having a Bouncy Castle license -->
-                                    <exclude>ldap/src/main/java/org/apache/directory/api/asn1/der/*.java</exclude>
-                                    <exclude>src/main/java/org/apache/directory/api/asn1/der/*.java</exclude>
-                                </excludes>
-                            </configuration>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.codehaus.mojo</groupId>
-                            <artifactId>javancss-maven-plugin</artifactId>
-                        </plugin>
-
-                        <plugin>
-                            <groupId>org.codehaus.mojo</groupId>
-                            <artifactId>jdepend-maven-plugin</artifactId>
-                        </plugin>
-
-                        <!--
-                                    <plugin>
-                                      <groupId>org.apache.maven.plugins</groupId>
-                                      <artifactId>maven-changes-plugin</artifactId>
-                                      <configuration>
-                                        <onlyCurrentVersion>true</onlyCurrentVersion>
-                                        <resolutionIds>Fixed</resolutionIds>
-                                        <statusIds>Resolved,Closed</statusIds>
-                                        <columnNames>Type,Key,Summary,Status,Resolution,Fix Version</columnNames>
-                                      </configuration>
-                                      <reportSets>
-                                        <reportSet>
-                                          <reports>
-                                            <report>jira-report</report>
-                                          </reports>
-                                        </reportSet>
-                                      </reportSets>
-                                    </plugin>
-                        -->
-                    </reportPlugins>
-                </configuration>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>taglist-maven-plugin</artifactId>
+              <configuration>
+                <tags>
+                  <tag>TODO</tag>
+                  <tag>@todo</tag>
+                  <tag>@deprecated</tag>
+                  <tag>FIXME</tag>
+                </tags>
+              </configuration>
             </plugin>
-        </plugins>
-    </build>
 
-    <dependencyManagement>
-        <dependencies>
-            <!-- Project sub-modules dependencies -->
-            <dependency>
-                <groupId>org.apache.directory</groupId>
-                <artifactId>fortress-core</artifactId>
-                <version>${fortress-core.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>org.apache.tomcat</groupId>
-                <artifactId>tomcat-catalina</artifactId>
-                <version>7.0.22</version>
-            </dependency>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-javadoc-plugin</artifactId>
+              <configuration>
+                <minmemory>512m</minmemory>
+                <maxmemory>1g</maxmemory>
+                <linksource>true</linksource>
+                <tags>
+                  <tag>
+                    <name>todo</name>
+                    <!-- todo tag for all places -->
+                    <placement>a</placement>
+                    <head>To do:</head>
+                  </tag>
+                </tags>
+                <source>1.6</source>
+              </configuration>
+              <reportSets>
+                <reportSet>
+                  <reports>
+                    <report>aggregate</report>
+                    <report>test-aggregate</report>
+                  </reports>
+                </reportSet>
+              </reportSets>
+            </plugin>
 
-        </dependencies>
-    </dependencyManagement>
+            <plugin>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>versions-maven-plugin</artifactId>
+              <reportSets>
+                <reportSet>
+                  <reports>
+                    <report>dependency-updates-report</report>
+                    <report>plugin-updates-report</report>
+                    <report>property-updates-report</report>
+                  </reports>
+                </reportSet>
+              </reportSets>
+            </plugin>
 
-    <dependencies>
-        <!-- for Java5 findbugs annotations are required in each module at compile time -->
-        <dependency>
-            <groupId>findbugs</groupId>
-            <artifactId>annotations</artifactId>
-            <scope>provided</scope>
-            <version>1.0.0</version>
-        </dependency>
-
-        <!-- common logging interface -->
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-api</artifactId>
-            <version>${slf4j.api.version}</version>
-        </dependency>
-
-        <!-- logging implementation used for unit tests -->
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <scope>test</scope>
-            <version>${slf4j.log4j12.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <scope>test</scope>
-            <version>4.11</version>
-        </dependency>
-    </dependencies>
+            <plugin>
+              <groupId>org.apache.rat</groupId>
+              <artifactId>apache-rat-plugin</artifactId>
+              <!-- must add configuration here too, it isn't inherited from <pluginConfiguration> :-( -->
+              <configuration>
+                <excludeSubProjects>false</excludeSubProjects>
+                <excludes>
+                  <!-- MAVEN_DEFAULT_EXCLUDES -->
+                  <exclude>**/target/**/*</exclude>
+                  <exclude>**/cobertura.ser</exclude>
+                  <!-- ECLIPSE_DEFAULT_EXCLUDES -->
+                  <exclude>**/.classpath</exclude>
+                  <exclude>**/.project</exclude>
+                  <exclude>**/.settings/**/*</exclude>
+                  <!-- IDEA_DEFAULT_EXCLUDES -->
+                  <exclude>**/*.iml</exclude>
+                  <exclude>**/*.ipr</exclude>
+                  <exclude>**/*.iws</exclude>
+                  <!-- MANIFEST_MF_EXCLUDES -->
+                  <exclude>**/MANIFEST.MF</exclude>
+                  <!-- 3RD_PARTY_LICENSES -->
+                  <exclude>distribution/src/main/release/licenses/*</exclude>
+                  <exclude>src/main/release/licenses/*</exclude>
+                  <!-- Missing license header in dependency reduced pom, see http://jira.codehaus.org/browse/MSHADE-48 -->
+                  <exclude>**/dependency-reduced-pom.xml</exclude>
+                  <!-- Generated ldif files -->
+                  <exclude>**/src/main/resources/schema/**/*.ldif</exclude>
+                  <exclude>**/src/main/resources/schema-all.ldif</exclude>
+                  <exclude>**/src/main/resources/schema/**/*.ldif</exclude>
+                  <exclude>**/src/main/resources/schema-all.ldif</exclude>
+                  <!-- Files having a Bouncy Castle license -->
+                  <exclude>ldap/src/main/java/org/apache/directory/api/asn1/der/*.java</exclude>
+                  <exclude>src/main/java/org/apache/directory/api/asn1/der/*.java</exclude>
+                </excludes>
+              </configuration>
+            </plugin>
 
-    <profiles>
-        <profile>
-            <id>release-sign-artifacts</id>
-            <activation>
-                <activeByDefault>false</activeByDefault>
-                <property>
-                    <name>performRelease</name>
-                    <value>true</value>
-                </property>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-gpg-plugin</artifactId>
-                        <version>1.4</version>
-                        <executions>
-                            <execution>
-                                <id>sign-artifacts</id>
-                                <phase>verify</phase>
-                                <goals>
-                                    <goal>sign</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
+            <plugin>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>javancss-maven-plugin</artifactId>
+            </plugin>
 
+            <plugin>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>jdepend-maven-plugin</artifactId>
+            </plugin>
 
+            <!--
+                  <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-changes-plugin</artifactId>
+                    <configuration>
+                    <onlyCurrentVersion>true</onlyCurrentVersion>
+                    <resolutionIds>Fixed</resolutionIds>
+                    <statusIds>Resolved,Closed</statusIds>
+                    <columnNames>Type,Key,Summary,Status,Resolution,Fix Version</columnNames>
+                    </configuration>
+                    <reportSets>
+                    <reportSet>
+                      <reports>
+                      <report>jira-report</report>
+                      </reports>
+                    </reportSet>
+                    </reportSets>
+                  </plugin>
+            -->
+          </reportPlugins>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencyManagement>
+    <dependencies>
+      <!-- Project sub-modules dependencies -->
+      <dependency>
+        <groupId>org.apache.directory</groupId>
+        <artifactId>fortress-core</artifactId>
+        <version>${fortress-core.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>org.apache.tomcat</groupId>
+        <artifactId>tomcat-catalina</artifactId>
+        <version>7.0.22</version>
+      </dependency>
+
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <!-- for Java5 findbugs annotations are required in each module at compile time -->
+    <dependency>
+      <groupId>findbugs</groupId>
+      <artifactId>annotations</artifactId>
+      <scope>provided</scope>
+      <version>1.0.0</version>
+    </dependency>
+
+    <!-- common logging interface -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>${slf4j.api.version}</version>
+    </dependency>
+
+    <!-- logging implementation used for unit tests -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <scope>test</scope>
+      <version>${slf4j.log4j12.version}</version>
+    </dependency>
+
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+      <version>4.11</version>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>release-sign-artifacts</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+        <property>
+          <name>performRelease</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-gpg-plugin</artifactId>
+            <version>1.4</version>
+            <executions>
+              <execution>
+                <id>sign-artifacts</id>
+                <phase>verify</phase>
+                <goals>
+                  <goal>sign</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/4ca67e60/proxy/pom.xml
----------------------------------------------------------------------
diff --git a/proxy/pom.xml b/proxy/pom.xml
index 6329ec8..a51aba3 100644
--- a/proxy/pom.xml
+++ b/proxy/pom.xml
@@ -8,7 +8,7 @@
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
 
-     http://www.apache.org/licenses/LICENSE-2.0
+   http://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
@@ -18,61 +18,61 @@
    under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>org.apache.directory</groupId>
-        <artifactId>fortress-realm</artifactId>
-        <version>1.0-RC40-SNAPSHOT</version>
-    </parent>
+     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.directory</groupId>
+    <artifactId>fortress-realm</artifactId>
+    <version>1.0-RC40-SNAPSHOT</version>
+  </parent>
 
-    <artifactId>fortress-realm-proxy</artifactId>
-    <name>Apache Fortress Realm Proxy</name>
-    <packaging>jar</packaging>
-<!--    <packaging>bundle</packaging>-->
-    <description>
-        Proxy classes for the Fortress Realm Component.
-    </description>
+  <artifactId>fortress-realm-proxy</artifactId>
+  <name>Apache Fortress Realm Proxy</name>
+  <packaging>jar</packaging>
+<!--  <packaging>bundle</packaging>-->
+  <description>
+    Proxy classes for the Fortress Realm Component.
+  </description>
 
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.directory.junit</groupId>
-            <artifactId>junit-addons</artifactId>
-            <scope>test</scope>
-            <version>0.1</version>
-        </dependency>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.directory.junit</groupId>
+      <artifactId>junit-addons</artifactId>
+      <scope>test</scope>
+      <version>0.1</version>
+    </dependency>
 
-        <dependency>
-            <groupId>org.apache.directory.api</groupId>
-            <artifactId>api-all</artifactId>
-            <version>1.0.0-M24</version>
-        </dependency>
+    <dependency>
+      <groupId>org.apache.directory.api</groupId>
+      <artifactId>api-all</artifactId>
+      <version>1.0.0-M26</version>
+    </dependency>
 
-        <dependency>
-            <groupId>org.apache.tomcat</groupId>
-            <artifactId>tomcat-catalina</artifactId>
-            <version>7.0.22</version>
-        </dependency>
+    <dependency>
+      <groupId>org.apache.tomcat</groupId>
+      <artifactId>tomcat-catalina</artifactId>
+      <version>7.0.22</version>
+    </dependency>
 
-    </dependencies>
+  </dependencies>
 
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.1</version>
-                <configuration>
-                    <source>1.7</source>
-                    <target>1.7</target>
-                </configuration>
-            </plugin>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.1</version>
+        <configuration>
+          <source>1.7</source>
+          <target>1.7</target>
+        </configuration>
+      </plugin>
 
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jar-plugin</artifactId>
-                <version>2.5</version>
-            </plugin>
-        </plugins>
-    </build>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.5</version>
+      </plugin>
+    </plugins>
+  </build>
 </project>

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/4ca67e60/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/Tc7AccessMgrProxy.java
----------------------------------------------------------------------
diff --git a/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/Tc7AccessMgrProxy.java b/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/Tc7AccessMgrProxy.java
index 6b5e587..3f3403e 100644
--- a/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/Tc7AccessMgrProxy.java
+++ b/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/Tc7AccessMgrProxy.java
@@ -41,11 +41,11 @@ import org.apache.directory.fortress.realm.util.ChildFirstUrlClassLoader;
 public class Tc7AccessMgrProxy extends RealmBase
 {
     private static final String CLS_NM = Tc7AccessMgrProxy.class.getName();
-    private static final Logger log = Logger.getLogger(CLS_NM);
+    private static final Logger LOG = Logger.getLogger(CLS_NM);
     private static final String REALM_IMPL = "org.apache.directory.fortress.realm.tomcat.TcAccessMgrImpl";
     private static final String REALM_CLASSPATH = "REALM_CLASSPATH";
     private static final String JBOSS_AGENT = "jboss";
-    private static String container = "Catalina7";
+    private static String CONTAINER = "Catalina7";
     private static String defaultRoles;
     private String realmClasspath;
     private TcAccessMgr realm;
@@ -59,72 +59,76 @@ public class Tc7AccessMgrProxy extends RealmBase
         try
         {
             URLClassLoader ucl;
-            if (container.equalsIgnoreCase(JBOSS_AGENT))
+            
+            if ( CONTAINER.equalsIgnoreCase( JBOSS_AGENT ) )
             {
-                log.info(CLS_NM + ".initialize JBoss policy agent");
-                URL[] cp = CpUtil.getRealmClasspath(REALM_CLASSPATH);
-                if( cp != null )
+                LOG.info( CLS_NM + ".initialize JBoss policy agent" );
+                URL[] cp = CpUtil.getRealmClasspath( REALM_CLASSPATH );
+                
+                if ( cp != null )
                 {
-                   ucl = new ChildFirstUrlClassLoader(cp, this.getClass().getClassLoader());
+                    ucl = new ChildFirstUrlClassLoader(cp, this.getClass().getClassLoader() );
                 }
                 else
                 {
                     String error = CLS_NM + ".initialize invalid realm classpath setup";
-                    log.severe(error);
-                    throw new java.lang.RuntimeException(error);
+                    LOG.severe( error );
+                    throw new RuntimeException( error );
                 }
             }
-            else if (container.equalsIgnoreCase("TomcatContext"))
+            else if ( CONTAINER.equalsIgnoreCase( "TomcatContext" ) )
             {
-                log.info(CLS_NM + ".initialize Tomcat7 Context-based policy agent");
-                ucl = new URLClassLoader(new URL[]{}, Thread.currentThread().getContextClassLoader());
+                LOG.info( CLS_NM + ".initialize Tomcat7 Context-based policy agent" );
+                ucl = new URLClassLoader( new URL[]{}, Thread.currentThread().getContextClassLoader() );
             }
             else
             {
-                log.info(CLS_NM + ".initialize Tomcat7 policy agent");
-                if ( realmClasspath != null && realmClasspath.length() > 0 )
+                LOG.info( CLS_NM + ".initialize Tomcat7 policy agent" );
+                
+                if ( ( realmClasspath != null ) && ( realmClasspath.length() > 0 ) )
                 {
-                    ucl = new URLClassLoader(CpUtil.parseRealmClasspath(realmClasspath), this.getClass().getClassLoader());
+                    ucl = new URLClassLoader( CpUtil.parseRealmClasspath( realmClasspath ), this.getClass().getClassLoader() );
                 }
                 else
                 {
-                    URL[] cp = CpUtil.getRealmClasspath(REALM_CLASSPATH);
-                    if(cp != null)
+                    URL[] cp = CpUtil.getRealmClasspath( REALM_CLASSPATH );
+                    
+                    if ( cp != null )
                     {
-                        ucl = new URLClassLoader(cp, this.getClass().getClassLoader());
+                        ucl = new URLClassLoader( cp, this.getClass().getClassLoader() );
                     }
                     else
                     {
                         String error = CLS_NM + ".initialize could not resolve realm classpath";
-                        log.severe(error);
-                        throw new java.lang.RuntimeException(error);
+                        LOG.severe( error );
+                        throw new RuntimeException( error );
                     }
                 }
             }
 
-            log.info(CLS_NM + ".initialize - instantiate policy agent name: " + REALM_IMPL);
-            Class sc = ucl.loadClass(REALM_IMPL);
+            LOG.info( CLS_NM + ".initialize - instantiate policy agent name: " + REALM_IMPL );
+            Class<?> sc = ucl.loadClass( REALM_IMPL );
             realm = (TcAccessMgr) sc.newInstance();
             realm.setDefaultRoles( defaultRoles );
-            log.info(CLS_NM + " J2EE Tomcat7 policy agent initialization successful");
+            LOG.info( CLS_NM + " J2EE Tomcat7 policy agent initialization successful" );
         }
-        catch (java.lang.ClassNotFoundException e)
+        catch ( ClassNotFoundException e )
         {
             String error = CLS_NM + ".initialize caught java.lang.ClassNotFoundException=" + e.toString();
-            log.severe(error);
-            throw new java.lang.RuntimeException(error, e);
+            LOG.severe( error );
+            throw new RuntimeException( error, e );
         }
-        catch (java.lang.InstantiationException ie)
+        catch ( InstantiationException ie )
         {
             String error = CLS_NM + ".initialize caught java.lang.InstantiationException=" + ie.toString();
-            log.severe(error);
-            throw new java.lang.RuntimeException(error, ie);
+            LOG.severe( error );
+            throw new RuntimeException( error, ie );
         }
-        catch (java.lang.IllegalAccessException iae)
+        catch ( IllegalAccessException iae )
         {
             String error = CLS_NM + ".initialize caught java.lang.IllegalAccessException=" + iae.toString();
-            log.severe(error);
-            throw new java.lang.RuntimeException(error, iae);
+            LOG.severe( error );
+            throw new RuntimeException( error, iae );
         }
     }
 
@@ -150,13 +154,14 @@ public class Tc7AccessMgrProxy extends RealmBase
      * wrapped by methods on this class and are accessed via the {@code realm} instance variable of this class.
      */
     @Override
-    public Principal authenticate(String userId, String password)
+    public Principal authenticate( String userId, String password )
     {
-        if(realm == null)
+        if ( realm == null )
         {
-            throw new RuntimeException(CLS_NM + "authenticate detected Fortress Tomcat7 Realm not initialized correctly.  Check your Fortress Realm configuration");
+            throw new IllegalArgumentException( CLS_NM + "authenticate detected Fortress Tomcat7 Realm not initialized correctly.  Check your Fortress Realm configuration" );
         }
-        return realm.authenticate(userId, password.toCharArray());
+        
+        return realm.authenticate( userId, password.toCharArray() );
     }
 
 
@@ -169,15 +174,17 @@ public class Tc7AccessMgrProxy extends RealmBase
      * @return True if Role is found in TcPrincipal, false otherwise.
      */
     @Override
-    public boolean hasRole(Wrapper wrapper, Principal principal, String role)
+    public boolean hasRole( Wrapper wrapper, Principal principal, String role )
     {
         if(realm == null)
         {
-            throw new RuntimeException(CLS_NM + "authenticate detected Fortress Tomcat7 Realm not initialized correctly.  Check your Fortress Realm configuration");
+            throw new IllegalArgumentException( CLS_NM + "authenticate detected Fortress Tomcat7 Realm not initialized correctly.  Check your Fortress Realm configuration" );
         }
-        return realm.hasRole(principal, role);
+        
+        return realm.hasRole( principal, role );
     }
 
+   
     /**
      * Gets the name attribute of the TcAccessMgrProxy object
      *
@@ -186,7 +193,7 @@ public class Tc7AccessMgrProxy extends RealmBase
     @Override
     protected String getName()
     {
-        return (CLS_NM);
+        return CLS_NM;
     }
 
 
@@ -197,9 +204,9 @@ public class Tc7AccessMgrProxy extends RealmBase
      * @return The password value
      */
     @Override
-    protected String getPassword(String username)
+    protected String getPassword( String username )
     {
-        return (null);
+        return null;
     }
 
 
@@ -210,9 +217,9 @@ public class Tc7AccessMgrProxy extends RealmBase
      * @return The principal value
      */
     @Override
-    protected Principal getPrincipal(String username)
+    protected Principal getPrincipal( String username )
     {
-        return (null);
+        return null;
     }
 
 
@@ -234,12 +241,14 @@ public class Tc7AccessMgrProxy extends RealmBase
         catch (Throwable e)
         {
             String error = CLS_NM + ".startInternal caught Throwable=" + e;
-            log.severe(error);
+            LOG.severe( error );
             e.printStackTrace();
-            throw new LifecycleException(error);
+            throw new LifecycleException( error );
         }
+        
         super.startInternal();
     }
+    
 
     /**
      * Gracefully terminate the active use of the public methods of this
@@ -261,6 +270,7 @@ public class Tc7AccessMgrProxy extends RealmBase
 
     }
 
+    
     /**
      * Gets the containerType attribute of the TcAccessMgrProxy object
      *
@@ -268,20 +278,22 @@ public class Tc7AccessMgrProxy extends RealmBase
      */
     public String getContainerType()
     {
-        return container;
+        return CONTAINER;
     }
 
+    
     /**
      * Sets the containerType attribute of the TcAccessMgrProxy object
      *
      * @param container The new containerType value
      */
-    public void setContainerType(String container)
+    public void setContainerType( String container )
     {
-        log.info(CLS_NM + ".setContainerType <" + container + ">");
-        this.container = container;
+        LOG.info( CLS_NM + ".setContainerType <" + container + ">" );
+        this.CONTAINER = container;
     }
 
+    
     /**
      * Gets the realmClasspath attribute of the TcAccessMgrProxy object
      *
@@ -289,21 +301,24 @@ public class Tc7AccessMgrProxy extends RealmBase
      */
     public String getRealmClasspath()
     {
-        log.info(CLS_NM + ".getRealmClasspath <" + realmClasspath + ">");
+        LOG.info( CLS_NM + ".getRealmClasspath <" + realmClasspath + ">" );
+        
         return realmClasspath;
     }
 
+    
     /**
      * Sets the realmClasspath attribute of the TcAccessMgrProxy object
      *
      * @param rCpth The new realmClasspath value
      */
-    public void setRealmClasspath(String rCpth)
+    public void setRealmClasspath( String rCpth )
     {
-        log.info(CLS_NM + ".setRealmClasspath <" + rCpth + ">");
+        LOG.info( CLS_NM + ".setRealmClasspath <" + rCpth + ">" );
         this.realmClasspath = rCpth;
     }
 
+    
     /**
      * Gets the defaultRoles attribute of the TcAccessMgrProxy object.  When set, it will be passed into all subsequent calls to Fortress createSession.
      *
@@ -311,10 +326,12 @@ public class Tc7AccessMgrProxy extends RealmBase
      */
     public static String getDefaultRoles()
     {
-        log.info(CLS_NM + ".getDefaultRoles <" + defaultRoles + ">");
+        LOG.info( CLS_NM + ".getDefaultRoles <" + defaultRoles + ">" );
+        
         return defaultRoles;
     }
 
+    
     /**
      * Sets the defaultRoles attribute of the TcAccessMgrProxy object.  When set, it will be passed into all subsequent calls to Fortress createSession.
      *
@@ -322,7 +339,7 @@ public class Tc7AccessMgrProxy extends RealmBase
      */
     public static void setDefaultRoles( String defaultRoles )
     {
-        log.info(CLS_NM + ".setDefaultRoles <" + defaultRoles + ">");
+        LOG.info( CLS_NM + ".setDefaultRoles <" + defaultRoles + ">" );
         Tc7AccessMgrProxy.defaultRoles = defaultRoles;
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/4ca67e60/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/TcAccessMgr.java
----------------------------------------------------------------------
diff --git a/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/TcAccessMgr.java b/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/TcAccessMgr.java
index c6ccae3..f6b547e 100644
--- a/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/TcAccessMgr.java
+++ b/proxy/src/main/java/org/apache/directory/fortress/realm/tomcat/TcAccessMgr.java
@@ -38,7 +38,7 @@ public interface TcAccessMgr
      * @param role  Maps to {@code org.apache.directory.fortress.core.rbac.Role#name}.
      * @return True if Role is found in TcPrincipal, false otherwise.
      */
-    public boolean hasRole(Principal principal, String role);
+    boolean hasRole( Principal principal, String role );
 
 
     /**
@@ -48,7 +48,7 @@ public interface TcAccessMgr
      * @param password Contains the user's password.
      * @return Principal which contains the Fortress RBAC session data.
      */
-    public Principal authenticate(String userId, char[] password);
+    Principal authenticate( String userId, char[] password );
 
     /**
      * When the 'defaultRoles' parameter is set on realm proxy config (e.g. in server.xml or context.xml) it will be used to pass into
@@ -56,5 +56,5 @@ public interface TcAccessMgr
      *
      * @param roles contains a String containing comma delimited roles names.
      */
-    public void setDefaultRoles(String roles);
+    void setDefaultRoles( String roles );
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/4ca67e60/proxy/src/main/java/org/apache/directory/fortress/realm/util/ChildFirstUrlClassLoader.java
----------------------------------------------------------------------
diff --git a/proxy/src/main/java/org/apache/directory/fortress/realm/util/ChildFirstUrlClassLoader.java b/proxy/src/main/java/org/apache/directory/fortress/realm/util/ChildFirstUrlClassLoader.java
index 9c96b8f..073964f 100644
--- a/proxy/src/main/java/org/apache/directory/fortress/realm/util/ChildFirstUrlClassLoader.java
+++ b/proxy/src/main/java/org/apache/directory/fortress/realm/util/ChildFirstUrlClassLoader.java
@@ -37,9 +37,9 @@ public class ChildFirstUrlClassLoader extends URLClassLoader
      * @param urls   Contains a list of value Java classpath entries.
      * @param parent Reference to parent classloader.
      */
-    public ChildFirstUrlClassLoader(URL[] urls, ClassLoader parent)
+    public ChildFirstUrlClassLoader( URL[] urls, ClassLoader parent )
     {
-        super(urls, parent);
+        super( urls, parent );
     }
 
 
@@ -48,9 +48,9 @@ public class ChildFirstUrlClassLoader extends URLClassLoader
      *
      * @param urls   Contains a list of value Java classpath entries.
      */
-    public ChildFirstUrlClassLoader(URL[] urls)
+    public ChildFirstUrlClassLoader( URL[] urls )
     {
-        super(urls);
+        super( urls );
     }
 
 
@@ -62,36 +62,37 @@ public class ChildFirstUrlClassLoader extends URLClassLoader
      * @return Description of the Return Value
      * @throws ClassNotFoundException Description of the Exception
      */
-    protected Class loadClass(String name, boolean resolve)
-        throws ClassNotFoundException
+    protected Class<?> loadClass( String name, boolean resolve ) throws ClassNotFoundException
     {
-
-        Class c = findLoadedClass(name);
-        if (c == null)
+        Class<?> c = findLoadedClass( name );
+        
+        if ( c == null )
         {
             try
             {
-                c = findClass(name);
+                c = findClass( name );
             }
-            catch (ClassNotFoundException ignore)
+            catch ( ClassNotFoundException ignore )
             {
 
             }
-            if (c == null)
+            
+            if ( c == null) 
             {
-                if (getParent() != null)
+                if ( getParent() != null )
                 {
-                    c = getParent().loadClass(name);
+                    c = getParent().loadClass( name );
                 }
                 else
                 {
-                    c = getSystemClassLoader().loadClass(name);
+                    c = getSystemClassLoader().loadClass( name );
                 }
             }
         }
-        if (resolve)
+        
+        if ( resolve )
         {
-            resolveClass(c);
+            resolveClass( c );
         }
 
         return c;
@@ -104,21 +105,23 @@ public class ChildFirstUrlClassLoader extends URLClassLoader
      * @param name Description of the Parameter
      * @return The resource value
      */
-    public URL getResource(String name)
+    public URL getResource( String name )
     {
         URL url;
-        url = findResource(name);
-        if (url == null)
+        url = findResource( name );
+        
+        if ( url == null )
         {
-            if (getParent() != null)
+            if ( getParent() != null )
             {
-                url = getParent().getResource(name);
+                url = getParent().getResource( name );
             }
             else
             {
-                url = getSystemClassLoader().getResource(name);
+                url = getSystemClassLoader().getResource( name );
             }
         }
+        
         return url;
     }
 }

http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/4ca67e60/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
----------------------------------------------------------------------
diff --git a/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java b/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
index c6412da..c2cb3c4 100644
--- a/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
+++ b/proxy/src/main/java/org/apache/directory/fortress/realm/util/CpUtil.java
@@ -21,6 +21,7 @@ package org.apache.directory.fortress.realm.util;
 
 import java.util.logging.Logger;
 import java.io.File;
+import java.net.MalformedURLException;
 import java.net.URL;
 import java.util.StringTokenizer;
 
@@ -33,7 +34,7 @@ import java.util.StringTokenizer;
 public class CpUtil
 {
     private static final String CLS_NM = CpUtil.class.getName();
-    private static Logger log = Logger.getLogger(CLS_NM);
+    private static Logger LOG = Logger.getLogger(CLS_NM);
     private static final String PATH_SEPARATOR = "path.separator";
     private static final String FILE_PREFIX = "file:/";
     private static final String UNIX_SLASH = "/";
@@ -46,17 +47,18 @@ public class CpUtil
      * @param classpath String contains paths separated by ':' or ';' depending if Unix or Win.
      * @return URL array containing the resource names that comprise the REALM_CLASSPATH.
      */
-    public static URL[] parseRealmClasspath(String classpath)
+    public static URL[] parseRealmClasspath( String classpath )
     {
         URL urls[] = null;
+        
         try
         {
             String slash;
             String filePrefix = FILE_PREFIX;
-            String pathSeparator = System.getProperty(PATH_SEPARATOR);
+            String pathSeparator = System.getProperty( PATH_SEPARATOR );
 
             // Is this a Unix machine?
-            if (pathSeparator.compareTo(UNIX_SEPARATOR) == 0)
+            if ( UNIX_SEPARATOR.compareTo( pathSeparator ) == 0 )
             {
                 // unix requires adding extra forward slash:
                 filePrefix += UNIX_SLASH;
@@ -67,26 +69,28 @@ public class CpUtil
                 slash = WIN_SLASH;
             }
 
-            log.info(CLS_NM + ".parseRealmClasspath <" + classpath + ">");
-            StringTokenizer st = new StringTokenizer(classpath, pathSeparator, false);
+            LOG.info(CLS_NM + ".parseRealmClasspath <" + classpath + ">");
+            StringTokenizer st = new StringTokenizer( classpath, pathSeparator, false );
             int size = st.countTokens();
             urls = new URL[size];
-            for (int i = 0; i < size; i++)
+            
+            for ( int i = 0; i < size; i++ )
             {
                 String resource = st.nextToken();
-                resource = getResource(resource, slash);
+                resource = getResource( resource, slash );
                 String file = filePrefix + resource;
-                urls[i] = new URL(file);
-                log.info(CLS_NM + ".parseRealmClasspath path" + i + " <" + urls[i] + ">");
+                urls[i] = new URL( file );
+                LOG.info( CLS_NM + ".parseRealmClasspath path" + i + " <" + urls[i] + ">" );
             }
         }
-        catch (java.net.MalformedURLException me)
+        catch ( MalformedURLException me )
         {
             String error = CLS_NM + ".parseRealmClasspath caught MalformedURLException=" + me;
-            log.severe(error);
+            LOG.severe( error );
             error = CLS_NM + ".parseRealmClasspath check your Fortress REALM_CLASSPATH setting.";
-            log.severe(error);
+            LOG.severe( error );
         }
+        
         return urls;
     }
 
@@ -97,31 +101,32 @@ public class CpUtil
      * @param cpProp contains paths separated by ':' or ';' depending if Unix or Win.
      * @return URL array containing the resource names that comprise the REALM_CLASSPATH.
      */
-    public static URL[] getRealmClasspath(String cpProp)
+    public static URL[] getRealmClasspath( String cpProp )
     {
         URL urls[] = null;
+        
         try
         {
             String slash;
             String filePrefix = FILE_PREFIX;
-            String classpath = System.getProperty(cpProp);
-            String pathSeparator = System.getProperty(PATH_SEPARATOR);
+            String classpath = System.getProperty( cpProp );
+            String pathSeparator = System.getProperty( PATH_SEPARATOR );
 
-            if(classpath == null || classpath.length() == 0)
+            if ( ( classpath == null ) || ( classpath.length() == 0 ) )
             {
                 String error = CLS_NM + ".parseRealmClasspath invalid realm classpath detected";
-                log.severe(error);
-                throw new java.lang.RuntimeException(error);
+                LOG.severe( error );
+                throw new RuntimeException( error );
             }
-            else if(pathSeparator == null || pathSeparator.length() == 0)
+            else if( ( pathSeparator == null ) || ( pathSeparator.length() == 0 ) )
             {
                 String error = CLS_NM + ".parseRealmClasspath invalid classpath detected";
-                log.severe(error);
-                throw new java.lang.RuntimeException(error);
+                LOG.severe( error );
+                throw new RuntimeException( error );
             }
 
             // Is this a Unix machine?
-            if (pathSeparator.compareTo(UNIX_SEPARATOR) == 0)
+            if ( pathSeparator.compareTo( UNIX_SEPARATOR ) == 0 )
             {
                 // unix requires adding extra forward slash:
                 filePrefix += UNIX_SLASH;
@@ -131,25 +136,28 @@ public class CpUtil
             {
                 slash = WIN_SLASH;
             }
-            log.info(CLS_NM + ".parseRealmClasspath <" + classpath + ">");
-            StringTokenizer st = new StringTokenizer(classpath, pathSeparator, false);
+            
+            LOG.info( CLS_NM + ".parseRealmClasspath <" + classpath + ">" );
+            StringTokenizer st = new StringTokenizer( classpath, pathSeparator, false );
             int size = st.countTokens();
             urls = new URL[size];
-            for (int i = 0; i < size; i++)
+            
+            for ( int i = 0; i < size; i++ )
             {
                 String resource = st.nextToken();
-                resource = getResource(resource, slash);
+                resource = getResource( resource, slash );
                 String file = filePrefix + resource;
-                urls[i] = new URL(file);
-                log.info(CLS_NM + ".parseRealmClasspath path" + i + " <" + urls[i] + ">");
+                urls[i] = new URL( file );
+                LOG.info( CLS_NM + ".parseRealmClasspath path" + i + " <" + urls[i] + ">" );
             }
         }
-        catch (java.net.MalformedURLException me)
+        catch ( MalformedURLException me )
         {
             String error = CLS_NM + ".parseRealmClasspath caught MalformedURLException=" + me;
-            log.severe(error);
-            throw new java.lang.RuntimeException(error);
+            LOG.severe( error );
+            throw new RuntimeException( error );
         }
+        
         return urls;
     }
 
@@ -162,17 +170,19 @@ public class CpUtil
      * @param slash
      * @return String containing resource value
      */
-    private static String getResource(String name, String slash)
+    private static String getResource( String name, String slash )
     {
-        File rFile = new File(name);
-        if (rFile.isDirectory())
+        File rFile = new File( name );
+        
+        if ( rFile.isDirectory() )
         {
-            if (name.lastIndexOf(slash) != (name.length() - 1))
+            if ( name.lastIndexOf( slash ) != ( name.length() - 1 ) )
             {
                 name += slash;
-                log.info(CLS_NM + ".getResource slash added to dir path");
+                LOG.info( CLS_NM + ".getResource slash added to dir path" );
             }
         }
+        
         return name;
     }
 }
\ No newline at end of file


Mime
View raw message