Skip to content

Commit

Permalink
Hack to prevent JBoss Modules from blowing up Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Oct 31, 2013
1 parent 82dfffc commit 4ada7ba
Show file tree
Hide file tree
Showing 2 changed files with 1,477 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,20 @@
*/
public class FurnaceImpl implements Furnace
{
{
if (System.getProperty("modules.ignore.jdk.factory") == null)
System.setProperty("modules.ignore.jdk.factory", "true");
}

private static Logger logger = Logger.getLogger(FurnaceImpl.class.getName());

private volatile boolean alive = false;
private volatile ContainerStatus status = ContainerStatus.STOPPED;

private boolean serverMode = true;
private AddonLifecycleManager manager;
private List<ContainerLifecycleListener> registeredListeners = new ArrayList<ContainerLifecycleListener>();
private List<ListenerRegistration<ContainerLifecycleListener>> loadedListenerRegistrations = new ArrayList<ListenerRegistration<ContainerLifecycleListener>>();
private final List<ContainerLifecycleListener> registeredListeners = new ArrayList<ContainerLifecycleListener>();
private final List<ListenerRegistration<ContainerLifecycleListener>> loadedListenerRegistrations = new ArrayList<ListenerRegistration<ContainerLifecycleListener>>();

private ClassLoader loader;

private List<AddonRepository> repositories = new ArrayList<AddonRepository>();
private Map<AddonRepository, Integer> lastRepoVersionSeen = new HashMap<AddonRepository, Integer>();
private final List<AddonRepository> repositories = new ArrayList<AddonRepository>();
private final Map<AddonRepository, Integer> lastRepoVersionSeen = new HashMap<AddonRepository, Integer>();

private final LockManager lock = new LockManagerImpl();

Expand Down Expand Up @@ -363,7 +358,8 @@ public AddonRepository addRepository(AddonRepository repository)
{
if (registeredRepo.getRootDirectory().equals(repository.getRootDirectory()))
{
throw new IllegalArgumentException("There is already a repository defined with this path: " + repository.getRootDirectory());
throw new IllegalArgumentException("There is already a repository defined with this path: "
+ repository.getRootDirectory());
}
}

Expand Down
Loading

0 comments on commit 4ada7ba

Please sign in to comment.