maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject cvs commit: maven-wagon/wagon-providers/wagon-ssh/src/test/java/org/apache/maven/wagon/providers/ssh TestData.java
Date Tue, 26 Oct 2004 18:52:09 GMT
michal      2004/10/26 11:52:09

  Added:       wagon-providers/wagon-ssh/src/test/java/org/apache/maven/wagon/providers/ssh
                        TestData.java
  Log:
  trting to make test pass in continuum for ssh provider
  
  Revision  Changes    Path
  1.1                  maven-wagon/wagon-providers/wagon-ssh/src/test/java/org/apache/maven/wagon/providers/ssh/TestData.java
  
  Index: TestData.java
  ===================================================================
  package org.apache.maven.wagon.providers.ssh;
  
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  import java.io.File;
  
  /**
   * @author <a href="michal@codehaus.org">Michal Maczka</a>
   * @version $Id: TestData.java,v 1.1 2004/10/26 18:52:09 michal Exp $
   */
  public class TestData
  {
      public static String getTestRepositoryUrl()
      {
          return "scp://beaver.codehaus.org//home/projects/" + getUserName() + "/public_html";
      }
  
      public static String getUserName()
      {
  
          String retValue = System.getProperty( "testuser.name" );
  
          if ( retValue == null )
          {
              retValue = System.getProperty( "user.name" );
          }
  
          return retValue;
      }
  
      public static File getPrivateKey()
      {
          File retValue = new File( System.getProperty( "user.home" ), "/.ssh/id_dsa" );
  
          return retValue;
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-cvs-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-cvs-help@maven.apache.org


Mime
View raw message