KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > exolab > castor > ejb > CastorSubTask


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet.modules.exolab.castor.ejb;
6
7
8 import xdoclet.XmlSubTask;
9
10 /**
11  * Generates mapping.xml deployment descriptor.
12  *
13  * @author Dmitri Colebatch (dim@bigpond.net.au)
14  * @created October 7, 2001
15  * @ant.element display-name="Castor Mapping" name="castormapping" parent="xdoclet.modules.ejb.EjbDocletTask"
16  * @version $Revision: 1.7 $
17  * @xdoclet.merge-file file="key-generator.xml" relates-to="mapping.xml" description="An XML unparsed entity
18  * containing the key-generator element(s) for the mapping file."
19  */

20 public class CastorSubTask extends XmlSubTask
21 {
22     private final static String JavaDoc MAPPING_DD_PUBLICID = "-//EXOLAB/Castor Mapping DTD Version 1.0//EN";
23
24     private final static String JavaDoc MAPPING_DD_SYSTEMID = "http://castor.exolab.org/mapping.dtd";
25
26     private static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/mapping_xml.xdt";
27
28     private static String JavaDoc GENERATED_FILE_NAME = "mapping.xml";
29
30     /**
31      * Describe what the CastorSubTask constructor does
32      */

33     public CastorSubTask()
34     {
35         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
36         setDestinationFile(GENERATED_FILE_NAME);
37         setPublicId(MAPPING_DD_PUBLICID);
38         setSystemId(MAPPING_DD_SYSTEMID);
39     }
40 }
41
Popular Tags