Thank you very much Lincoln!, For me it&#39;s a honour if you list this plugin in the central repository index. And yeah, maybe, I&#39;ll do a video-cast, but my spoken english is a bit poor. But, I&#39;ll try it.<br><br><div class="gmail_quote">

On Wed, May 9, 2012 at 1:36 PM, Lincoln Baxter, III <span dir="ltr">&lt;<a href="mailto:lincolnbaxter@gmail.com" target="_blank">lincolnbaxter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hey Pablo!<br><br>This is awesome! *Really* useful! <br><br>I am embarrassed that we still don&#39;t have the plugin repository/website online yet; this is one of those plugins that I think a lot of people could use :) But in the mean time, would you like your plugin to be listed in the central repository index?<br>


<br><a href="https://github.com/forge/plugin-repository/blob/master/repository.yaml" target="_blank">https://github.com/forge/plugin-repository/blob/master/repository.yaml</a><br><br>It would be awesome if you wanted to do a little video-cast about how to use this plugin. We could put it up in the Forge channel on Vimeo: <a href="http://vimeo.com/channels/jbossforge" target="_blank">vimeo.com/channels/jbossforge</a><br>


<br>~Lincoln<br><br><div class="gmail_quote"><div><div class="h5">On Mon, May 7, 2012 at 5:16 PM, Pablo Palazon <span dir="ltr">&lt;<a href="mailto:pablo.palazon@gmail.com" target="_blank">pablo.palazon@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi everybody!,<br><br>I&#39;d like to present a plug-in for collect key properties and be added to properties files (<a href="https://github.com/ppalazon/rxlist-forge" target="_blank">https://github.com/ppalazon/rxlist-forge</a>). Basic, this plug-in search regular expressions in the content of a group of files, for example all java source code (*.java). <br>




<br>I use this plug-in for collect multilingual key used in java and xhtml code. For example:<br><pre><code><a href="http://facesmessages.info" target="_blank">facesmessages.info</a>(messages.getMessage(&quot;command.success.message&quot;))</code></pre>




or<br><pre><code>&lt;h:outputText value=&quot;#{messages[&#39;person.preffix&#39;]}, #{user.lastname}&quot;/&gt;</code></pre>Normally, I wrote business code and I don&#39;t worry about write this in a multilingual properties file. Later, I must review all code for collect used multilingual keys. This is tedious when you have many sources files, and you have some keys in properties file.<br>




<br>For install:<code> forge git-plugin git://<a href="http://github.com/ppalazon/rxlist-forge.git" target="_blank">github.com/ppalazon/rxlist-forge.git</a>
</code><br><br>This plug-in only contains a commands with 3 arguments<br><br>--rxProperties -&gt; regular expression for find properties files (Messages.*.properties)<br>--rxSearchFiles -&gt; regular expression for say which files explore (.*.java, .*.xhtml, etc)<br>




--regexp -&gt; regular expression for describe where is keys (messages.getMessage\(&#39;&#39;(.*?)&#39;&#39;\), messages.getMessage\(&#39;(.*?)&#39;\))<br><br>Examples:<br>rxlist --rxProperties messages_.*.properties --rxSearchFiles .*.java --regexp Componente1.getMessage\(&#39;&#39;(.*?)&#39;&#39;\) - (I use 2 simple quotes, don&#39;t double quote)<br>




rxlist --rxProperties messages_.*.properties --rxSearchFiles .*.xhtml --regexp messages.getMessage\(&#39;(.*?)&#39;\) - With simple quotes<br><br>All regular expression is based on Java Pattern (<a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html" target="_blank">http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html</a>)<br>




<br>This plugin insert non declared properties keys in properties files, and insert a default content (founded.key=&gt;&gt;founded.key).<br><br>If you would like to see this in action, there are some test files in src/test/resources with 2 properties files, 1 java file and 1 xhtml file. You can open original properties files, and search updated properties files with test (RegExpListPluginTest) in a generated directory.<br>




<br>I used this plug-in in a web application, and It&#39;s useful when you&#39;d been used a lot of properties key for multilingual. I&#39;d like to listen you any suggest, error or improve for this plug-in, or maybe this help you for create new plug-in for forge. Thanks you so much for this platform, it was very easy and quick develop this plug-in.<br>




<br></div></div>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;<br>


</font></span><br>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br></blockquote></div><br>