Fix resource location to new plugin-resources directory
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112973 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
af35238eab
commit
4c0c5e116d
2 files changed
+15
-10
No files matched your search
@@ -61,6 +61,8 @@ import java.io.InputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.xml.sax.EntityResolver;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xml.sax.SAXException;
|
||||
@@ -69,34 +71,37 @@ import org.xml.sax.SAXException;
|
||||
* A class to resolve external entity definitions for j2ee artifacts.
|
||||
*
|
||||
* @author dion
|
||||
* @version $Id: J2EEEntityResolver.java,v 1.2 2003/01/30 22:58:06 kaz Exp $
|
||||
* @version $Id: J2EEEntityResolver.java,v 1.3 2003/02/23 11:29:29 dion Exp $
|
||||
*/
|
||||
public class J2EEEntityResolver implements EntityResolver
|
||||
{
|
||||
/** map of ids to resource names */
|
||||
private Map idToResource = new HashMap();
|
||||
|
||||
/** log for debug output */
|
||||
private static final Log LOG = LogFactory.getLog(J2EEEntityResolver.class);
|
||||
|
||||
/** Creates a new instance of EntityResolver */
|
||||
public J2EEEntityResolver()
|
||||
{
|
||||
idToResource.put(
|
||||
"-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN",
|
||||
"/application-client_1_3.dtd");
|
||||
"/plugin-resources/application-client_1_3.dtd");
|
||||
idToResource.put(
|
||||
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN",
|
||||
"/application_1_3.dtd");
|
||||
"/plugin-resources/application_1_3.dtd");
|
||||
idToResource.put(
|
||||
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN",
|
||||
"/ejb-jar_2_0.dtd");
|
||||
"/plugin-resources/ejb-jar_2_0.dtd");
|
||||
idToResource.put(
|
||||
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN",
|
||||
"/web-app_2_2.dtd");
|
||||
"/plugin-resources/web-app_2_2.dtd");
|
||||
idToResource.put(
|
||||
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN",
|
||||
"/web-app_2_3.dtd");
|
||||
"/plugin-resources/web-app_2_3.dtd");
|
||||
idToResource.put(
|
||||
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN",
|
||||
"/web-jsptaglibrary_1_2.dtd");
|
||||
"/plugin-resources/web-jsptaglibrary_1_2.dtd");
|
||||
}
|
||||
|
||||
/** resolve the entity given by the provided Ids
|
||||
|
||||
@@ -62,7 +62,7 @@ import org.apache.maven.j2ee.J2EEEntityResolver;
|
||||
* A class to resolve external entity definitions for struts artifacts.
|
||||
*
|
||||
* @author dion
|
||||
* @version $Id: StrutsEntityResolver.java,v 1.1 2003/01/24 03:45:53 jvanzyl Exp $
|
||||
* @version $Id: StrutsEntityResolver.java,v 1.2 2003/02/23 11:33:22 dion Exp $
|
||||
*/
|
||||
public class StrutsEntityResolver extends J2EEEntityResolver
|
||||
{
|
||||
@@ -73,9 +73,9 @@ public class StrutsEntityResolver extends J2EEEntityResolver
|
||||
{
|
||||
getIdToResource().put(
|
||||
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN",
|
||||
"/struts-config_1_0.dtd");
|
||||
"/plugin-resources/struts-config_1_0.dtd");
|
||||
getIdToResource().put(
|
||||
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN",
|
||||
"/struts-config_1_1.dtd");
|
||||
"/plugin-resources/struts-config_1_1.dtd");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user