Regex Test / BaseFilter
Original [issue 41](https://code.google.com/p/okapi/issues/detail?id=41) created by @fliden on 2009-04-01T23:52:28.000Z:
I had to reinstall Eclipse and I moved the workspace folder over to Documents and settings and now the RegexTest is not working. Seems there's some path issue in the BaseParameter.
Comments (4)
-
Account Deleted -
Account Deleted Comment [2.](https://code.google.com/p/okapi/issues/detail?id=41#c2) originally posted by @fliden on 2009-04-02T01:03:00.000Z:
Ok it looks like the files are in the bin folder. But it doesn't like the URI decoded path. If I change the test method to this:
URL paramsUrl = RegexFilterTest.class.getResource("/okf\_regex@ StringInfo.fprm"); params.load(URLDecoder.decode(paramsUrl.getPath(),"utf-8"), false);
it works, but I'm not sure if we should do that in the test or in the BaseParameter?
-
Account Deleted - changed status to new
Comment [3.](https://code.google.com/p/okapi/issues/detail?id=41#c3) originally posted by @ysavourel on 2009-04-04T11:53:35.000Z:
Can't reproduce
-
Account Deleted - changed status to invalid
Comment [4.](https://code.google.com/p/okapi/issues/detail?id=41#c4) originally posted by @fliden on 2009-04-29T16:29:09.000Z:
- Log in to comment
Comment [1.](https://code.google.com/p/okapi/issues/detail?id=41#c1) originally posted by @ysavourel on 2009-04-02T00:22:06.000Z:
The baseParameter simply opens the file, so the problem is probably the path of the file itself. It is this weird way of getting files from the resources. The actual path read in my build is in bin, so maybe the .fprm does not get copied to the bin folder in your build?