• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse 2.1 running Ant problem!

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have a problem when trying to run Ant in Eclipse.
I go to Run>External Tools>External Tools>
I enter the Location: ${workspace_loc:/ant/build.xml}
but I'm not too sure about the Base directory. Is this where Ant should run, i.e.: ${workspace_loc:/ant} ???
I have filled in the properties necessary, and expected to find a list of "Targets" available - However, this is not the case. I don't get any available "Targets".
I get the following error:
"An error occured attempting to expand the variable workspace loc. No resource selected."
Thinking that maybe something is wrong with the workspace, I used the file system locations.
Location: D:\LS\Source\ant\build.xml
Base directory: D:\LS\Source\ant
Doing this, I get the following error at the top of the External Tools window:
[Targets]: file: D:\LS\Source\ant\configure.xml:4: taskdef class com.install.ConfigFilesTask cannot be found.
Does anyone have any idea where I could be going wrong here?
Thanks a lot for you help! Best regards,
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The location should be ${workspace_loc:/"project"/build.xml} where "project" is the name of your project. If the build file is in a sub-folder of the project, you need to include that in the location as well.
reply
    Bookmark Topic Watch Topic
  • New Topic