[jboss-cvs] JBossAS SVN: r68562 - trunk/server/src/main/org/jboss/deployment.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 26 12:16:25 EST 2007


Author: alesj
Date: 2007-12-26 12:16:25 -0500 (Wed, 26 Dec 2007)
New Revision: 68562

Modified:
   trunk/server/src/main/org/jboss/deployment/EARStructure.java
Log:
If indent.

Modified: trunk/server/src/main/org/jboss/deployment/EARStructure.java
===================================================================
--- trunk/server/src/main/org/jboss/deployment/EARStructure.java	2007-12-26 17:11:26 UTC (rev 68561)
+++ trunk/server/src/main/org/jboss/deployment/EARStructure.java	2007-12-26 17:16:25 UTC (rev 68562)
@@ -234,33 +234,34 @@
          // Create subdeployments for the ear modules
          ModulesMetaData modules = appMetaData.getModules();
          if(modules != null)
-         for (ModuleMetaData mod : modules)
          {
-            String fileName = mod.getFileName();
-            if (fileName != null && (fileName = fileName.trim()).length() > 0)
+            for (ModuleMetaData mod : modules)
             {
-               try
+               String fileName = mod.getFileName();
+               if (fileName != null && (fileName = fileName.trim()).length() > 0)
                {
-                  VirtualFile module = file.findChild(fileName);
-                  if (module == null)
+                  try
                   {
-                     throw new RuntimeException(fileName + " module listed in application.xml does not exist within .ear " + file.getName());
+                     VirtualFile module = file.findChild(fileName);
+                     if (module == null)
+                     {
+                        throw new RuntimeException(fileName + " module listed in application.xml does not exist within .ear " + file.getName());
+                     }
+                     // Ask the deployers to analyze this
+                     if( deployers.determineStructure(root, file, module, metaData) == false )
+                     {
+                        throw new RuntimeException(fileName
+                              + " module listed in application.xml is not a recognized deployment, .ear: "
+                              + file.getName());
+                     }
                   }
-                  // Ask the deployers to analyze this
-                  if( deployers.determineStructure(root, file, module, metaData) == false )
+                  catch (IOException ignored)
                   {
-                     throw new RuntimeException(fileName
-                           + " module listed in application.xml is not a recognized deployment, .ear: "
-                           + file.getName());
+                     throw new RuntimeException(fileName + " module listed in application.xml does not exist within .ear " + file.getName(), ignored);
                   }
                }
-               catch (IOException ignored)
-               {
-                  throw new RuntimeException(fileName + " module listed in application.xml does not exist within .ear " + file.getName(), ignored);
-               }
             }
          }
-
          valid = true;
       }
       catch(Exception e)




More information about the jboss-cvs-commits mailing list