|
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
5 | | -<title>D:\workspaces\Nodeclispe-DEV\nodeclipse-1\org.nodeclipse.enide.gradle\.README.md.html</title> |
| 5 | +<title>D:\Workspaces\Nodeclipse-DEV\nodeclipse-1\org.nodeclipse.enide.gradle\.README.md.html</title> |
6 | 6 |
|
7 | 7 |
|
8 | 8 | <style type="text/css"> |
@@ -455,6 +455,41 @@ <h2> <a name="orgnodeclipseenidegradle" class="anchor" href="..md.html#orgnodecl |
455 | 455 | <li>Minisite <a href="http://www.nodeclipse.org/enide/gradle/">http://www.nodeclipse.org/enide/gradle/</a> </li> |
456 | 456 | <li>GitHub <a href="https://github.com/Nodeclipse/nodeclipse-1/tree/master/org.nodeclipse.enide.gradle">https://github.com/Nodeclipse/nodeclipse-1/tree/master/org.nodeclipse.enide.gradle</a> </li> |
457 | 457 | </ul> |
458 | | -<p><em>Description</em>:<br /> Right-click any <code>.gradle</code> file, and select <code>Run As -> Gradle GUI</code></p> |
| 458 | +<p><em>Description</em>:<br /> Right-click any <code>.gradle</code> file, and select <code>Run As -> Gradle GUI</code></p> |
| 459 | +<p>To run/execute with gradle add this to <code>build.gradle</code> </p> |
| 460 | +<pre><code>task execute(type:JavaExec) { |
| 461 | + main = mainClass |
| 462 | + classpath = sourceSets.main.runtimeClasspath |
| 463 | +} |
| 464 | +</code></pre> |
| 465 | +<p>then execution is via</p> |
| 466 | +<pre><code>gradle execute -PmainClass=runclass.RunClass |
| 467 | +</code></pre> |
| 468 | +<p>see <a href="http://stackoverflow.com/questions/21358466/gradle-to-execute-java-class-without-modifying-build-gradle">Gradle to execute Java class (without modifying build.gradle)</a></p> |
| 469 | +<h3> <a name="jetty" class="anchor" href="..md.html#jetty"><span class="octicon octicon-link"></span></a>Jetty</h3> |
| 470 | +<p>As with Maven, your <code>build.gradle</code> should have jetty configuration to enable <code>gradle jetty:run</code> Gradle start.</p> |
| 471 | +<p>See <a href="https://github.com/Khoulaiz/gradle-jetty-eclipse-plugin/issues/4">#4 Running from Eclipse plugin</a> for <a href="https://github.com/Khoulaiz/gradle-jetty-eclipse-plugin">gradle-jetty-eclipse-plugin</a> that has support for jetty 7+</p> |
| 472 | +<h3> <a name="daemon" class="anchor" href="..md.html#daemon"><span class="octicon octicon-link"></span></a>Daemon</h3> |
| 473 | +<p>see <a href="..md.html">Chapter 19. The Gradle Daemon</a>, <a href="..md.html">Appendix D. Gradle Command Line</a></p> |
| 474 | +<p>Use Gradle daemon to speed up sequential gradle execution:</p> |
| 475 | +<p>launch <code>gradle --foreground -i</code> in a shell or configure Eclipse external tool:</p> |
| 476 | +<p><a href="docs/add-gradle-daemon-as-external-tool-1.PNG" target="_blank"><img src="docs/add-gradle-daemon-as-external-tool-1.PNG" alt="" style="max-width:100%;" /></a><br /><a href="docs/add-gradle-daemon-as-external-tool-2.PNG" target="_blank"><img src="docs/add-gradle-daemon-as-external-tool-2.PNG" alt="" style="max-width:100%;" /></a></p> |
| 477 | +<h3> <a name="developing" class="anchor" href="..md.html#developing"><span class="octicon octicon-link"></span></a>Developing</h3> |
| 478 | +<ol> |
| 479 | + <li> <code>git clone</code>;</li> |
| 480 | + <li>import this project and <code>org.nodeclipse.common</code> (only 2 is enough) in Eclipse with PDE (e.g. Eclipse SDK/Classic) as "Existing Projects into Workspace".</li> |
| 481 | +</ol> |
| 482 | +<p>maven build is optional for full build with other plugins.</p> |
| 483 | +<h4> <a name="some-links" class="anchor" href="..md.html#some-links"><span class="octicon octicon-link"></span></a>Some links</h4> |
| 484 | +<ul> |
| 485 | + <li><a href="http://www.javaworld.com/article/2071275/core-java/when-runtime-exec---won-t.html">When Runtime.exec() won't</a></li> |
| 486 | +</ul> |
| 487 | +<blockquote> |
| 488 | + <p>Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock.</p> |
| 489 | +</blockquote> |
| 490 | +<pre><code>"C:\Program Files\Java\jdk1.7.0_25/bin/java.exe" "-Dorg.gradle.appname=gradle" -classpath "D:\Progs\gradle-1.10\lib\gradle-launcher-1.10.jar" org.gradle.launcher.GradleMain |
| 491 | +</code></pre> |
| 492 | +<p>Java without IDE <a href="http://www.cs.swarthmore.edu/%7Enewhall/unixhelp/debuggingtips_Java.html">http://www.cs.swarthmore.edu/~newhall/unixhelp/debuggingtips_Java.html</a></p> |
| 493 | +<p><a href="http://stackoverflow.com/questions/502494/execute-a-java-program-from-our-java-program">http://stackoverflow.com/questions/502494/execute-a-java-program-from-our-java-program</a></p> |
459 | 494 | </body> |
460 | 495 | </html> |
0 commit comments