You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Scassa <ds...@journee.com> on 2001/05/22 21:35:40 UTC
RE: Listener: BuildMonitor.class::Update
With the help of one of my Java developers, I was able to instantiate the
BuildMonitor.class file. For some reason, I am still unable to get it to
work. Here is the output:
D:\context>ant -listener BuildMonitor -buildfile war.xml
Buildfile: war.xml
cwd: D:\context
is = java.io.BufferedInputStream@ac98f425
init:
[echo] 1.0_052201_13/classesMain
makeclasses:
war:
BUILD SUCCESSFUL
Total time: 2 seconds
javax/activation/DataSource
D:\context>
Is there something that I have to put/change in the .xml file?
David
-----Original Message-----
From: David Scassa [mailto:dscassa@journee.com]
Sent: Tuesday, May 22, 2001 11:00 AM
To: 'ant-user@jakarta.apache.org'
Subject: FW: Listener: BuildMonitor.class
Here is my cmd string: d:\context>ant -listener BuildMonitor -buildfile
autobuild.xml
Here is the error that I'm getting:
Unable to instantiate listener BuildMonitor
--- Nested Exception ---
java.lang.NullPointerException
at java.lang.Throwable.<init>(Throwable.java:84)
at java.lang.Exception.<init>(Exception.java:35)
at java.lang.RuntimeException.<init>(RuntimeException.java:39)
at
java.lang.NullPointerException.<init>(NullPointerException.java:45)
at java.io.Reader.<init>(Reader.java:68)
at java.io.InputStreamReader.<init>(InputStreamReader.java:88)
at java.io.InputStreamReader.<init>(InputStreamReader.java:77)
at java.util.Properties.load(Properties.java(Compiled Code))
at BuildMonitor.<init>(BuildMonitor.java:24)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:254)
at org.apache.tools.ant.Main.addBuildListeners(Main.java:445)
at org.apache.tools.ant.Main.runBuild(Main.java:384)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 0 seconds
-----Original Message-----
From: David Scassa
Sent: Tuesday, May 22, 2001 10:46 AM
To: 'ant-user@jakarta.apache.org'
Subject: Listener: BuildMonitor.class
Trying to get the BuildMonitor.class to work.
In order to build this class, I had to download javamail 1.2 and include the
mail.jar in the classpath. I then jar'ed the .class file and added the .jar
file to my path. I then configured the monitor.properties file and placed it
in the directory from which I was working. I've tried to add the properties
file to the jar and just about everywhere else, but no workie.
I was wondering if there is a website with instructions. I've read all of
the instructions I could find in the archive. I'm certainly doing this
wrong.
Dave
Re: Listener: BuildMonitor.class::Update
Posted by Stefan Bodewig <bo...@apache.org>.
David Scassa <ds...@journee.com> wrote:
> With the help of one of my Java developers, I was able to
> instantiate the BuildMonitor.class file. For some reason, I am still
> unable to get it to work. Here is the output:
>
> javax/activation/DataSource
Looks as if you had JavaMail in your CLASSPATH, but not the JavaBeans
Activation Framework
<http://java.sun.com/products/javabeans/glasgow/jaf.html> it relies upon.
The BuildMonitor requires JavaMail which in turn requires JAF.
Stefan