my dog learned polymorphism
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Adding new task" Watch "Adding new task" New topic

Adding new task

Ethan Gur

Joined: Feb 17, 2005
Posts: 12

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...
Carol Enderlin
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

Joined: Jan 10, 2002
Posts: 63352


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.

Forum Bartender

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Adding new task
It's not a secret anymore!