ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/frontends CLIMain.java
Date Thu, 13 Jun 2002 02:42:43 GMT
donaldp     2002/06/12 19:42:43

  Modified:    container/src/java/org/apache/myrmidon/frontends
                        CLIMain.java
  Log:
  Use DefaultModelBuilder rather than ModelELementUtil
  
  Revision  Changes    Path
  1.49      +5 -4      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/frontends/CLIMain.java
  
  Index: CLIMain.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/frontends/CLIMain.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- CLIMain.java	8 Jun 2002 23:56:04 -0000	1.48
  +++ CLIMain.java	13 Jun 2002 02:42:43 -0000	1.49
  @@ -12,9 +12,9 @@
   import java.io.InputStreamReader;
   import java.util.ArrayList;
   import java.util.HashMap;
  +import java.util.Iterator;
   import java.util.List;
   import java.util.Map;
  -import java.util.Iterator;
   import org.apache.avalon.excalibur.cli.CLArgsParser;
   import org.apache.avalon.excalibur.cli.CLOption;
   import org.apache.avalon.excalibur.cli.CLOptionDescriptor;
  @@ -26,9 +26,9 @@
   import org.apache.myrmidon.Constants;
   import org.apache.myrmidon.api.TaskException;
   import org.apache.myrmidon.api.metadata.ModelElement;
  +import org.apache.myrmidon.components.builder.DefaultModelBuilder;
   import org.apache.myrmidon.interfaces.BasicLogger;
   import org.apache.myrmidon.interfaces.EmbeddedAnt;
  -import org.apache.myrmidon.interfaces.model.ModelElementUtil;
   import org.apache.myrmidon.interfaces.executor.Executor;
   
   /**
  @@ -432,7 +432,8 @@
           if( m_listenerConfig != null )
           {
               // Load model from file
  -            listenerModel = ModelElementUtil.loadModel( m_listenerConfig );
  +            final DefaultModelBuilder builder = new DefaultModelBuilder();
  +            listenerModel = builder.build( m_listenerConfig );
           }
           else if( m_listenerName != null )
           {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message