Learning notes: Eclispe runs Ant

xiaoxiao2021-03-06  40

Eclipse built-in ANT support allows both anarable to implement ANT construction files. Import org.eclipse.ant.core.eclipse.ant.core.eclipse.ant.core.eclipse.ant.core.eclipse.nt.core.eClipse.ant.core.eclipse.nt.core.eclipse.nt.core.eclipse.nt.core.eclipse.nt.core.eclipse.nt.core.eclipse.ant.core.eclipse.nt.

Import org.eclipse.core.Runtime.iprogressMonitor;

...

Public void runbuild () {

IProgressMonitor Monitor = ...

Antrunner Runner = new antrunner ();

Runner.setBuildFileLocation ("c: /buildfiles/build.xml");

Runner.Setarguments ("- DMESSAGE = Building -verbose);

Runner.run (Monitor);

} Each time an ANT is executed in Eclipse, a new category loader platform is created to provide a number of useful and Ant jobs and content that conversation with the workspace. The envelopes that can be built in the same JRE in the same JRE as the workspace use this job for the IResource.Refreshlocal () method. Example:

Resource is one of the following: 0, 1 or Infinite Eclipse.IncrementAlBuild () and iWorkspace.Build () method. Enclosure. Example:

Project To build a project Eclipse.convertPath converts the file system path into a resource path and vice versa. The result value has been specified to a given content. Example: When your plug-in program provides Ant jobs and types and When the error is made, the job and type can access all the categories of the provided plug-in. For example, the Eclipse.Refreshlocal job provided by ORG.ECLIPSE.CORE.Resources plus program is the envelope of the IResource.Refreshlocal () method. In actual RCP applications, I don't understand that I can't run alone, it may be that Plugin's dependence is not financing, and I will test and solve problems when I have time.

转载请注明原文地址:https://www.9cbs.com/read-68129.html

New Post(0)