I just did an update and then re-run mvn install, but still no joy.
Here is the file you are requesting.
Simone.
On Wed, May 28, 2008 at 2:14 PM, Martin Desruisseaux
<[EMAIL PROTECTED]> wrote:
> Simone Giannecchini a écrit :
>>
>> Running org.geotools.maven.taglet.SourceTest
>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.11 sec
>> <<< FAILURE!
>>
>> Failed tests:
>> testCurrentTag(org.geotools.maven.taglet.SourceTest)
>
> Was it built against latest SVN revision number? If so, could you send me
> your local org.geotools.maven.taglet.SourceTest that Maven is trying to run
> please? This particular file expand a SVN keyword and run a test against it,
> so what the exact content of the file in the machine which is failing matter
> (and may not be the same than my local content).
>
> Martin
>
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
-------------------------------------------------------
/*
* GeoTools - OpenSource mapping toolkit
* http://geotools.org
* (C) 2005-2006, GeoTools Project Managment Committee (PMC)
*
* 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;
* version 2.1 of the License.
*
* 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.
*/
package org.geotools.maven.taglet;
import java.util.regex.Matcher;
import org.junit.*;
import static org.junit.Assert.*;
/**
* Tests the [EMAIL PROTECTED] Source} taglet.
*
* @source $URL: http://svn.geotools.org:80/trunk/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java $
* @version $Id: SourceTest.java 30282 2008-05-15 09:53:54Z desruisseaux $
* @author Martin Desruisseaux
*/
public class SourceTest {
/**
* Tests the regular expression validity using the tag for this source file.
*/
@Test
public void testCurrentTag() {
Source s = new Source();
Matcher m;
String tag, url, group, category, module;
tag = "$URL: http://svn.geotools.org:80/trunk/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java $";
m = s.findURL.matcher(tag);
assertTrue(m.matches());
// Try to match the URL provided by SVN.
url = m.group(1).trim();
m = s.findModule.matcher(url);
assertTrue(m.matches());
group = m.group(1);
category = m.group(2);
module = m.group(3);
assertEquals("build", group);
assertEquals("maven", category);
assertEquals("javadoc", module);
// Try an other URL from a tag.
url = "http://svn.geotools.org/tags/2.4-M0/modules/library/api/src/main/java/org/geotools/catalog/ResolveChangeListener.java";
m = s.findModule.matcher(url);
assertTrue(m.matches());
group = m.group(1);
category = m.group(2);
module = m.group(3);
assertEquals("modules", group);
assertEquals("library", category);
assertEquals("api", module);
// Try an other URL from a tag.
url = "http://svn.geotools.org/tags/2.2-RC4/modules/library/referencing/src/main/java/org/geotools/referencing/CRS.java";
tag = Source.SVN_KEYWORD_DELIMITER + "URL: " + url + ' ' + Source.SVN_KEYWORD_DELIMITER;
m = s.findURL.matcher(tag);
assertTrue(m.matches());
assertEquals(url, m.group(1).trim());
m = s.findModule.matcher(url);
assertTrue(m.matches());
group = m.group(1);
category = m.group(2);
module = m.group(3);
assertEquals("modules", group);
assertEquals("library", category);
assertEquals("referencing", module);
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel