Author Topic: Find Files fails to find jars  (Read 174 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2158
  • Hero Points: 191
  • Text
Find Files fails to find jars
« on: February 17, 2021, 07:09:50 pm »
If I do a Find Files for "foobar.jar", and "Look In zip/word/excel files" is checked, Slickedit will not find "foobar.jar" - even though it does exist.

I have to clear that checkbox for it to be found :-(


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5702
  • Hero Points: 457
Re: Find Files fails to find jars
« Reply #1 on: February 18, 2021, 01:52:43 pm »
Working as designed. Turning on the "Look in" check box tells SlickEdit to treat .jar/.zip etc. as directories and not files. For this case, you don't want to "look in" the jar file. You want to find the jar file. SlickEdit does not support finding a .jar/.zip etc. inside a .jar/.zip file.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5702
  • Hero Points: 457
Re: Find Files fails to find jars
« Reply #2 on: February 18, 2021, 03:40:14 pm »
Although, maybe SlickEdit could detect this and ignore the "Look in zip/word/excel files" option.

jporkkahtc

  • Senior Community Member
  • Posts: 2158
  • Hero Points: 191
  • Text
Re: Find Files fails to find jars
« Reply #3 on: February 18, 2021, 05:35:10 pm »
Find-file does match embedded zips/jars, but not recursively.
If "foo.zip" contains "bar.jar", Find-File can find bar.jar (and won't look inside bar.jar)
But it won't find "foo.zip"

All that is needed is for find-files to match foo.zip, as well as search inside it (treat it as a file *and* a directory).

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5702
  • Hero Points: 457
Re: Find Files fails to find jars
« Reply #4 on: February 18, 2021, 05:50:43 pm »
I guess that makes since SlickEdit does not yet support searching for a .jar inside a .jar.  That could change in the future.

At the moment, Find Files doesn't support searching for directories. Maybe we could add that at some point. That's another way to make this work. Interesting idea.