Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 16071 invoked by uid 500); 10 Mar 2001 16:36:47 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 16062 invoked from network); 10 Mar 2001 16:36:46 -0000 Sender: dwalend Message-ID: <3AAA577B.4552EECB@users.sourceforge.net> Date: Sat, 10 Mar 2001 11:34:04 -0500 From: Dave X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: Help with JUNit task References: <3AA9B254.FE227257@users.sourceforge.net> <3AAA4218.5E18CF46@users.sourceforge.net> <3AAA4E99.9B2673C5@users.sourceforge.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N OK. I figured this out myself, but I'll post the solution for posterity. If you get "Could not create task of type: junit. Common solutions are to use taskdef to declare your task, or, if this is an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME).", you might need the jakarta-ant-1.3-optional.jar, which is available at http://jakarta.apache.org/builds/ant/release/v1.3/bin/ . You might miss it if you download the rpms. Next, pop open /usr/bin/ant, and add jakarta-ant-1.3-optional.jar and junit.jar to the LOCALCLASSPATH The optional.jar from the rpm does not have the classes you need in it. Hope that saves someone else some work in the future. Dave