[jboss-jira] [JBoss JIRA] Created: (JBMICROCONT-184) Parsing more than one file

Adrian Brock (JIRA) jira-events at lists.jboss.org
Mon Jul 2 14:15:57 EDT 2007


Parsing more than one file
--------------------------

                 Key: JBMICROCONT-184
                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-184
             Project: JBoss MicroContainer
          Issue Type: Task
          Components: Deployment
            Reporter: Adrian Brock
             Fix For: JBossMC_2_0_0_CR1


The AbstractVFSParser has the following limitiation:


   @Override
   protected T parse(DeploymentUnit unit, String name, String suffix, T root) throws Exception
   {
      // Should we include the deployment
      // The infrastructure will only check leafs anyway so no need to check here
      if (name == null && isIncludeDeploymentFile())
         name = unit.getName();
      
      // Try to find the metadata
      VFSDeploymentUnit vfsDeploymentUnit = (VFSDeploymentUnit) unit;
      List<VirtualFile> files = vfsDeploymentUnit.getMetaDataFiles(name, suffix);
      if (files.size() == 0)
         return null;
      
      // TODO remove this limitation
      if (files.size() > 1)
         throw new DeploymentException("Only one file is allowed, found=" + files);

      VirtualFile file = files.get(0);

This is really also related to the "reparse" that is done for ejb-jar.xml/jboss.xml and [jboss-]web.xml

There should be parsing deployers that know how to parse multiple files into one object model.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list