incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <glen.ma...@gmail.com>
Subject Re: svn commit: r1489586 - /incubator/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/TranslationsCheck.java
Date Tue, 04 Jun 2013 20:25:37 GMT
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 " +
>
>


Mime
View raw message