jvanzyl     2002/11/24 09:58:05

  Modified:    src/java/org/apache/maven/app ProjectVerifier.java
  Log:
  refactoring
  
  Revision  Changes    Path
  1.18      +7 -5      
jakarta-turbine-maven/src/java/org/apache/maven/app/ProjectVerifier.java
  
  Index: ProjectVerifier.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/app/ProjectVerifier.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ProjectVerifier.java      15 Nov 2002 19:47:26 -0000      1.17
  +++ ProjectVerifier.java      24 Nov 2002 17:58:05 -0000      1.18
  @@ -286,9 +286,12 @@
       private void verifySettings()
           throws Exception
       {        
  +        //!! Why is this value being lost?
           String localRepoProp = (String) getContext()
                                           .getVariable(MavenConstants.REPO_LOCAL);
  -
  +        // We seem to have to force it.
  +        localRepoProp = (String) getContext().getVariable(MavenConstants.HOME) + 
"/repository";
  +        
           if (localRepoProp == null)
           {
               // This is not likely to happen any more as it defaults
  @@ -351,7 +354,7 @@
               setProxyPassword((String) 
context.getVariable(MavenConstants.PROXY_PASSWORD));
           }
   
  -        Boolean online = (Boolean) context.getVariable(MavenConstants.ONLINE);
  +        Boolean online = context.getBoolean(MavenConstants.ONLINE);
           if (online != null && !online.booleanValue()) 
           {
               setOnline(false);
  @@ -375,8 +378,7 @@
       private void verifyDependencies()
           throws Exception
       {
  -        Boolean remoteRepoEnabled = (Boolean) 
  -            context.getVariable(MavenConstants.REPO_REMOTE_ENABLED);
  +        Boolean remoteRepoEnabled = 
context.getBoolean(MavenConstants.REPO_REMOTE_ENABLED);
   
           if (remoteRepoEnabled != null && !remoteRepoEnabled.booleanValue())
           {
  
  
  

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

Reply via email to