Index: C:/maven-changelog-plugin/xdocs/properties.xml =================================================================== --- C:/maven-changelog-plugin/xdocs/properties.xml (revision 231481) +++ C:/maven-changelog-plugin/xdocs/properties.xml (working copy) @@ -161,6 +161,14 @@ and hence has access to the source code repository. + + maven.changelog.clearcase.branch + Yes + + Used by the Clearcase change log to get the change history + from a specific branch. + + Index: C:/maven-changelog-plugin/src/main/org/apache/maven/changelog/ChangeLog.java =================================================================== --- C:/maven-changelog-plugin/src/main/org/apache/maven/changelog/ChangeLog.java (revision 233055) +++ C:/maven-changelog-plugin/src/main/org/apache/maven/changelog/ChangeLog.java (working copy) @@ -84,6 +84,11 @@ * Input dir. Working directory for running CVS executable */ private File base; + + /** + * Used to specify the branch in Clearcase. + */ + private String branch; /** * The classname of our ChangeLogFactory, defaulting to Maven's built in @@ -658,5 +663,21 @@ { this.commentFormat = commentFormat; } - + + /** + * @return Returns the branch. + */ + public String getBranch() + { + return branch; + } + /** + * Sets the branch for Clearcase + * @param branch The branch to set. + */ + public void setBranch(String branch) + { + this.branch = branch; + } + } // end of ChangeLog Index: C:/maven-changelog-plugin/src/main/org/apache/maven/clearcaselib/ClearcaseChangeLogGenerator.java =================================================================== --- C:/maven-changelog-plugin/src/main/org/apache/maven/clearcaselib/ClearcaseChangeLogGenerator.java (revision 231481) +++ C:/maven-changelog-plugin/src/main/org/apache/maven/clearcaselib/ClearcaseChangeLogGenerator.java (working copy) @@ -85,6 +85,13 @@ command.createArgument().setValue(format.toString()); command.createArgument().setValue("-recurse"); command.createArgument().setValue("-nco"); + + String branch = this.changeLogExecutor.getBranch(); + if (branch != null) + { + command.createArgument().setValue("-branch"); + command.createArgument().setValue(branch); + } command.createArgument().setValue("-since"); command.createArgument().setValue(dateRange); Index: C:/maven-changelog-plugin/plugin.jelly =================================================================== --- C:/maven-changelog-plugin/plugin.jelly (revision 231481) +++ C:/maven-changelog-plugin/plugin.jelly (working copy) @@ -105,6 +105,7 @@ repositoryConnection="${_connection}" dateFormat="${maven.changelog.dateformat}" commentFormat="${maven.changelog.commentFormat}" + branch="${maven.changelog.clearcase.branch}" />