ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pracht <bpra...@nc.rr.com>
Subject Re: Why can't Ant find my class?
Date Mon, 23 Feb 2004 18:42:08 GMT
My MANIFEST.MF:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6alpha
Created-By: 1.4.1_01-b01 (Sun Microsystems Inc.)
Main-Class: StandaloneTestFilter
Implementation-Title: FixCRLFFilter Filter
Implementation-Version: 3.3 February 16 2004
Implementation-Vendor: IBM Corporation

Top portion of my FixCRLFFilter.java:
import org.apache.tools.ant.filters.*;
import java.io.FilterReader;
import java.io.IOException;
import java.io.Reader;
import java.io.*;
import java.io.StringReader;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.FileUtils;

public class FixCRLFFilter extends FilterReader
implements ChainableReader
{
...






Matt Benson wrote:

> --- 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