This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Invoking Ant on Ubuntu terminal : same commands as used on Windows doesnt work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Invoking Ant on Ubuntu terminal : same commands as used on Windows doesnt work" Watch "Invoking Ant on Ubuntu terminal : same commands as used on Windows doesnt work" New topic
Author

Invoking Ant on Ubuntu terminal : same commands as used on Windows doesnt work

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi all,

I just installed ubuntu 10.10 and am setting up my dev environment, but I'm having trouble with Ant...
I usually had a bunch of bat files on my desktop that I use to start different configurations of jboss as well as another bunch to build different projects.
The .bat files usually invoked Ant like:



But now doing the same thing in Ubuntu's terminal, ant gives me the following error:



And a similar error for any type of parameter that I try invoke it with ie. -v OR -logfile

Please help !! I'd like to set up my env quickly!!


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

is the xxx.properties file always in the current directory?
The standard way to do things like this is to provide a default behaviour in the ~/.bashrc file as an alias
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

oh, and it is a space, there is no equals '='
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Thanks, it was the equals sign that was causing the problems....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invoking Ant on Ubuntu terminal : same commands as used on Windows doesnt work