I believe there is a utility class called Packages.toFileSyntax() - <a href="https://github.com/forge/core/blob/master/shell-api/src/main/java/org/jboss/forge/shell/util/Packages.java#L23">https://github.com/forge/core/blob/master/shell-api/src/main/java/org/jboss/forge/shell/util/Packages.java#L23</a><br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 5:51 AM, Luca Masini <span dir="ltr">&lt;<a href="mailto:luca.masini@gmail.com" target="_blank">luca.masini@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 guys, I need to write a resource into the src/main/resources file that is related to a class MyForm.<div><br></div><div>
I&#39;m using this code but it smells:</div><div><br></div><div>resource.getResource(viewBean.getQualifiedName().replace(&#39;.&#39;, File.separatorChar)+&quot;.html&quot;)</div>

<div><br></div><div>Suggestions about the best way to do that ??</div><div><br></div><div>Thank you.<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br>****************************************<br>
<a href="http://www.lucamasini.net" target="_blank">http://www.lucamasini.net</a><br>

<a href="http://twitter.com/lmasini" target="_blank">http://twitter.com/lmasini</a><br><a href="http://www.linkedin.com/pub/luca-masini/7/10/2b9" target="_blank">http://www.linkedin.com/pub/luca-masini/7/10/2b9</a><br>****************************************<br>



</font></span></div>
<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><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>