EAR Support

Can you hear me now?
This commit is contained in:
Konloch 2021-07-01 16:50:07 -07:00
parent 1cf65954c5
commit 5c0eadf643
3 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ public class ImageRenderer extends DefaultTreeCellRenderer
ResourceTreeNode node = (ResourceTreeNode) value;
String name = node.toString().toLowerCase();
if (name.endsWith(".jar") || name.endsWith(".war"))
if (name.endsWith(".jar") || name.endsWith(".war") || name.endsWith(".ear"))
{
setIcon(Resources.jarIcon);
}

View file

@ -58,7 +58,7 @@ public class ImportResource implements Runnable
}
else
{
if (fn.endsWith(".jar") || fn.endsWith(".zip") || fn.endsWith(".war"))
if (fn.endsWith(".jar") || fn.endsWith(".zip") || fn.endsWith(".war") || fn.endsWith(".ear"))
{
if(!Import.ZIP.getImporter().open(file))
update = false;

View file

@ -60,7 +60,7 @@ public class DirectoryResourceImporter implements Importer
final String fileName = child.getName();
//attempt to import archives automatically
if (fileName.endsWith(".jar") || fileName.endsWith(".zip") || fileName.endsWith(".war"))
if (fileName.endsWith(".jar") || fileName.endsWith(".zip") || fileName.endsWith(".war") || fileName.endsWith(".ear"))
{
Import.ZIP.getImporter().open(child);
}