Specifying Web module exploded dir - requires to be exisitng ??

See the screenshot attached - 7.0.3 requires a directory specified as Web module exploded directory to be existing.
How come ? I think it's possible for me to say "When building a Web module - use /a/b/c as exploded dir" even though /a/b or /a/b/c may not be existing.
I won't be able to point to that folder but I think I should be able to specify it manually.

Same way it happens in various installation applications (on Windows) when one specifies a non-existing folder. The application either creates one silently or offers user to create it. It doesn't stop just because the folder specified isn't there.



Attachment(s):
1.png
3 comments
Comment actions Permalink

I won't be able to point to that folder but I think I should be able to specify it manually.

You can, in a way. Say /a/b/c already exits, and you want to put the exploded files in /a/b/c/d/e
If you highlight the lowest existing directory ('c' in our example) and click the New Folder icon (or type alt+insert) the New Folder dialog will appear. Enter the relative path you want to create ('d/e' in our example) and click ok. By specifying the relative path, you don't have to keep adding a new directory, then add a new directory to it, etc.

Yes there is the extra step of having to click the "New Folder" icon (or typing alt+insert) rather than just entering it into the path text field. But I personally consider that a good thing. By making me explicitly create the directory, I know it does not exist yet. If it automatically created a directory from the path I enter in the path field, if I made a typo when trying to access an existing directory, it would create a directory I didn't want rather then putting it in the existing directory I did want. So the extra step is important feedback in my opinion.

Hope that helps.

0
Comment actions Permalink

Ok, I see your point.

But how about just asking "Path x/y/z" doesn't exist. Do you want to create it ?" as it usually happens in various installation programs ?
I mean, almost never I had to stop and create a folder (even by clicking a convenient icon) if it was missing (and if I had - I was angry for such a naive behavior).
"Yeah, I know it doesn't exist now, so create one for me" is a usuall way of thinking I guess.

I think people have much more chances to have the folder missing (and then a simple behavior of creating it with/without asking a question would be very convenient) than making a mistake (which IDEA probably tries to prevent). When trying to prevent an error - IDEA makes the usual case (without an error, the one that happens much more often) harder :)

0
Comment actions Permalink

Good points and suggestions. Submit a JIRA feature request for your suggestion. Sounds reasonable to me. I just know that there are times I think I know what the path is to an existing folder when I enter it, but I'm off due to an abbreviation, a plural versus singular, a missing additional directory, or something like that. So I like some type of "are you sure" feedback before creating a directory; a dialog box as you suggest would work. Just one of those personal working style things that we all vary in.

0

Please sign in to leave a comment.