Hi,

 

I would like to define the source directories to be used by the ejbdoclet task, at an external location (with a fileset, or a path). It could already make this work for the copy and the javac task, but the way it has been done there, doesn’t work for ejbdoclet.

 

The solution that works for javac:

 

 

      <path id="module-source-path">

            <pathelement location="moduleA/src/java"/>

            <pathelement location="moduleB/src/java"/>

            <pathelement location="moduleC/src/java"/>

      </path>

 

      <javac classpathref="base.path" debug="on" deprecation="off" destdir="${build.classes.dir}" optimize="on">

                  <src refid="module-source-path"/>

      </javac>

 

For copying files, I use a fileset with a mapper that selects the required files to be copied. However, both methods do not work for the ejbdoclet task; a mapper element is not allowed inside a ejbdoclet element, and a sourcepathref with an includes a filename pattern condition (**/*EJB.java) is not possible, e.g.:

<ejbdoclet…>

                  <fileset refid="module-fileset"/>

                  <mapper refid="module-ejb-mapper"/>

</ejbdoclet>

 

Any solution for using multiple source directories, defined in an external fileset or path with ejbdoclet?

Thanks in advance.

 

Kind regards,

Kees van Dieren
Senior Software Engineer

MP Objects Software for E-logistics
Stationsplein 45
3013 AK Rotterdam
The Netherlands

Post address:
Postbus 29126
3001 GC Rotterdam

Mobile: +31 (0)6-43068619
Phone: +31 (0)10-2900304
Fax: +31 (0)10-2900305

 

Reply via email to