<div dir="ltr">Yes. I agree100%, but to modify the gradle build file, we will need to be able to parse and understand the source. It would be nice to include a Groovy Parser in Forge anyway! <div><br></div><div style>Gradle definitely has a lot of tooling issues to overcome.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 7, 2013 at 8:08 AM, Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:manderse@redhat.com" target="_blank">manderse@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">AFAIK, gradle team tells tooling that want to understand gradle build files<br>
is to use and *run* gradle-tooling-api to parse it. Don&#39;t try parse it.<br>
<br>
I believe eclipse plugin uses that.<br>
<br>
See <a href="http://www.gradle.org/docs/current/userguide/embedding.html" target="_blank">http://www.gradle.org/docs/current/userguide/embedding.html</a><br>
<br>
(it&#39;s one of the reasons I&#39;m not really happy about gradle since its<br>
dog start/slow to run on large set of projects - they keep saying that<br>
will improve though...)<br>
<span class="HOEnZb"><font color="#888888"><br>
/max<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, May 06, 2013 at 07:27:20PM -0400, Lincoln Baxter, III wrote:<br>
&gt;Hey Adam,<br>
&gt;<br>
&gt;Thank you so much for your proposal! We have reviewed your submission and<br>
&gt;so far all the mentors have given it a high rating :)<br>
&gt;<br>
&gt;I took a look at your prototype groovy-manager project, which looks very<br>
&gt;interesting. You are doing source parsing for groovy, which is pretty<br>
&gt;challenging.<br>
&gt;<br>
&gt;While writing a parser from scratch can be a thrilling challenge, I have to<br>
&gt;say that it can be quite a burden! We started writing our own Java-parser<br>
&gt;for Forge, but quickly came to find that even parsing a type-safe language<br>
&gt;is incredibly difficult.<br>
&gt;<br>
&gt;We ended up using the Eclipse JDT as a base implementation for our<br>
&gt;JavaParser.<br>
&gt;<br>
&gt;Have you looked for any Groovy parsers that may already exist today? This<br>
&gt;would give you a quick boost when working on this project. It may be the<br>
&gt;case that the parser would require some usability improvements to make<br>
&gt;integration with Forge simpler, and simpler for plugin devs, but I think it<br>
&gt;is safe to say that a search for existing parsers is warranted.<br>
&gt;<br>
&gt;If a suitable parser can be found, I would suggest that we revise your<br>
&gt;proposal to allow for several weeks to become familiar with that parser,<br>
&gt;and then allocate the rest of the time to actually working with it to<br>
&gt;implement the gradle support.<br>
&gt;<br>
&gt;I&#39;d suggest starting here, with the Groovy Eclipse Plugin - they almost<br>
&gt;certainly already support groovy syntax:<br>
&gt;<a href="http://groovy.codehaus.org/Eclipse+Plugin#EclipsePlugin-KeyFeatures" target="_blank">http://groovy.codehaus.org/Eclipse+Plugin#EclipsePlugin-KeyFeatures</a><br>
&gt;<br>
&gt;The problem with writing your own parser is that you have to maintain it :)<br>
&gt;Better to delegate.<br>
&gt;<br>
&gt;~Lincoln<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;On Sun, May 5, 2013 at 5:05 PM, Adam Wyłuda &lt;<a href="mailto:adamwyl92@gmail.com">adamwyl92@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hello JBoss community,<br>
&gt;&gt; This year I want to participate in an OS project and GSoC gives me great<br>
&gt;&gt; opportunity to do so.<br>
&gt;&gt; Here is my idea as GSoC 2013 proposal:<br>
&gt;&gt; <a href="http://www.google-melange.com/gsoc/proposal/review/google/gsoc2013/adamw/1" target="_blank">http://www.google-melange.com/gsoc/proposal/review/google/gsoc2013/adamw/1</a><br>
&gt;&gt; I&#39;d be very happy to hear your opinions (I hope it&#39;s not too late).<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; forge-dev mailing list<br>
&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;--<br>
&gt;Lincoln Baxter, III<br>
&gt;<a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
&gt;&quot;Simpler is better.&quot;<br>
<br>
&gt;_______________________________________________<br>
&gt;forge-dev mailing list<br>
&gt;<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<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></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Lincoln Baxter, III<br>
<a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;
</div>