Sorry for novice posting. May be later you can redirect me to proper way
for such problems. Now I just do not understand ant's error message
D:\boris\lab\CanadianPersonal\build.xml:25: Could not create task of
type: ejbjar. Common solutions are to use taskdef to declare your task,
or, if this is an optional task, to put the optional.jar in the lib
directory of your ant installation (ANT_HOME).
for script
<project name="EJBTest" default="ejb" basedir=".">
<property name="src" value="src"/>
<property name="build" value="build"/>
<property name="descriptors" value="descriptors"/>
<property name="classes" value="classes"/>
<property name="defaultroot" value="webapp"/>
<property name="classpath"
value="d:/JBuilder5/jdk1.3/jre/lib/rt.jar;d:/JBuilder5/jdk1.3/jre/lib/tools.jar;D:/Jboss/lib/ext/jboss-j2ee.jar"/>
<property name="xdoclet.jar.path" value="D:\XDoclet\lib\xdoclet.jar"/>
<property name="ant.jar.path" value="D:\IDEA\lib\ant.jar"/>
<property name="log4j.jar.path" value="D:\Log4j\dist\lib\log4j.jar"/>
<property name="ejb20dtd"
value="D:/JBuilder5/extras/BorlandXML/example/j2ee/ejb-jar_2_0/ejb-jar_2_0.dtd"/>
<property name="jbossdeploy" value="D:/JBoss/deploy" />
<property name="defaultroot" value="webapp"/>
<target name="ejb" depends="compile">
<ejbjar srcdir="${classes}"
descriptordir="${descriptors}"
destdir="${build}"
flatdestdir="true"
genericjarsuffix=".jar"
classpath="${classes}">
<support dir="${classes}">
<include name="**/*.class"/>
</support>
<jboss destdir="${build}">
</jboss>
<include name="**/*-ejb-jar.xml"/>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN"
location="${ejb20dtd}"/>
</ejbjar>
<copy todir="${jbossdeploy}" >
<fileset dir="${build}" >
</fileset>
</copy>
</target>
<target name="war" >
<war warfile="${build}/canadianpersonal.war"
webxml="${descriptors}/web.xml">
<fileset dir="${defaultroot}">
</fileset>
<classes dir="${classes}" />
<webinf dir="${descriptors}">
<include name="struts.tld"/>
<include name="struts-bean.tld"/>
<include name="struts-config.xml"/>
<include name="struts-form.tld"/>
<include name="struts-html.tld"/>
<include name="struts-logic.tld"/>
<include name="struts-template.tld"/>
</webinf>
<lib dir="lib">
<include name="struts.jar"/>
</lib>
</war>
</target>
<target name="compile">
<javac destdir="${classes}"
classpath="${classpath}"
debug="on">
<src path="${src}"/>
<include name="**/*"/>
</javac>
</target>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>