clirr-devel Mailing List for Clirr (Page 22)
Status: Alpha
Brought to you by:
lkuehne
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(23) |
Nov
|
Dec
(25) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(9) |
Feb
|
Mar
|
Apr
|
May
(76) |
Jun
(207) |
Jul
(242) |
Aug
(42) |
Sep
(33) |
Oct
|
Nov
(7) |
Dec
(1) |
2005 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(66) |
Sep
(38) |
Oct
(6) |
Nov
|
Dec
(2) |
2006 |
Jan
(17) |
Feb
(5) |
Mar
(28) |
Apr
(6) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(7) |
2007 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
(33) |
Jun
(4) |
Jul
(3) |
Aug
|
Sep
(5) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
(4) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(1) |
Jun
|
Jul
(6) |
Aug
(8) |
Sep
(5) |
Oct
(20) |
Nov
(7) |
Dec
(9) |
2009 |
Jan
(8) |
Feb
(3) |
Mar
(20) |
Apr
(10) |
May
(40) |
Jun
(11) |
Jul
(23) |
Aug
(4) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(2) |
2010 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(22) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(2) |
2014 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2015 |
Jan
(1) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <lk...@us...> - 2004-07-15 17:03:09
|
Update of /cvsroot/clirr/clirr/core/src/testinput/testlib-v2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9281/testlib-v2 Log Message: Directory /cvsroot/clirr/clirr/core/src/testinput/testlib-v2 added to the repository |
From: <lk...@us...> - 2004-07-15 17:03:09
|
Update of /cvsroot/clirr/clirr/core/src/testinput/testlib-v1 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9281/testlib-v1 Log Message: Directory /cvsroot/clirr/clirr/core/src/testinput/testlib-v1 added to the repository |
From: Vincent M. <vm...@pi...> - 2004-07-15 13:48:07
|
Hi, I've checked in the first version of the Maven plugin. I haven't been able to make it work as I'm getting a classcastexception when running it on the Cactus framework project: java.lang.ClassCastException at net.sf.clirr.core.internal.JavaClassNameComparator.compare(JavaClassNameComp arator.java:52) at net.sf.clirr.core.internal.CoIterator.next(CoIterator.java:147) at net.sf.clirr.core.internal.checks.InterfaceSetCheck.check(InterfaceSetCheck. java:70) at net.sf.clirr.core.Checker.runClassChecks(Checker.java:334) at net.sf.clirr.core.Checker.reportDiffs(Checker.java:297) at net.sf.clirr.core.Checker.reportDiffs(Checker.java:168) at net.sf.clirr.ant.AntTask.execute(AntTask.java:259) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) Any idea? (I haven't had the time to look at the Clirr source code) Thanks -Vincent |
From: Vincent M. <vm...@pi...> - 2004-07-15 13:46:52
|
Hi, Here's what I get when I try to build the core project: C:\dev\clirr\core>maven clean jar:install __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 Plugin 'maven-deploy-plugin' in project 'Clirr Core' is not available build:start: clean:clean: [delete] Deleting directory C:\dev\clirr\core\target clean: multiproject:clean: multiproject:projects-init: [echo] Gathering project list Starting the reactor... Our processing order: Starting the reactor... Our processing order: multiproject:goal: java:prepare-filesystem: [mkdir] Created dir: C:\dev\clirr\core\target\classes java:compile: [echo] Compiling to C:\dev\clirr\core/target/classes [javac] Compiling 31 source files to C:\dev\clirr\core\target\classes java:jar-resources: Copying 3 files to C:\dev\clirr\core\target\classes test:prepare-filesystem: [mkdir] Created dir: C:\dev\clirr\core\target\test-classes [mkdir] Created dir: C:\dev\clirr\core\target\test-reports test:test-resources: test:compile: [javac] Compiling 13 source files to C:\dev\clirr\core\target\test-classes test:test: clirr:compiletestlibs: Compiling test input testlib-v1 [mkdir] Created dir: C:\dev\clirr\core\target\testinput\testlib-v1\classes BUILD FAILED File...... C:\dev\clirr\core\maven.xml Element... javac Line...... 19 Column.... 41 srcdir "C:\dev\clirr\core\src\testinput\testlib-v1" does not exist! Total time: 4 seconds Finished at: Thu Jul 15 15:44:38 CEST 2004 C:\dev\clirr\core> Any idea? Thanks -Vincent |
From: Vincent M. <vm...@us...> - 2004-07-15 13:37:03
|
Update of /cvsroot/clirr/clirr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2956 Modified Files: project.xml Log Message: Added groupId element to put all Clirr artifacts in one place in the repo Index: project.xml =================================================================== RCS file: /cvsroot/clirr/clirr/project.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- project.xml 11 Jul 2004 11:03:16 -0000 1.23 +++ project.xml 15 Jul 2004 13:36:54 -0000 1.24 @@ -4,6 +4,8 @@ <!-- the version of maven's project object model --> <pomVersion>3</pomVersion> + <groupId>clirr</groupId> + <!-- a unique name for this project --> <id>clirr</id> |
From: Vincent M. <vm...@us...> - 2004-07-15 13:35:06
|
Update of /cvsroot/clirr/clirr/maven In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2536/maven Modified Files: plugin.jelly Log Message: Binary --> Ascii Index: plugin.jelly =================================================================== RCS file: /cvsroot/clirr/clirr/maven/plugin.jelly,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin.jelly 15 Jul 2004 13:34:22 -0000 1.1 +++ plugin.jelly 15 Jul 2004 13:34:58 -0000 1.2 @@ -1,122 +1,122 @@ -<?xml version="1.0"?> - -<!-- - ============================================================================= - Maven plugin for Clirr. - ============================================================================= ---> - -<project - xmlns:j="jelly:core" - xmlns:util="jelly:util" - xmlns:ant="jelly:ant" - xmlns:x="jelly:xml"> - - <!-- - ======================================================================== - Default goal. - ======================================================================== - --> - <goal name="clirr" description="Run binary compatibility check" - prereqs="clirr:check"/> - - <!-- - ======================================================================== - Initializations. - ======================================================================== - --> - <goal name="clirr:init"> - - <ant:path id="clirr.classpath"> - <ant:pathelement location="${plugin.getDependencyPath('clirr:clirr-core')}"/> - <ant:pathelement location="${plugin.getDependencyPath('bcel:bcel')}"/> - </ant:path> - - <ant:taskdef resource="clirrtask.properties" classpathref="clirr.classpath"/> - - </goal> - - <!-- - ======================================================================== - Download baseline version - ======================================================================== - --> - <goal name="clirr:download-baseline" prereqs="clirr:init"> - - <!-- If the clirr.baseline.version property is not defined, we get - the last released version from the POM using the <versions> tag. We - assume the latest version is the last one in the <version> list. --> - <j:invokeStatic var="latestVersion" method="getLatestVersion" - className="net.sf.clirr.maven.ClirrUtils"> - <j:arg type="java.util.List" value="${pom.versions}"/> - </j:invokeStatic> - - <j:if test="${latestVersion == null}"> - <ant:fail>No released version found in the POM. Please specify a baseline version using the clirr.baseline.version property.</ant:fail> - </j:if> - - <!-- Compute baseline jar name/url --> - <j:set var="clirr.baseline.jar" - value="${pom.artifactId}-${latestVersion}.${clirr.baseline.type}"/> - <j:set var="clirr.baseline.url" - value="${clirr.baseline.url}/${clirr.baseline.jar}"/> - - <!-- Location where to put downloaded baseline jar --> - <j:set var="clirr.baseline.destination" - value="${maven.repo.local}/${pom.groupId}/${clirr.baseline.type}s/${clirr.baseline.jar}"/> - - <!-- Download baseline jar if online --> - <j:choose> - <j:when test="${maven.mode.online}"> - - <!-- TODO: Improve error reporting when working offline or when an - error occurs in the call to HttpUtils.getFile() --> - <j:invokeStatic method="getBaselineJar" - className="net.sf.clirr.maven.ClirrUtils"> - <j:arg type="org.apache.maven.jelly.MavenJellyContext" value="${context}"/> - </j:invokeStatic> - - </j:when> - <j:otherwise> - - <ant:available property="baselineJarPresent" file="${clirr.baseline.destination}"/> - <j:if test="${baselineJarPresent == null}"> - <ant:fail>Cannot find file [${clirr.baseline.destination}]</ant:fail> - </j:if> - - </j:otherwise> - </j:choose> - - </goal> - - <!-- - ======================================================================== - Run binary compatibility checks. - ======================================================================== - --> - <goal name="clirr:check" prereqs="clirr:init" - description="Run binary compatibility check"> - - <j:if test="${context.getVariable('clirr.baseline.download') == true - and context.getVariable('clirr.baseline.destination') == null}"> - <attainGoal name="clirr:download-baseline"/> - </j:if> - - <attainGoal name="jar:jar"/> - - <ant:dirname property="clirr.baseline.destination.dir" - file="${clirr.baseline.destination}"/> - <ant:basename property="clirr.baseline.destination.basename" - file="${clirr.baseline.destination}"/> - - <clirr failOnWarning="${clirr.fail.on.warning}" - failOnError="${clirr.fail.on.error}"> - <origFiles dir="${clirr.baseline.destination.dir}" - includes="${clirr.baseline.destination.basename}"/> - <newFiles dir="${maven.build.dir}" includes="${maven.final.name}.jar"/> - <formatter type="xml" outfile="${clirr.report.file}"/> - </clirr> - - </goal> - -</project> +<?xml version="1.0"?> + +<!-- + ============================================================================= + Maven plugin for Clirr. + ============================================================================= +--> + +<project + xmlns:j="jelly:core" + xmlns:util="jelly:util" + xmlns:ant="jelly:ant" + xmlns:x="jelly:xml"> + + <!-- + ======================================================================== + Default goal. + ======================================================================== + --> + <goal name="clirr" description="Run binary compatibility check" + prereqs="clirr:check"/> + + <!-- + ======================================================================== + Initializations. + ======================================================================== + --> + <goal name="clirr:init"> + + <ant:path id="clirr.classpath"> + <ant:pathelement location="${plugin.getDependencyPath('clirr:clirr-core')}"/> + <ant:pathelement location="${plugin.getDependencyPath('bcel:bcel')}"/> + </ant:path> + + <ant:taskdef resource="clirrtask.properties" classpathref="clirr.classpath"/> + + </goal> + + <!-- + ======================================================================== + Download baseline version + ======================================================================== + --> + <goal name="clirr:download-baseline" prereqs="clirr:init"> + + <!-- If the clirr.baseline.version property is not defined, we get + the last released version from the POM using the <versions> tag. We + assume the latest version is the last one in the <version> list. --> + <j:invokeStatic var="latestVersion" method="getLatestVersion" + className="net.sf.clirr.maven.ClirrUtils"> + <j:arg type="java.util.List" value="${pom.versions}"/> + </j:invokeStatic> + + <j:if test="${latestVersion == null}"> + <ant:fail>No released version found in the POM. Please specify a baseline version using the clirr.baseline.version property.</ant:fail> + </j:if> + + <!-- Compute baseline jar name/url --> + <j:set var="clirr.baseline.jar" + value="${pom.artifactId}-${latestVersion}.${clirr.baseline.type}"/> + <j:set var="clirr.baseline.url" + value="${clirr.baseline.url}/${clirr.baseline.jar}"/> + + <!-- Location where to put downloaded baseline jar --> + <j:set var="clirr.baseline.destination" + value="${maven.repo.local}/${pom.groupId}/${clirr.baseline.type}s/${clirr.baseline.jar}"/> + + <!-- Download baseline jar if online --> + <j:choose> + <j:when test="${maven.mode.online}"> + + <!-- TODO: Improve error reporting when working offline or when an + error occurs in the call to HttpUtils.getFile() --> + <j:invokeStatic method="getBaselineJar" + className="net.sf.clirr.maven.ClirrUtils"> + <j:arg type="org.apache.maven.jelly.MavenJellyContext" value="${context}"/> + </j:invokeStatic> + + </j:when> + <j:otherwise> + + <ant:available property="baselineJarPresent" file="${clirr.baseline.destination}"/> + <j:if test="${baselineJarPresent == null}"> + <ant:fail>Cannot find file [${clirr.baseline.destination}]</ant:fail> + </j:if> + + </j:otherwise> + </j:choose> + + </goal> + + <!-- + ======================================================================== + Run binary compatibility checks. + ======================================================================== + --> + <goal name="clirr:check" prereqs="clirr:init" + description="Run binary compatibility check"> + + <j:if test="${context.getVariable('clirr.baseline.download') == true + and context.getVariable('clirr.baseline.destination') == null}"> + <attainGoal name="clirr:download-baseline"/> + </j:if> + + <attainGoal name="jar:jar"/> + + <ant:dirname property="clirr.baseline.destination.dir" + file="${clirr.baseline.destination}"/> + <ant:basename property="clirr.baseline.destination.basename" + file="${clirr.baseline.destination}"/> + + <clirr failOnWarning="${clirr.fail.on.warning}" + failOnError="${clirr.fail.on.error}"> + <origFiles dir="${clirr.baseline.destination.dir}" + includes="${clirr.baseline.destination.basename}"/> + <newFiles dir="${maven.build.dir}" includes="${maven.final.name}.jar"/> + <formatter type="xml" outfile="${clirr.report.file}"/> + </clirr> + + </goal> + +</project> |
From: Vincent M. <vm...@us...> - 2004-07-15 13:34:31
|
Update of /cvsroot/clirr/clirr/maven In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2426/maven Added Files: project.xml plugin.properties plugin.jelly .cvsignore Log Message: First cut of a Maven plugin for Clirr --- NEW FILE --- <?xml version="1.0" encoding="UTF-8"?> <project> <extend>${basedir}/../project.xml</extend> <id>clirr-maven</id> <name>Clirr Maven plugin</name> <!-- Note: Although we inherit from project.xml, we still cannot remove the <currentVersion> tag as this project.xml is parsed at runtime whenever our plugin is called. --> <currentVersion>0.4-SNAPSHOT</currentVersion> <package>net.sf.clirr.maven</package> <description>Maven plugin for Clirr</description> <shortDescription>Maven plugin for Clirr</shortDescription> <siteDirectory>/home/groups/c/cl/clirr/htdocs/maven</siteDirectory> <repository> <connection>scm:cvs:pserver:ano...@cv...:/cvsroot/clirr/maven:clirr</connection> <url>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/clirr/maven</url> </repository> <dependencies> <dependency> <groupId>clirr</groupId> <artifactId>clirr-core</artifactId> <version>${pom.currentVersion}</version> </dependency> <dependency> <groupId>bcel</groupId> <artifactId>bcel</artifactId> <version>5.1</version> <url>http://jakarta.apache.org/bcel</url> </dependency> <dependency> <groupId>maven</groupId> <artifactId>maven</artifactId> <version>1.0-rc2</version> </dependency> <dependency> <groupId>commons-jelly</groupId> <artifactId>commons-jelly</artifactId> <version>20030902.160215</version> </dependency> <!-- Required only for the plugin's unit tests! --> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.0</version> </dependency> </dependencies> <build> <sourceDirectory>src/main</sourceDirectory> <resources> <resource> <directory>src/plugin-resources</directory> <targetPath>plugin-resources</targetPath> </resource> <resource> <directory>.</directory> <includes> <include>plugin.jelly</include> <include>plugin.properties</include> <include>project.properties</include> <include>project.xml</include> </includes> </resource> </resources> </build> <reports> <report>maven-changes-plugin</report> <report>maven-changelog-plugin</report> <report>maven-file-activity-plugin</report> <report>maven-developer-activity-plugin</report> <report>maven-file-activity-plugin</report> <report>maven-license-plugin</report> <report>maven-linkcheck-plugin</report> </reports> </project> --- NEW FILE --- # ------------------------------------------------------------------- # Default properties for the Clirr Plugin # ------------------------------------------------------------------- # Decide whether the plugin will try to download the baseline jar or not clirr.baseline.download = true # (optional) Baseline version to check binary compatibility with. # If the clirr.compatibility.version property is not defined, we get # the last released version from the POM using the <versions> tag. We # assume the latest version is the last one in the <version> list. # # Example: # clirr.baseline.version = 0.3 # (optional) By default the plugin tries to guess the value of # clirr.baseline.destination. However you can override this property if you # wish to point to a jar located in a specific location you wish to use # rather than the default which is in the local repository. # # Note If you specify this property, the plugin will not try to download the # baseline jar # # Ex: clirr.baseline.destination = /tmp/myjar.jar # Type of the project artifact to verify clirr.baseline.type = jar # Location where the project artifacts can be found. clirr.baseline.url = http://www.ibiblio.org/maven/${pom.groupId}/${clirr.baseline.type}s # Decide whether to fail the build on Clirr-detected warnings. clirr.fail.on.warning = false # Decide whether to fail the build on Clirr-detected errors. clirr.fail.on.error = true # Name and location of the XML Clirr-generated report file clirr.report.file = ${maven.build.dir}/clirr.xml --- NEW FILE --- <?xml version="1.0"?> <!-- ============================================================================= Maven plugin for Clirr. ============================================================================= --> <project xmlns:j="jelly:core" xmlns:util="jelly:util" xmlns:ant="jelly:ant" xmlns:x="jelly:xml"> <!-- ======================================================================== Default goal. ======================================================================== --> <goal name="clirr" description="Run binary compatibility check" prereqs="clirr:check"/> <!-- ======================================================================== Initializations. ======================================================================== --> <goal name="clirr:init"> <ant:path id="clirr.classpath"> <ant:pathelement location="${plugin.getDependencyPath('clirr:clirr-core')}"/> <ant:pathelement location="${plugin.getDependencyPath('bcel:bcel')}"/> </ant:path> <ant:taskdef resource="clirrtask.properties" classpathref="clirr.classpath"/> </goal> <!-- ======================================================================== Download baseline version ======================================================================== --> <goal name="clirr:download-baseline" prereqs="clirr:init"> <!-- If the clirr.baseline.version property is not defined, we get the last released version from the POM using the <versions> tag. We assume the latest version is the last one in the <version> list. --> <j:invokeStatic var="latestVersion" method="getLatestVersion" className="net.sf.clirr.maven.ClirrUtils"> <j:arg type="java.util.List" value="${pom.versions}"/> </j:invokeStatic> <j:if test="${latestVersion == null}"> <ant:fail>No released version found in the POM. Please specify a baseline version using the clirr.baseline.version property.</ant:fail> </j:if> <!-- Compute baseline jar name/url --> <j:set var="clirr.baseline.jar" value="${pom.artifactId}-${latestVersion}.${clirr.baseline.type}"/> <j:set var="clirr.baseline.url" value="${clirr.baseline.url}/${clirr.baseline.jar}"/> <!-- Location where to put downloaded baseline jar --> <j:set var="clirr.baseline.destination" value="${maven.repo.local}/${pom.groupId}/${clirr.baseline.type}s/${clirr.baseline.jar}"/> <!-- Download baseline jar if online --> <j:choose> <j:when test="${maven.mode.online}"> <!-- TODO: Improve error reporting when working offline or when an error occurs in the call to HttpUtils.getFile() --> <j:invokeStatic method="getBaselineJar" className="net.sf.clirr.maven.ClirrUtils"> <j:arg type="org.apache.maven.jelly.MavenJellyContext" value="${context}"/> </j:invokeStatic> </j:when> <j:otherwise> <ant:available property="baselineJarPresent" file="${clirr.baseline.destination}"/> <j:if test="${baselineJarPresent == null}"> <ant:fail>Cannot find file [${clirr.baseline.destination}]</ant:fail> </j:if> </j:otherwise> </j:choose> </goal> <!-- ======================================================================== Run binary compatibility checks. ======================================================================== --> <goal name="clirr:check" prereqs="clirr:init" description="Run binary compatibility check"> <j:if test="${context.getVariable('clirr.baseline.download') == true and context.getVariable('clirr.baseline.destination') == null}"> <attainGoal name="clirr:download-baseline"/> </j:if> <attainGoal name="jar:jar"/> <ant:dirname property="clirr.baseline.destination.dir" file="${clirr.baseline.destination}"/> <ant:basename property="clirr.baseline.destination.basename" file="${clirr.baseline.destination}"/> <clirr failOnWarning="${clirr.fail.on.warning}" failOnError="${clirr.fail.on.error}"> <origFiles dir="${clirr.baseline.destination.dir}" includes="${clirr.baseline.destination.basename}"/> <newFiles dir="${maven.build.dir}" includes="${maven.final.name}.jar"/> <formatter type="xml" outfile="${clirr.report.file}"/> </clirr> </goal> </project> --- NEW FILE --- target |
From: Vincent M. <vm...@us...> - 2004-07-15 13:34:31
|
Update of /cvsroot/clirr/clirr/maven/src/test/net/sf/clirr/maven In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2426/maven/src/test/net/sf/clirr/maven Added Files: ClirrUtilsTest.java Log Message: First cut of a Maven plugin for Clirr --- NEW FILE --- ////////////////////////////////////////////////////////////////////////////// //Clirr: compares two versions of a java library for binary compatibility //Copyright (C) 2004 Lars Kühne // //This library 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 2.1 of the License, or (at your option) any later version. // //This library 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 //Lesser General Public License for more details. // //You should have received a copy of the GNU Lesser General Public //License along with this library; if not, write to the Free Software //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ////////////////////////////////////////////////////////////////////////////// package net.sf.clirr.maven; import java.util.ArrayList; import org.apache.maven.project.Version; import junit.framework.TestCase; /** * Unit tests for {@link ClirrUtils}. * * @author Vincent Massol */ public class ClirrUtilsTest extends TestCase { public void testGetLatestVersionWhenNoVersionElementsDefined() { String result = ClirrUtils.getLatestVersion(new ArrayList()); assertNull(result); } public void testGetLatestVersionWhenNoReleasedVersionElementDefined() { Version unreleasedVersion = new Version(); unreleasedVersion.setId("0.1"); unreleasedVersion.setTag("HEAD"); ArrayList versions = new ArrayList(); versions.add(unreleasedVersion); String result = ClirrUtils.getLatestVersion(versions); assertNull(result); } public void testGetLatestVersionWhenReleasedVersionElementsDefined() { Version releasedVersion = new Version(); releasedVersion.setId("0.1"); releasedVersion.setTag("RELEASE_DUMMY_0_1"); Version unreleasedVersion = new Version(); unreleasedVersion.setId("0.2"); unreleasedVersion.setTag("HEAD"); ArrayList versions = new ArrayList(); versions.add(releasedVersion); versions.add(unreleasedVersion); String result = ClirrUtils.getLatestVersion(versions); assertEquals("0.1", result); } } |
From: Vincent M. <vm...@us...> - 2004-07-15 13:34:31
|
Update of /cvsroot/clirr/clirr/maven/src/main/net/sf/clirr/maven In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2426/maven/src/main/net/sf/clirr/maven Added Files: ClirrUtils.java Log Message: First cut of a Maven plugin for Clirr --- NEW FILE --- ////////////////////////////////////////////////////////////////////////////// //Clirr: compares two versions of a java library for binary compatibility //Copyright (C) 2004 Lars Kühne // //This library 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 2.1 of the License, or (at your option) any later version. // //This library 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 //Lesser General Public License for more details. // //You should have received a copy of the GNU Lesser General Public //License along with this library; if not, write to the Free Software //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ////////////////////////////////////////////////////////////////////////////// package net.sf.clirr.maven; import java.io.File; import java.util.List; import org.apache.maven.jelly.MavenJellyContext; import org.apache.maven.project.Version; import org.apache.maven.util.HttpUtils; /** * Utility class to manipulate POM version information. * * @author Vincent Massol */ public class ClirrUtils { /** * @return the latest released version, which means the latest version * listed in the POM <version> elements with a * <code>tag</code> different from <code>HEAD</code>. Returns * null if no latest released version is found * @param versions the list of {@link Version} objects from the POM */ public static String getLatestVersion(List versions) { String result = null; if (!versions.isEmpty()) { int pos = versions.size(); while (pos > 0) { Version latestVersion = (Version) versions.get(pos - 1); // Is it a released version? if (!latestVersion.getTag().equalsIgnoreCase("HEAD")) { result = latestVersion.getId(); break; } else { pos = pos - 1; } } } return result; } /** * TODO: Add support for proxies */ public static void getBaselineJar(MavenJellyContext context) throws Exception { HttpUtils.getFile( (String) context.getVariable("clirr.baseline.url"), new File((String) context.getVariable("clirr.baseline.destination")), false, false, null, null, null, null); } } |
From: Vincent M. <vm...@us...> - 2004-07-15 13:34:30
|
Update of /cvsroot/clirr/clirr/maven/xdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2426/maven/xdocs Added Files: installing.xml properties.xml using.xml changes.xml index.xml navigation.xml goals.xml Log Message: First cut of a Maven plugin for Clirr --- NEW FILE --- <?xml version="1.0"?> <document> <properties> <title>Installing the Maven Clirr plugin</title> <author>Vincent Massol</author> </properties> <body> <section name="Installing the Clirr plugin"> <p> There are 2 options to install the Clirr plugin in an existing Maven installation: </p> <ul> <li> <strong>Automatic install</strong>: Call <code>maven plugin:download -DgroupId=clirr -DartifactId=clirr-maven -Dversion={version}</code> where <code>{version}</code> is the version to use. Maven will automatically download the plugin and install it, uninstalling any other version you may already have. </li> <li> <strong>Manual install</strong>: <a href="http://www.ibiblio.org/maven/clirr/plugins/">Download</a> the Clirr plugin jar and copy it in <code>{MAVEN_HOME}/plugins</code> where <code>{MAVEN_HOME}</code> is the location where you have installed Maven. Make sure you also remove any previous Clirr plugin from <code>{MAVEN_HOME}/plugins</code> and delete your <code>{USER_HOME}/.maven/plugins</code> directory. </li> </ul> </section> </body> </document> --- NEW FILE --- <?xml version="1.0" encoding="UTF-8"?> <document> <properties> <title>Maven Clirr properties</title> <author>Vincent Massol</author> </properties> <body> <section name="Clirr plugin settings"> <table> <tr> <th>Property</th> <th>Optional?</th> <th>Description</th> </tr> <tr> <td>xxx</td> <td>xxx</td> <td> xxxx </td> </tr> </table> </section> </body> </document> --- NEW FILE --- <?xml version="1.0"?> <document> <properties> <title>Using the Maven Clirr plugin</title> <author>Vincent Massol</author> </properties> <body> <section name="Using the Clirr plugin"> <ol> <li> xxx </li> </ol> </section> </body> </document> --- NEW FILE --- <?xml version="1.0"?> <document> <properties> <title>Plugin changes</title> <author>Vincent Massol</author> </properties> <body> <release version="0.4-SNAPSHOT" date="in CVS"> <action dev="vmassol" type="add"> Initial release. See the plugin's web page for the features list. </action> </release> </body> </document> --- NEW FILE --- <?xml version="1.0" encoding="ISO-8859-1"?> <document> <properties> <title>Maven plugin for Clirr</title> <author>Vincent Massol</author> </properties> <body> <section name="What is it?"> <p> The Maven plugin for Clirr allows easily running the Clirr framework on Maven projects. It supports the following features: </p> <ul> <li> Execution of Clirr framework on the current project. </li> <li> Automatic download of project baseline jars with which the current development source are compared with. </li> <li> Automatically try to guess the latest release version of the current project by looking at the POM's <code><version></code> tag. </li> </ul> </section> </body> </document> --- NEW FILE --- <?xml version="1.0"?> <project name="Clirr Maven plugin"> <title>Clirr Maven plugin</title> <body> <links> <item name="Clirr Framework" href="http://clirr.sourceforge.net"/> <item name="SourceForge Project Page" href="http://sourceforge.net/projects/clirr"/> <item name="Hosted by SourceForge" href="http://sourceforge.net/"/> </links> <menu name="Clirr Maven plugin"> <item name="Overview" href="/index.html"/> <item name="Installing" href="/installing.html"/> <item name="Using" href="/using.html"/> <item name="Goals" href="/goals.html"/> <item name="Properties" href="/properties.html"/> </menu> <!-- footer will be placed above the (c) --> <footer> Hosted by <a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=89627&type=1" border="0" alt="sourceforge"/> </a> </footer> </body> </project> --- NEW FILE --- <?xml version="1.0" encoding="UTF-8"?> <document> <properties> <title>Maven Clirr plugin goals</title> <author>Vincent Massol</author> </properties> <body> <goals> <goal> <name>clirr</name> <description> Default goal (does the same as <code>clirr:check</code>). </description> </goal> <goal> <name>clirr:check</name> <description> Run binary compatibility checks. </description> </goal> </goals> </body> </document> |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:47
|
Update of /cvsroot/clirr/clirr/maven/src/test/net/sf/clirr/maven In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/test/net/sf/clirr/maven Log Message: Directory /cvsroot/clirr/clirr/maven/src/test/net/sf/clirr/maven added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:47
|
Update of /cvsroot/clirr/clirr/maven/src/main/net/sf/clirr/maven In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/main/net/sf/clirr/maven Log Message: Directory /cvsroot/clirr/clirr/maven/src/main/net/sf/clirr/maven added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:47
|
Update of /cvsroot/clirr/clirr/maven/src/main/net/sf/clirr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/main/net/sf/clirr Log Message: Directory /cvsroot/clirr/clirr/maven/src/main/net/sf/clirr added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:47
|
Update of /cvsroot/clirr/clirr/maven/src/test/net/sf/clirr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/test/net/sf/clirr Log Message: Directory /cvsroot/clirr/clirr/maven/src/test/net/sf/clirr added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:47
|
Update of /cvsroot/clirr/clirr/maven/xdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/xdocs Log Message: Directory /cvsroot/clirr/clirr/maven/xdocs added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:47
|
Update of /cvsroot/clirr/clirr/maven/src/test/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/test/net Log Message: Directory /cvsroot/clirr/clirr/maven/src/test/net added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:47
|
Update of /cvsroot/clirr/clirr/maven/src/test/net/sf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/test/net/sf Log Message: Directory /cvsroot/clirr/clirr/maven/src/test/net/sf added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:46
|
Update of /cvsroot/clirr/clirr/maven/src/main/net/sf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/main/net/sf Log Message: Directory /cvsroot/clirr/clirr/maven/src/main/net/sf added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:45
|
Update of /cvsroot/clirr/clirr/maven In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven Log Message: Directory /cvsroot/clirr/clirr/maven added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:45
|
Update of /cvsroot/clirr/clirr/maven/src/main/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/main/net Log Message: Directory /cvsroot/clirr/clirr/maven/src/main/net added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:45
|
Update of /cvsroot/clirr/clirr/maven/src/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/test Log Message: Directory /cvsroot/clirr/clirr/maven/src/test added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:45
|
Update of /cvsroot/clirr/clirr/maven/src/main In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src/main Log Message: Directory /cvsroot/clirr/clirr/maven/src/main added to the repository |
From: Vincent M. <vm...@us...> - 2004-07-15 13:33:45
|
Update of /cvsroot/clirr/clirr/maven/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2205/maven/src Log Message: Directory /cvsroot/clirr/clirr/maven/src added to the repository |
From: Vincent M. <vma...@pi...> - 2004-07-15 07:46:08
|
> -----Original Message----- > From: cli...@li... [mailto:clirr-devel- > ad...@li...] On Behalf Of Lars K=FChne > Sent: jeudi 15 juillet 2004 06:09 > To: cli...@li... > Subject: [Clirr-devel] Maven plugin >=20 > Vincent, >=20 > I just wanted to make sure why I don't see any Maven plugin activity. > Are you simply short on time or did I make a mistake, leaving you with = a > new project structure that is still insufficient? Short on time... ;-) >=20 > If the project structure is insufficient please tell me, so I can fix = it > before the weekend. >=20 > Cheers, > Lars Thanks -Vincent |
From: <lak...@t-...> - 2004-07-15 04:01:34
|
Vincent, I just wanted to make sure why I don't see any Maven plugin activity. Are you simply short on time or did I make a mistake, leaving you with a new project structure that is still insufficient? If the project structure is insufficient please tell me, so I can fix it before the weekend. Cheers, Lars |