blob: 824b64ea291a3f40bb17845c654dad656b47db61 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.j2ee.internal.archive;
import java.util.List;
import org.eclipse.jst.j2ee.classpathdep.IClasspathDependencyConstants;
import org.eclipse.jst.jee.archive.IArchiveResource;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
public abstract class J2EEComponentArchiveLoadAdapter extends ComponentArchiveLoadAdapter{
public J2EEComponentArchiveLoadAdapter(IVirtualComponent component) {
super(component);
}
public J2EEComponentArchiveLoadAdapter(IVirtualComponent component, boolean includeClasspathComponents) {
super(component, includeClasspathComponents);
}
@Override
public List <IArchiveResource> getArchiveResources() {
super.getArchiveResources();
if (includeClasspathComponents) {
addMappedClassFolders(IClasspathDependencyConstants.RUNTIME_MAPPING_INTO_COMPONENT_PATH);
}
return filesHolder.getFiles();
}
}