EAR Support
Can you hear me now?
This commit is contained in:
parent
1cf65954c5
commit
5c0eadf643
3 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ public class ImageRenderer extends DefaultTreeCellRenderer
|
||||||
ResourceTreeNode node = (ResourceTreeNode) value;
|
ResourceTreeNode node = (ResourceTreeNode) value;
|
||||||
String name = node.toString().toLowerCase();
|
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);
|
setIcon(Resources.jarIcon);
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ public class ImportResource implements Runnable
|
||||||
}
|
}
|
||||||
else
|
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))
|
if(!Import.ZIP.getImporter().open(file))
|
||||||
update = false;
|
update = false;
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class DirectoryResourceImporter implements Importer
|
||||||
final String fileName = child.getName();
|
final String fileName = child.getName();
|
||||||
|
|
||||||
//attempt to import archives automatically
|
//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);
|
Import.ZIP.getImporter().open(child);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue