Hmm Hmm... After -listener, there should be a class *name* (just MyBuildListener is its source doesn't have a package declaration, or <package name>.MyBuildListener if it does), *NOT* a class *file name*.
Please read my previous message carefully ;-) --DD > -----Original Message----- > From: Radha Sangal [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 27, 2005 4:45 PM > To: Ant Users List > Subject: RE: problem with accesing listeners > > I did that , see .. > > C:\EclipsePRWorkspace\LogDatabase>echo %CLASSPATH% > c:\EclipsePRWorkspace\LogDatabase\bin > > I have MyBuildListener.class in that dir > Still the error !! ;-(( > > -----Original Message----- > From: Dominique Devienne [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 27, 2005 5:42 PM > To: Ant Users List > Subject: RE: problem with accesing listeners > > > From: Radha Sangal [mailto:[EMAIL PROTECTED] > > > > This should be easy. I am trying to add my listener class > > MyBuildListener but ant doesn't seem to find it. I tried giving > complete > > paths but still getting same error. This is like some classpath issue > ? > > > > I m following this tutorial > > http://www.onjava.com/pub/a/onjava/2001/02/22/open_source.html?page=3 > > > > C:\EclipsePRWorkspace\LogDatabase>ant -debug -listener > > c:\EclipsePRWorkspace\LogDatabase\bin\MyBuildListener > > Hmmm, you should try to familiarize yourself with classpaths and class > names. > > You need to: > 1) Compile your listener into a directory. > 2) Put this directory in your CLASSPATH > 3) Specify our listener class name, not file path. > > For example, you listener is in package foo.bar, and its class name > is MyBuildListener. It's full class name is thus > foo.bar.MyBuildListener. > > Assume you compile it into /usr/me/classes. You'll then have a > /usr/me/classes/foo/bar/MyBuildListener.class file. > > You do at the command prompt: > > set CLASSPATH=/usr/me/classes > > and then ant -listener foo.bar.MyBuildListener > > and you're done ;-) --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
