From user-return-38712-apmail-ant-user-archive=ant.apache.org@ant.apache.org Mon Nov 17 14:39:11 2003 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 46711 invoked from network); 17 Nov 2003 14:39:10 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Nov 2003 14:39:10 -0000 Received: (qmail 11032 invoked by uid 500); 17 Nov 2003 14:38:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 10897 invoked by uid 500); 17 Nov 2003 14:38:57 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 10884 invoked from network); 17 Nov 2003 14:38:56 -0000 Received: from unknown (HELO tdsi-mm-tor01.CORP.TDSECURITIES.COM) (142.205.240.97) by daedalus.apache.org with SMTP; 17 Nov 2003 14:38:56 -0000 Received: from TDSI-IMS-TOR01.CORP.TDSECURITIES.COM (Not Verified[49.50.20.46]) by tdsi-mm-tor01.CORP.TDSECURITIES.COM with NetIQ MailMarshal (v5.5.5.6) id ; Mon, 17 Nov 2003 09:38:48 -0500 Received: from TDSI-EXCH-TOR2.CORP.TDSECURITIES.COM ([49.50.20.32]) by TDSI-IMS-TOR01.CORP.TDSECURITIES.COM with Microsoft SMTPSVC(5.0.2195.6713); Mon, 17 Nov 2003 09:38:48 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Error finding class Date: Mon, 17 Nov 2003 09:38:47 -0500 Message-ID: <4D85E67FF7BC564AA33DC6DF1E134DF002C7F2B5@TDSI-EXCH-TOR2.CORP.TDSECURITIES.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Multiple source directories for task "depend" Thread-Index: AcOtFRHavXPrLs9rT0qv+NrLem4T3QAAq5Kw From: "Bender, Christopher" To: "Ant Users List" X-OriginalArrivalTime: 17 Nov 2003 14:38:48.0049 (UTC) FILETIME=[82B90610:01C3AD18] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N HEy everyone, When I call my buildfile from the command line, everything works fine. When i call it through a java app I get the following exception file:C:/path_to_file/file_name.xml:75: taskdef class = com.pkg1.pkg2.ClassName cannot be found at = org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:240) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162) at org.apache.tools.ant.Task.perform(Task.java:341) This is the code I am using to call the file Project project =3D new Project(); project.init(); =09 File buildFile =3D new File(BuildFileLoc()); //ResourceDir is where the build file is located project.setBaseDir(new File(ResourceDir())); =09 ProjectHelper.configureProject(project, buildFile); =09 project.setProperty("homeDir", getAppHome()); project.setProperty("instanceName", getInstanceName()); =09 DMTBuildListener myListener =3D new DMTBuildListener(); project.addBuildListener(myListener); =09 project.executeTarget(target); The file can be called and ran properly, except when I have a task def = to the above java class. This class is found fine when ant is called by = the command line. I am using ANT 1.5.x Thanks, Chris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org