Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem using eclipse.refreshLocal with ant
Problem using eclipse.refreshLocal with ant [message #205918] Thu, 04 March 2004 14:41 Go to next message
Jacques Bonet is currently offline Jacques Bonet
Messages: 3
Registered: July 2009
Junior Member
Hello,

I converted my Eclipse ide from release 2.1.2 to 3.0 M7.

After installed it, I try to run my build.xml projets file.

Now I get an error when I execute the target :

<target name="build" depends="date">

<eclipse.refreshLocal resource="${project}" depth="infinite"/>

<eclipse.incrementalBuild project="${project}"/>

</target>

Here the error message :

BUILD FAILED:

X:\FC_HMI_Framework\FactoryCast_HMI_Java_components\FCHMI\bu ild.xml:50:

Could not create task or type of type: eclipse.refreshLocal.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual

solutions are to read the manual pages then download and

install needed JAR files, or fix the build file:

- You have misspelt 'eclipse.refreshLocal'.

Fix: check your spelling.

- The task needs an external JAR file to execute

and this is not found at the right place in the classpath.

Fix: check the documentation for dependencies.

Fix: declare the task.

- The task is an Ant optional task and optional.jar is absent

Fix: look for optional.jar in ANT_HOME/lib, download if needed

- The task was not built into optional.jar as dependent

libraries were not found at build time.

Fix: look in the JAR to verify, then rebuild with the needed

libraries, or download a release version from apache.org

- The build file was written for a later version of Ant

Fix: upgrade to at least the latest release version of Ant

- The task is not an Ant core or optional task

and needs to be declared using <taskdef>.

Remember that for JAR files to be visible to Ant tasks implemented

in ANT_HOME/lib, the files must be in the same directory or on the

classpath

Please neither file bug reports on this problem, nor email the

Ant mailing lists, until all of these causes have been explored,

as this is not an Ant bug.

Total time: 1 second





After that, I try to build the sample project org.eclipse.help.examples.ex1

provided by the eclipse.org.

<target name="refresh" depends="init" if="eclipse.running">

<eclipse.refreshLocal resource="${plugin}" depth="infinite"/>

</target>

I get no problem but I found the instruction if="eclipse.running" return

false, so I removed it.

Now when I execute the target :

<target name="refresh" depends="init">

<eclipse.refreshLocal resource="${plugin}" depth="infinite"/>

</target>

I have the same error than in my project :





BUILD FAILED:

V:\FC_HMI_ConfTools\eclipse\workspace\org.eclipse.help.examp les.ex1\build.xm

l:73: Could not create task or type of type: eclipse.refreshLocal.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual

solutions are to read the manual pages then download and

install needed JAR files, or fix the build file:

- You have misspelt 'eclipse.refreshLocal'.

Fix: check your spelling.

- The task needs an external JAR file to execute

and this is not found at the right place in the classpath.

Fix: check the documentation for dependencies.

Fix: declare the task.

- The task is an Ant optional task and optional.jar is absent

Fix: look for optional.jar in ANT_HOME/lib, download if needed

- The task was not built into optional.jar as dependent

libraries were not found at build time.

Fix: look in the JAR to verify, then rebuild with the needed

libraries, or download a release version from apache.org

- The build file was written for a later version of Ant

Fix: upgrade to at least the latest release version of Ant

- The task is not an Ant core or optional task

and needs to be declared using <taskdef>.

Remember that for JAR files to be visible to Ant tasks implemented

in ANT_HOME/lib, the files must be in the same directory or on the

classpath

Please neither file bug reports on this problem, nor email the

Ant mailing lists, until all of these causes have been explored,

as this is not an Ant bug.

Total time: 721 milliseconds





I think there is a classpath problem.

What jar is missing?









Thanks
Re: Problem using eclipse.refreshLocal with ant [message #205930 is a reply to message #205918] Thu, 04 March 2004 15:02 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.NO.SPAM.us.ibm.com

By default in 3.0, ant runs in a separate vm. Since it is a separate vm,
it doesn't know anything about eclipse. If you want it to run in the
Eclipse VM, open the configuration and go to the JRE page and select run
in same JRE as workspace.



--
Thanks, Rich Kulp

Re: Problem using eclipse.refreshLocal with ant [message #216348 is a reply to message #205930] Fri, 26 March 2004 16:36 Go to previous messageGo to next message
Eclipse User
Originally posted by: alan.hebert.lucernex.com

Can you please direct me to the section where this configuration is changed?

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:c27g81$ooq$1@eclipse.org...
> By default in 3.0, ant runs in a separate vm. Since it is a separate vm,
> it doesn't know anything about eclipse. If you want it to run in the
> Eclipse VM, open the configuration and go to the JRE page and select run
> in same JRE as workspace.
>
>
>
> --
> Thanks, Rich Kulp
> 
>
Re: Problem using eclipse.refreshLocal with ant [message #216357 is a reply to message #216348] Fri, 26 March 2004 16:55 Go to previous message
Darin Swanson is currently offline Darin Swanson
Messages: 2386
Registered: July 2009
Senior Member
As Rich indicated you use the JRE page for the Ant Launch configuration when
displayed in the Launch configuration Dialog.

Run>External Tools>External Tools...
OR
Context Menu for your Ant build file>Run Ant...

HTH
Darins

"Alan Hebert" <alan.hebert@lucernex.com> wrote in message
news:c41maq$73g$1@eclipse.org...
> Can you please direct me to the section where this configuration is
changed?
>
> "Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
> news:c27g81$ooq$1@eclipse.org...
> > By default in 3.0, ant runs in a separate vm. Since it is a separate vm,
> > it doesn't know anything about eclipse. If you want it to run in the
> > Eclipse VM, open the configuration and go to the JRE page and select run
> > in same JRE as workspace.
> >
> >
> >
> > --
> > Thanks, Rich Kulp
> > 
> >
>
>
Previous Topic:Eclipse User Questions
Next Topic:new icons in Eclipse 3.0 I20040325
Goto Forum:
  


Current Time: Fri Oct 24 12:11:47 GMT 2014

Powered by FUDForum. Page generated in 0.01680 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software