Wow... wrong email. LOL.<br><br><div class="gmail_quote">On Wed, May 23, 2012 at 10:47 AM, 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">That&#39;s something that should be on a blog.<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Wed, May 23, 2012 at 10:47 AM, 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">Mom, that&#39;s incredible! But really sad that mom is gone :( reminds me of the little fox baby I saw limping on the road :( :(<span><font color="#888888"><br>

<br>~Lincoln</font></span><div><div><br><br><div class="gmail_quote">On Thu, May 17, 2012 at 8:23 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">Yeah :) And PS. I think I said it already, but awesome idea!<div><div><br><br><div class="gmail_quote">
On Thu, May 17, 2012 at 4:18 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>Is this plugin in the central plugin index? <br><a href="https://docs.jboss.org/author/display/FORGE/Add+your+Plugin+to+the+Central+Plugin+Index+%28CPI%29" target="_blank">https://docs.jboss.org/author/display/FORGE/Add+your+Plugin+to+the+Central+Plugin+Index+%28CPI%29</a><br>




<br>Thanks,<br>Lincoln<div><div><br><br><div class="gmail_quote">On Thu, May 17, 2012 at 3:12 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>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!,<br><br>I&#39;ve changed the command and parameters names, and I updated help in github and forge help. Dan, thanks so much for your suggest, it improve this plugin.<br>




<br>Cheers,<br><br>p.<div><div><br><br><div class="gmail_quote">

On Mon, May 14, 2012 at 8:33 AM, Pablo Palazon <span dir="ltr">&lt;<a href="mailto:pablo.palazon@gmail.com" target="_blank">pablo.palazon@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">






Hi Dan!, Thanks for your suggestion!, it&#39;s very interesting, and I&#39;ll do this change. You&#39;re right when you say to make the commands more intuitive and similar to others programs as eclipse.<br><br>Very helpful.<div>






<div><br>
<br><div class="gmail_quote">On Sat, May 12, 2012 at 9:18 AM, Dan Allen <span dir="ltr">&lt;<a href="mailto:dan.j.allen@gmail.com" target="_blank">dan.j.allen@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>Thanks for sharing this plugin! It&#39;s exciting to learn about new ways the community is using Forge to make development life easier!<br><br>I&#39;m always thinking about names for things, so I&#39;d like to offer some ideas I think would make the commands more intuitive. If you don&#39;t like the suggestions, just say so :)<br>









<br>Command name: rxlist<br><br>As I understand it, your plugin collects language keys from source files (like *.java) and puts those keys into message bundles (Java properties files). A more intutive name for the command might be one of the following:<br>









<br>- extract-keys<br>- collect-keys<br>- keys2bundle<br>- keys2props<br><br>(Eclipse uses the terms extract and externalize for this type of refactoring).<br><br>Parameters:<br><br>For the file matching parameters, I think it&#39;s best to leave out the reference to &quot;rx&quot; and just document in the help that it&#39;s a pattern.<br>









<br>--property-files : regular expression to match property files (was --rxProperties)<br>--source-files : regular expression to match source files to search for message keys (was --rxSearchFiles)<br><br>For the key matcher property, I think it makes sense to name it for it&#39;s purpose:<br>









<br>--key-pattern : regular expression for matching a key in a source file (was --regexp)<br><br>Here&#39;s an example usage w/ the new names:<br><br>extract-keys --property-files messages_.*.properties --source-files .*.xhtml --key-pattern messages.getMessage\(&#39;(.*?)&#39;\) <br>









<br>I hope those suggestions are helpful.<br><br>Cheers,<br><br>-Dan<br><br><div class="gmail_quote"><div>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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>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><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></div></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br>
<br><div><a href="http://google.com/profiles/dan.j.allen" target="_blank">http://google.com/profiles/dan.j.allen</a><br>

<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br></div><br>
</font></span><br>_______________________________________________<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><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<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><br><br clear="all"><br>-- <br></div></div><div><div>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;<br>

</div></div></blockquote></div><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>
</div></div></blockquote></div><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>
</div></div></blockquote></div><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>
</div></div></blockquote></div><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>