Win a copy of Head First Android this week in the Android forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

ANT installation problem......

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is from the get go on the "build".
I run the command: build -Ddist.dir=<c:\ant> dist
An "access is denied" message is all I get.
The permissions are all good as I am the object owner.
I am using Window$2000.
Anyone have a similiar situation? I am up for ANY suggestions? My main goal is to get JAMES a runnin
 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you supply some more details on you environment?
Where is ant installed?
Where are you running the "ant" command from?
Where is your build.xml file?
Also, why are you passing dist.dir on the command line rather than placing it in build.xml?
 
darren schild
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ant is installed in c:\apache\ant.
The command is run from a cmd prompt.
I have a build file in c:\apache\ant at the moment it was in c:\apache.
I am passing the dist.dir per the install documentation for ant.
Do you know any good sights to learn more about ant? Maybe a good book or two?
Thanks for the reply!
 
Chris Reeves
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Darren -
I'll let you know how I use ant - maybe that will help.
First, c:\apache\ant is a good place to have ant installed. Now, add c:\apache\ant\bin to your path. This will allow you to run ant from anywhere.
Next, I have a projects folder in c:\java\projects\. Each project gets a folder, and in that folder an ant file. So:
c:\java\projects\demo
contains:
c:\java\projects\demo\build.xml
c:\java\projects\demo\demo.java
I cd to c:\java\projects\demo, and execute the ant command, all by itself.
I set all the properties right in the ant file, rather than passing them on the command line.
Hope that helps!
 
Author
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good answers already given for this issue. As for books on Ant, please give our book a try (see my signature for details).
Please post back if you still have issues with getting Ant to run.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic