Andrea - I've finished tweaking the javadoc bits and tested them out
on two of Jody's modules <insert evil laugh>.

The updated usage details for the InsertSourceTag utility are at the
end of this page:
http://docs.geotools.org/latest/developer/guide/conventions/code/style.html

Let me know if you have any problems with it.

Michael


On 23 May 2011 18:25, Michael Bedward <[email protected]> wrote:
> Hi Andrea,
>
> That should be fine, but I was just chatting to Jody and he pointed
> out that Git doesn't support the svn:keywords property.  I think the
> easiest solution is for me to hack the source taglet code in the
> javadocs module to insert the file path rather than the "$URL" tag.
>
> I'll look at it this evening.
>
> Michael
>
>
> On 23 May 2011 18:12, Andrea Aime <[email protected]> wrote:
>> On Mon, May 23, 2011 at 9:29 AM, Michael Bedward <[email protected]>
>> wrote:
>>>
>>> And the answer is...
>>>
>>> org.geotools.maven.tools.InsertSourceTag in the javadocs module. You
>>> run it from the command line with a file or directory name as the
>>> single arg. It will recurse down a directory tree, attacking source
>>> files as it finds them.  I don't seem to have put anything in there to
>>> set svn:keywords so you would need to do that afterwards.
>>>
>>> Example, insert missing source tag in all source files for module foo
>>>
>>> cd topdir/build/maven/javadoc
>>>
>>> mvn exec:java -Dexec.mainClass=org.geotools.maven.tools.InsertSourceTag
>>> -DcommandlineArgs=../../modules/library/foo/src
>>>
>>> find ../modules/library/foo -type f -name '*.java' -exec svn ps
>>> svn:keywords "Id URL" {} \;
>>
>> I'm very tempted to schedule some time in the weekend to do this
>> over all of our modules... would there be any harm in dong so?
>> Cheers
>> Andrea
>>
>> --
>> -------------------------------------------------------
>> Ing. Andrea Aime
>> GeoSolutions S.A.S.
>> Tech lead
>>
>> Via Poggio alle Viti 1187
>> 55054  Massarosa (LU)
>> Italy
>>
>> phone: +39 0584 962313
>> fax:      +39 0584 962313
>>
>> http://www.geo-solutions.it
>> http://geo-solutions.blogspot.com/
>> http://www.youtube.com/user/GeoSolutionsIT
>> http://www.linkedin.com/in/andreaaime
>> http://twitter.com/geowolf
>>
>> -------------------------------------------------------
>>
>

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to