werken      2002/06/27 19:49:31

  Modified:    src/java/org/apache/maven/app Maven.java
  Log:
  Slight clean-up.
  
  Revision  Changes    Path
  1.34      +27 -2     jakarta-turbine-maven/src/java/org/apache/maven/app/Maven.java
  
  Index: Maven.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/app/Maven.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- Maven.java        28 Jun 2002 02:42:38 -0000      1.33
  +++ Maven.java        28 Jun 2002 02:49:31 -0000      1.34
  @@ -1147,8 +1147,31 @@
       {
           ProjectVerifier verifier = new ProjectVerifier();
   
  -        String localRepoProp  = getProperty( "maven.repo.local" );
  -        String remoteRepoProp = getProperty( "maven.repo.remote" );
  +        String localRepoProp = getProperty( "maven.repo.local" );
  +
  +        if ( localRepoProp == null )
  +        {
  +            localRepoProp = getProperty( "lib.repo" );
  +
  +            if ( localRepoProp != null )
  +            {
  +                System.out.println( "----------------------------------------" );
  +                System.out.println( "DEPRECATION WARNING");
  +                System.out.println( "" );
  +                System.out.println( " The usage of the lib.repo property has" );
  +                System.out.println( " been deprecated." );
  +                System.out.println( "" );
  +                System.out.println( " The lib.repo property has been replaced " );
  +                System.out.println( " with the maven.repo.local property" );
  +                System.out.println( "" );
  +                System.out.println( " An easy solution is to simply add this" );
  +                System.out.println( " line to your build.properties:" );
  +                System.out.println( "" );
  +                System.out.println( "   maven.repo.local=${lib.repo}" );
  +                System.out.println( "" );
  +                System.out.println( "----------------------------------------" );
  +            } 
  +        }
   
           if ( localRepoProp == null )
           {
  @@ -1162,6 +1185,8 @@
                   // FIXME: display warning here
               }
           }
  +
  +        String remoteRepoProp = getProperty( "maven.repo.remote" );
   
           if ( remoteRepoProp == null )
           {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to