Subversion Repositories DevTools

Rev

Rev 1817 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1817 Rev 4148
Line 2... Line 2...
2
 
2
 
3
	<macrodef name="ant-ejbdoclet">
3
	<macrodef name="ant-ejbdoclet">
4
 
4
 
5
		<attribute name="srcdir"/>
5
		<attribute name="srcdir"/>
6
		<attribute name="destdir"       default = "${basedir}/build/generate"/>
6
		<attribute name="destdir"       default = "${basedir}/build/generate"/>
7
		<attribute name="ejbspec"       default = "2.0"/>
7
		<attribute name="ejbspec"       default = "2.1"/>
8
		<attribute name="jboss.version" default = "3.0"/>
8
		<attribute name="jboss.version" default = "4.0"/>
9
		<attribute name="force"         default = "${xdoclet.force}"/>
9
		<attribute name="force"         default = "${xdoclet.force}"/>
10
		<attribute name="mergedir"      default = "${basedir}/xdoclet"/>
10
		<attribute name="mergedir"      default = "${basedir}/xdoclet"/>
11
 
11
 
12
		<element name="xdoclet-classpath" optional="no" implicit="no" description="Anything you can put in a fileset."/>
12
		<element name="xdoclet-classpath" optional="no" implicit="no" description="Anything you can put in a fileset."/>
13
 
13
 
14
		<sequential>
14
		<sequential>
15
 
15
 
16
			<taskdef name      = "ejbdoclet"
16
			<taskdef name      = "ejbdoclet"
17
			         classname = "xdoclet.modules.ejb.EjbDocletTask">
17
			         classname = "xdoclet.modules.ejb.EjbDocletTask">
18
				<classpath>
18
				<classpath>
19
					<path refid = "using.xdoclet.classpath"/>
19
					<path refid = "using.xdoclet.path"/>
20
					<xdoclet-classpath/>
20
					<xdoclet-classpath/>
21
				</classpath>
21
				</classpath>
22
	  		</taskdef>
22
	  		</taskdef>
23
 
23
 
24
			<ejbdoclet destdir      = "@{destdir}"
24
			<ejbdoclet destdir      = "@{destdir}"
Line 39... Line 39...
39
				        * entity primary key classes (for CMP)
39
				        * entity primary key classes (for CMP)
40
				  -->
40
				  -->
41
				<remoteinterface    pattern="{0}"
41
				<remoteinterface    pattern="{0}"
42
				                    destdir="@{destdir}/api"/>
42
				                    destdir="@{destdir}/api"/>
43
				<homeinterface      pattern="{0}Home"
43
				<homeinterface      pattern="{0}Home"
44
				                    destdir="@{destdir}/api"/>
44
				                    destdir="@{destdir}/api"
-
 
45
									templateFile="${using.ant-ejbdoclet.basedir}/home-custom.xdt"/>
45
				<valueobject        pattern="{0}Details"
46
				<valueobject        pattern="{0}Details"
46
				                    destdir="@{destdir}/api"
47
				                    destdir="@{destdir}/api"
47
				                    templateFile="${using.ant-ejbdoclet.basedir}/valueobject-custom.xdt"/>
48
				                    templateFile="${using.ant-ejbdoclet.basedir}/valueobject-custom.xdt"/>
48
				<entitypk           pattern="{0}Key"
49
				<entitypk           pattern="{0}Key"
49
				                    destdir="@{destdir}/api"/>
50
				                    destdir="@{destdir}/api"/>
Line 57... Line 58...
57
				        * The deployment descriptor (both standard and JBoss-specific)
58
				        * The deployment descriptor (both standard and JBoss-specific)
58
				  -->
59
				  -->
59
				<localinterface     pattern="Local{0}"
60
				<localinterface     pattern="Local{0}"
60
				                    destdir="@{destdir}/impl"/>
61
				                    destdir="@{destdir}/impl"/>
61
				<localhomeinterface pattern="Local{0}Home"
62
				<localhomeinterface pattern="Local{0}Home"
62
				                    destdir="@{destdir}/impl"/>
63
				                    destdir="@{destdir}/impl"
-
 
64
									templateFile="${using.ant-ejbdoclet.basedir}/local-home-custom.xdt"/>
63
				<utilobject         pattern="{0}Broker"
65
				<utilobject         pattern="{0}Broker"
64
				                    destdir="@{destdir}/impl"
66
				                    destdir="@{destdir}/impl"
65
				                    cacheHomes="true"
67
				                    cacheHomes="true"
66
				                    templateFile="${using.ant-ejbdoclet.basedir}/lookup-custom.xdt"/>
68
				                    templateFile="${using.ant-ejbdoclet.basedir}/lookup-custom.xdt"/>
67
				<entitycmp          destdir="@{destdir}/impl"/>
69
				<entitycmp          destdir="@{destdir}/impl"/>