vscode-java-dependency icon indicating copy to clipboard operation
vscode-java-dependency copied to clipboard

Adding a source folder directly, rather than its contents

Open Azmisov opened this issue 2 years ago • 2 comments

Typically, you'll have a source structure like so: "src/package/path/MyClass.java". When you add src to the list of sources, it will include the contents, e.g. package.path.MyClass. That is sensible.

There is a project I'm working on that has a resource folder which I'd like to add directly. E.g. Add the folder itself, not the folder's contents. For example, suppose I have structure: "images/img.png". Currently, if I add images to sources, then img.png gets copied directly to the build directory, instead of images/img.png. As a workaround, I have to rearrange the structure to be something like "src_images/images/img.png", or move into "src/images/img.png". Hope that makes sense.

Azmisov avatar Jul 13 '23 01:07 Azmisov

So it's an unmanaged folder project right?

jdneo avatar Jul 13 '23 01:07 jdneo

Yes

Azmisov avatar Jul 13 '23 22:07 Azmisov