01: /**
02: * Copyright (C) 2001-2005 France Telecom R&D
03: */package org.objectweb.speedo.ant.ejb;
04:
05: import java.util.ArrayList;
06:
07: import org.apache.tools.ant.types.DTDLocation;
08: import org.objectweb.speedo.ant.AbstractEnhancerTask;
09: import org.objectweb.speedo.generation.AbstractEnhancer;
10: import org.objectweb.speedo.generation.ejb.EJBEnhancer;
11:
12: public class EJBEnhancerTask extends AbstractEnhancerTask {
13:
14: public AbstractEnhancer getEnhancer() {
15: return new EJBEnhancer();
16: }
17:
18: protected void initDefaultDescPath() {
19: persistdesc.setDir(src);
20: persistdesc.setIncludes("**/persistence.xml");
21: }
22:
23: protected void addDtdLocations(ArrayList al) {
24: DTDLocation dl = new DTDLocation();
25: dl
26: .setPublicId("-//Sun Microsystems, Inc.//DTD Entreprise Java Beans 3.0 - Persistence//EN");
27: dl.setLocation("ejb3-persistence.dtd");
28: al.add(dl);
29: }
30: }
|