/** * Copyright (C) 2008-2010, Squale Project - http://www.squale.org * * This file is part of Squale. * * Squale is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or any later version. * * Squale is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Squale. If not, see <http://www.gnu.org/licenses/>. */ package org.squale.squalix.tools.scm.task; import org.apache.maven.scm.manager.BasicScmManager; import org.apache.maven.scm.provider.cvslib.cvsjava.CvsJavaScmProvider; /** * Connection to a Cvs repository */ public class RepositoryCvs extends AbstractRepository { /** Constructor by default */ public RepositoryCvs() { this.setScmManager( new BasicScmManager() ); this.getScmManager().setScmProvider( "cvs", new CvsJavaScmProvider() ); } /** * Constructor * * @param pPath path to check out * @param pTemporaryDirectory local directory where check out are performed * @param pLocation location (directory or module) to check out * @param pLogin user profile to connect to the repository * @param pPassword user profile's password to connect to the repository */ public RepositoryCvs( String pPath, String pTemporaryDirectory, String pLocation, String pLogin, String pPassword ) { this.setScmManager( new BasicScmManager() ); this.getScmManager().setScmProvider( "cvs", new CvsJavaScmProvider() ); this.setScmTemporaryDirectory( createModuleTempDirFromPipeOrColon( pPath, pTemporaryDirectory ) ); this.setLocation( pLocation ); this.setLogin( pLogin ); this.setPassword( pPassword ); } }