How to use the sub folder in <fileset>
--------------------------------------

         Key: XDT-1527
         URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1527
     Project: XDoclet
        Type: Task
  Components: XDoclet Module  
    Versions: 1.2.3    
 Environment: Eclipse with XDoclet1.2.3
 Reporter: Ramana Gudala
 Assigned to: xdoclet-devel (Use for new issues) 


All,
I am using the following portlets in the corresponding path. In build.xml, I am 
using the <fileset> for each portlet to generate portlet.xml file. If I add new 
portlet, I have to add new <fileset> in the build.xml file.

web\src\portlets\sample\java\com\myapp\web\portlet\sample

web\src\portlets\test\java\com\myapp\web\portlet\test

web\src\portlets\generic\java\com\myapp\web\portlet\generic


<target name="create-portlet-xml" depends="init">
        <portletdoclet destdir="${local.build_dir}/WEB-INF" force="true"
                verbose="true" excludedtags="@version,@author,@todo">
                <portletxml mergeDir="${basedir}/as-web/merge"/>
                <fileset dir="${basedir}/src/java">
                        <include name="**/*"/>
                </fileset>

                <fileset dir="${basedir}/src/portlets/sample/java">
                        <include name="**/*Portlet.java"/>
                </fileset>

                <fileset dir="${basedir}/src/portlets/test/java">
                        <include name="**/*Portlet.java"/>
                </fileset>

                <fileset dir="${basedir}/src/portlets/generic/java">
                        <include name="**/*Portlet.java"/>
                </fileset>
        </portletdoclet>
</target>

Is there any way to optimize this instead of modyfying the build.xml file wach 
time whenever I add new directory?

Please help. Thanks in Advance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to