Commit 01880be
committed
Always write temporary projects for non-Maven sources
When compiling a .java file that is contained in, say, a Downloads/
directory, we definitely do not want to compile all of the .java files
available in the complete Downloads/** directory structure.
Now, we could special-case .java files containing the source for a class
in the default package, while still trying to discover .java files
recursively when the class is in a package and the directory structure
agrees with the package name.
But that would just violate the Law of the Least Surprise and confuse
people. So let's just make a temporary project in *every* case where we
do not find a pom.xml file in the expected location.
Incidentally, this makes sure that we always include pom.xml files in
the generated .jar files.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 4db01e4 commit 01880be
File tree
1 file changed
+1
-4
lines changed- src/main/java/org/scijava/plugins/scripting/java
1 file changed
+1
-4
lines changedLines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
| 299 | + | |
302 | 300 | | |
303 | 301 | | |
304 | 302 | | |
| |||
405 | 403 | | |
406 | 404 | | |
407 | 405 | | |
408 | | - | |
409 | 406 | | |
410 | 407 | | |
411 | 408 | | |
| |||
0 commit comments