You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Glen Mazza <gl...@gmail.com> on 2013/06/04 22:25:37 UTC
Re: svn commit: r1489586 - /incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java
mvn test -Dtest=SiteGeneratorTest :)
Glen
On 06/04/2013 03:56 PM, metskem@apache.org wrote:
> Author: metskem
> Date: Tue Jun 4 19:56:38 2013
> New Revision: 1489586
>
> URL: http://svn.apache.org/r1489586
> Log:
> adapt Translationscheck paths to the new project structure, so you can run it from cmdline or workspace.
>
> Modified:
> incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java
>
> Modified: incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java
> URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java?rev=1489586&r1=1489585&r2=1489586&view=diff
> ==============================================================================
> --- incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java (original)
> +++ incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java Tue Jun 4 19:56:38 2013
> @@ -45,6 +45,7 @@ public class TranslationsCheck
> if( args.length == 0 )
> {
> System.out.println("Usage: java TranslationsCheck <language> [<path>]");
> + System.out.println("Example: java TranslationsCheck nl jspwiki-war/src/main/resources]");
> return;
> }
>
> @@ -61,32 +62,29 @@ public class TranslationsCheck
>
> try
> {
> - diff("/etc/i18n/CoreResources.properties",
> - "/etc/i18n/CoreResources_" + suffix + ".properties");
> - detectDuplicates("/etc/i18n/CoreResources_" + suffix + ".properties");
> + diff("/CoreResources.properties", "/CoreResources_" + suffix + ".properties");
> + detectDuplicates("/CoreResources_" + suffix + ".properties");
> }
> catch( FileNotFoundException e )
> {
> - System.err.println("Unable to locate "+"/etc/i18n/CoreResources_" + suffix + ".properties");
> + System.err.println("Unable to locate "+"/CoreResources_" + suffix + ".properties");
> }
>
> try
> {
> - diff("/etc/i18n/templates/default.properties",
> - "/etc/i18n/templates/default_" + suffix + ".properties");
> - detectDuplicates("/etc/i18n/templates/default_" + suffix + ".properties");
> + diff("/templates/default.properties", "/templates/default_" + suffix + ".properties");
> + detectDuplicates("/templates/default_" + suffix + ".properties");
> }
> catch( FileNotFoundException e )
> {
> - System.err.println("Unable to locate "+"/etc/i18n/templates/default_" + suffix + ".properties");
> + System.err.println("Unable to locate "+"/templates/default_" + suffix + ".properties");
> }
>
> try
> {
> - diff("/etc/i18n/plugin/PluginResources.properties",
> - "/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
> + diff("/plugin/PluginResources.properties", "/plugin/PluginResources_" + suffix + ".properties");
>
> - detectDuplicates("/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
> + detectDuplicates("/plugin/PluginResources_" + suffix + ".properties");
>
> System.out.println("Duplicates overall (two or more occurences):");
> System.out.println("--------------------------------------------");
> @@ -100,7 +98,7 @@ public class TranslationsCheck
> }
> catch( FileNotFoundException e )
> {
> - System.err.println("Unable to locate "+"/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
> + System.err.println("Unable to locate "+"/plugin/PluginResources_" + suffix + ".properties");
> }
>
> System.out.println("NOTE: Please remember that dependent on the usage of these i18n files, outdated " +
>
>
Re: svn commit: r1489586 - /incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java
Posted by Harry Metske <ha...@gmail.com>.
I am only familiar with the very basic mvn concepts, so I will put this one
in the mvn_cheatsheet, thanks
But anyway, the paths in the TranslationsCheck were wrong anyways, the
output is less chatty then mvn, and you can select one language at a time.
thanks for the tip,
Harry
On 4 June 2013 22:25, Glen Mazza <gl...@gmail.com> wrote:
> mvn test -Dtest=SiteGeneratorTest :)
>
> Glen
>
> On 06/04/2013 03:56 PM, metskem@apache.org wrote:
>
>> Author: metskem
>> Date: Tue Jun 4 19:56:38 2013
>> New Revision: 1489586
>>
>> URL: http://svn.apache.org/r1489586
>> Log:
>> adapt Translationscheck paths to the new project structure, so you can
>> run it from cmdline or workspace.
>>
>> Modified:
>> incubator/jspwiki/trunk/**jspwiki-war/src/test/java/org/**
>> apache/wiki/TranslationsCheck.**java
>>
>> Modified: incubator/jspwiki/trunk/**jspwiki-war/src/test/java/org/**
>> apache/wiki/TranslationsCheck.**java
>> URL: http://svn.apache.org/viewvc/**incubator/jspwiki/trunk/**
>> jspwiki-war/src/test/java/org/**apache/wiki/TranslationsCheck.**
>> java?rev=1489586&r1=1489585&**r2=1489586&view=diff<http://svn.apache.org/viewvc/incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java?rev=1489586&r1=1489585&r2=1489586&view=diff>
>> ==============================**==============================**
>> ==================
>> --- incubator/jspwiki/trunk/**jspwiki-war/src/test/java/org/**
>> apache/wiki/TranslationsCheck.**java (original)
>> +++ incubator/jspwiki/trunk/**jspwiki-war/src/test/java/org/**
>> apache/wiki/TranslationsCheck.**java Tue Jun 4 19:56:38 2013
>> @@ -45,6 +45,7 @@ public class TranslationsCheck
>> if( args.length == 0 )
>> {
>> System.out.println("Usage: java TranslationsCheck
>> <language> [<path>]");
>> + System.out.println("Example: java TranslationsCheck nl
>> jspwiki-war/src/main/**resources]");
>> return;
>> }
>> @@ -61,32 +62,29 @@ public class TranslationsCheck
>> try
>> {
>> - diff("/etc/i18n/CoreResources.**properties",
>> - "/etc/i18n/CoreResources_" + suffix + ".properties");
>> - detectDuplicates("/etc/i18n/**CoreResources_" + suffix +
>> ".properties");
>> + diff("/CoreResources.**properties", "/CoreResources_" +
>> suffix + ".properties");
>> + detectDuplicates("/**CoreResources_" + suffix +
>> ".properties");
>> }
>> catch( FileNotFoundException e )
>> {
>> - System.err.println("Unable to locate
>> "+"/etc/i18n/CoreResources_" + suffix + ".properties");
>> + System.err.println("Unable to locate "+"/CoreResources_" +
>> suffix + ".properties");
>> }
>> try
>> {
>> - diff("/etc/i18n/templates/**default.properties",
>> - "/etc/i18n/templates/default_" + suffix +
>> ".properties");
>> - detectDuplicates("/etc/i18n/**templates/default_" + suffix
>> + ".properties");
>> + diff("/templates/default.**properties",
>> "/templates/default_" + suffix + ".properties");
>> + detectDuplicates("/templates/**default_" + suffix +
>> ".properties");
>> }
>> catch( FileNotFoundException e )
>> {
>> - System.err.println("Unable to locate "+"/etc/i18n/templates/
>> **default_" + suffix + ".properties");
>> + System.err.println("Unable to locate "+"/templates/default_"
>> + suffix + ".properties");
>> }
>> try
>> {
>> - diff("/etc/i18n/plugin/**PluginResources.properties",
>> - "/etc/i18n/plugin/**PluginResources_" + suffix +
>> ".properties");
>> + diff("/plugin/PluginResources.**properties",
>> "/plugin/PluginResources_" + suffix + ".properties");
>> - detectDuplicates("/etc/i18n/**plugin/PluginResources_"
>> + suffix + ".properties");
>> + detectDuplicates("/plugin/**PluginResources_" + suffix +
>> ".properties");
>> System.out.println("Duplicates overall (two or
>> more occurences):");
>> System.out.println("----------**
>> ------------------------------**----");
>> @@ -100,7 +98,7 @@ public class TranslationsCheck
>> }
>> catch( FileNotFoundException e )
>> {
>> - System.err.println("Unable to locate "+"/etc/i18n/plugin/**PluginResources_"
>> + suffix + ".properties");
>> + System.err.println("Unable to locate
>> "+"/plugin/PluginResources_" + suffix + ".properties");
>> }
>> System.out.println("NOTE: Please remember that dependent on
>> the usage of these i18n files, outdated " +
>>
>>
>>
>