This probably isn't the answer you're looking for, but...
I use MyClass.class.getResourceAsStream ("/file.properties") ;
And I just put "file.properties" at the root of a CLASSPATH folder.
> -----Original Message-----
> From: Brad Walker [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 27, 2002 8:39 AM
> To: [EMAIL PROTECTED]
> Subject: Conditions with a custom matcher
>
>
> Hey folks,
>
> I am attempting to write a custom matcher, which as its condition, takes a
> path to a config file. Here is the syntax:
>
> <mailet
> match="MyMatcher=C:/java/james-2.1a1-2002-08-18/apps/james/conf/my
> file.txt"
> class="Null" />
>
> The problem that I am having is that I need to speicfy the absolute path
> name in order to open the config file. Ideally, I would like to specify a
> relative path:
>
> <mailet match="MyMatcher=conf/myfile.txt" class="Null" />
>
> Does anybody know how I can programatically prepend the
> relativate path name
> specified in the condition with the absolute base path of my james
> application? I'm not very familiary with the underlying framework
> ( Avalon,
> Cornerstone, etc), but I'm sure there is a way ;)
>
> Thanks for the help,
> Brad
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Brad D. Walker
> Sr. Software Engineer
> Student Advantage, Inc.
> 617-880-1737
> <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]
> <http://www.studentadvantage.com/> http://www.studentadvantage.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>