Skip to content

Commit 72c1bc0

Browse files
committed
We do not really handle the xml extension
The intent was to handle pom.xml files properly; we will have to special-case pom.xml files in the script editor if we want to support compile & run because we'll have to figure out the main class from the POM and then ask the script engine to run that class. This happens to address half of http://fiji.sc/bugzilla/show_bug.cgi?id=804, reported by Graeme Ball: .xml files were misinterpreted as scripts by Fiji/ImageJ2. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 6274021 commit 72c1bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/plugins/scripting/java/JavaScriptLanguage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public boolean isCompiledLanguage() {
6363

6464
@Override
6565
public List<String> getExtensions() {
66-
return Arrays.asList("java", "xml");
66+
return Arrays.asList("java");
6767
}
6868

6969
@Override

0 commit comments

Comments
 (0)