Community
Participate
Working Groups
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
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.
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?
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.
Working as designed.
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.
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.