Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>So, you want an Ant task that runs within Eclipse. And as you say, it's clear that those tasks are using the Eclipse API. As of this moment, I don't really understand how they're doing it. I've looked at the source of a couple of them and I still have questions.</p> <p>To find the locations of all the Ant tasks contributed by Eclipse, do a Plug-in Search for <code>org.eclipse.ant.core.antTasks</code>. When I do that, I see twenty or so extensions, many of which define multiple tasks.</p> <p>If you get the source bundle for a plugin that contributes one of these tasks, you can look at the source for it. RefreshLocalTask is in org.eclipse.core.resources; unfortunately, when I import this bundle into my workspace as a source project, the source for the Ant tasks doesn't get linked correctly. There is a separate jar (inside the bundle) for them, and, while the source is in the bundle, it's not clear how the jar is compiled. The upshot is that I don't have the Ant task source compiling in my workspace.</p> <p>You can also Google for the Ant task source; here's the <a href="http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.6/org.eclipse.core/resources/3.6.0/org/eclipse/core/resources/ant/RefreshLocalTask.java" rel="nofollow">3.6.0 source</a> for <code>RefreshLocalTask</code>.</p> <p>Anyway, in the source you can see calls to <code>org.eclipse.core.resources.ResourcePlugin</code> that are illustrative of what you probably need.</p> <p>Ah, I see in the extension point description - right-click on one of those search results and choose "Show Description", or go there from the Manifest editor - that there is a flag you can set, "eclipseRuntime"; the text implies that if it is set, Eclipse will launch the task in the same VM.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload