Bug 106604 - Could not find default eclipse ant task
Summary: Could not find default eclipse ant task
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 05:40 EDT by Andrej Zachar CLA
Modified: 2005-08-11 10:43 EDT (History)
0 users

See Also:


Attachments
External tools - ant classpath (111.09 KB, image/png)
2005-08-10 05:44 EDT, Andrej Zachar CLA
no flags Details
Runtime ant contributed entries (100.71 KB, image/png)
2005-08-10 05:46 EDT, Andrej Zachar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Zachar CLA 2005-08-10 05:40:41 EDT
Dear eclipse devel team,

I made a new project with the new file build.xml like this:

<?xml version="1.0"?>
<project name="project" default="default">
    <target name="default" description="--> description">
        <eclipse.convertPath/>
    </target>
</project>

Then i ran it, but it thrown an exception like this:
BUILD FAILED
... /workspace/test/build.xml:4: Could not create task or type of type:
eclipse.convertPath.

Then i found out, that this additional bundle task is in classpath in the ant
task runtime preferencies, but is not in classpath in run external program and i
did not find any possibility how to add to it automatically - i hate to do it
manually.

Could you help me, please?
If you want, I can send you some  screenshots of my eclipse's settings.

Best Regards 
Andrej Zachar
Comment 1 Andrej Zachar CLA 2005-08-10 05:44:55 EDT
Created attachment 25955 [details]
External tools - ant classpath

External tools - ant classpath 
Hera are missing default eclipse ant tasks such as "<eclipse.convertPath/>" and
so on.
Comment 2 Andrej Zachar CLA 2005-08-10 05:46:49 EDT
Created attachment 25956 [details]
Runtime ant contributed entries

From this list is only the last entry included in the external tools-ant
claspath. Why not all?
Comment 3 Darin Wright CLA 2005-08-10 10:36:29 EDT
By default, Ant builds are run in a seperate VM from Eclipse. The 
special "Eclipse" tasks are required to execute in the same runtime as 
Eclipse, and to be able to use the tasks, you must specify to run in the same 
runtime as Eclipse on the JRE tab of the Ant launch config.
Comment 4 Darin Swanson CLA 2005-08-10 20:20:07 EDT
Working as designed.
Comment 5 Andrej Zachar CLA 2005-08-11 06:40:19 EDT
Thanks a lot, it works now!    
But anyway, i think it should be set as default to work with bundles eclipse    
tasks (Run in the same JRE as the workspace), otherwise it could lead to    
missunderstanding of usage.  
Comment 6 Darin Swanson CLA 2005-08-11 10:43:52 EDT
The default is unlikely to change. 

Most users do not use the Eclipse tasks and running in a separate VM isolates 
the user from potential memory leaks from the Ant execution.