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/proposal/myrmidon/src/java/org/apache/myrmidon/components/builder DefaultProjectBuilder.java
Date Tue, 15 Jan 2002 08:50:59 GMT
donaldp     02/01/15 00:50:59

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/builder
                        DefaultProjectBuilder.java
  Log:
  if left unspecified default target is "main"
  
  Revision  Changes    Path
  1.23      +1 -3      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/builder/DefaultProjectBuilder.java
  
  Index: DefaultProjectBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/builder/DefaultProjectBuilder.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- DefaultProjectBuilder.java	14 Jan 2002 09:04:17 -0000	1.22
  +++ DefaultProjectBuilder.java	15 Jan 2002 08:50:59 -0000	1.23
  @@ -123,8 +123,7 @@
   
           //get project-level attributes
           final String baseDirectoryName = configuration.getAttribute( "basedir", null );
  -        final String defaultTarget = configuration.getAttribute( "default" );
  -        //final String name = configuration.getAttribute( "name" );
  +        final String defaultTarget = configuration.getAttribute( "default", "main" );
   
           //determine base directory for project.  Use the directory containing
           //the build file as the default.
  @@ -145,7 +144,6 @@
           final DefaultProject project = new DefaultProject();
           project.setDefaultTargetName( defaultTarget );
           project.setBaseDirectory( baseDirectory );
  -        //project.setName( name );
   
           return project;
       }
  
  
  

--
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