package org.apache.maven.mkslib; /* ==================================================================== * Copyright 2005 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.util.Date; import org.apache.maven.changelog.AbstractChangeLogGenerator; import org.apache.maven.util.RepositoryUtils; import org.apache.tools.ant.types.Commandline; /** * A log-generator for the mks commandline tool. * * It supports an input file with * * @author Christoph Jerolimov * @version $Id: $ */ public class MksChangeLogGenerator extends AbstractChangeLogGenerator { protected Commandline getScmLogCommand() { String tokens[] = RepositoryUtils.splitSCMConnection(getConnection()); Commandline commandline = new Commandline(); commandline.setExecutable(tokens[2]); for (int i = 3; i < tokens.length; i++) { commandline.createArgument().setValue(tokens[i]); } return commandline; } protected String getScmDateArgument(Date before, Date to) { return null; } protected String getScmTagArgument(String tagStart, String tagEnd) { return null; } }