I had a look into the source of <classconstants> - all exceptions are catched and a new IOEx with the message only is thrown. Maybe for debug purposes we could provide the complete stacktrace - especially here it could be useful, I think.
Jan > -----Urspr�ngliche Nachricht----- > Von: Ivan Ivanov [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 16. Februar 2005 14:33 > An: Ant Users List > Betreff: Re: AW: ClassConstants filterreader fails with IOException > > Hello, Peter and all, > > I am using Fedora Core 2 and <classconstants> does > *not* work on my machine too. I am running the > following ant script: > <project basedir="."> > <available file="${basedir}/Constants.class" > property="avc"/> > <fail message="Constants.class not found" > unless="avc"/> > <loadproperties > srcfile="${basedir}/Constants.class"> > <filterchain> > <classconstants/> > </filterchain> > </loadproperties> > </project> > > > against the following class: > public class Constants { > public static final int INT_CONST = 1; > public static final String STR_CONST = "constant"; > } > > It fails with > /home/rambius/drafts/ant/constants.xml:4: Unable to > load file: java.io.IOException > > I am using bcel-5.1.jar with ant 1.6.2 with JDK > 1.4.2_04. > > Regards Ivan > > --- Peter Reilly <[EMAIL PROTECTED]> wrote: > > > Mmm, > > I cannot seem to get classconstants to work at all > > on linux. > > Has anyone seen it work in linux? > > > > Peter > > > > [EMAIL PROTECTED] wrote: > > > > >I could reproduce your problem and did several > > tests: > > >- no problems with datatypes (short, int, String) > > >- no problems with names > > >- no problems with values ("", "&", > > VALUE_OF_ANOTHER) > > > > > >But it seems that there is a limit of constants on > > 84, but don�t know why. > > > > > >I split that file into four classes and then it > > worked ... not the fine > > >solution ... > > > > > > > > >Jan > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
