aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Adding new task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Adding new task" Watch "Adding new task" New topic
Author

Adding new task

Ethan Gur
Greenhorn

Joined: Feb 17, 2005
Posts: 12
Hi

I wrote a new task for a project. I exported it to a jar file, and put it in the lib/ant folder. When I try to run ant, I get the following error:
taskdef class messaging_as.util.crypt.MASANTFileCryptTask cannot be found

If I put the class file in classes folder, then ant succeeds. But I I don't want to do this, I want to seperate this task from my project.

Please help...
Thanks
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
You can jar it up, looks like people commonly list that jar explicitly in the build file:
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

"gur",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: Adding new task