ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Why can't Ant find my class?
Date Mon, 23 Feb 2004 18:24:24 GMT
--- Peter Reilly <peter.reilly@corvil.com> wrote:
> 
> The follows works for me:
> 
> <project default="testreader">
...

agreed.  Simply for testing classloading, I used:

<project>
    <concat>
testing testing 1 2 3
        <filterchain>
            <filterreader
classname="TestFilterReader">
                <classpath>
                    <pathelement
path="d:\javaWorkArea\TestFilterReader.jar" />
                </classpath>
            </filterreader>
        </filterchain>
    </concat>
</project>

jar tf TestFilterReader yields:

META-INF/
META-INF/MANIFEST.MF
TestFilterReader.class

and TestFilterReader.java contains:

import java.io.Reader;
import java.io.PushbackReader;

public class TestFilterReader extends PushbackReader {

    public TestFilterReader(Reader r) {
        super(r);
    }
}

output:

   [concat] testing testing 1 2 3

So everything appears to be in order...


IIRC you were using a custom manifest.  What are its
contents again/how is it generated?

-Matt

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message