DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14363>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14363 filterset can not be refereced by refid in a sub-project Summary: filterset can not be refereced by refid in a sub-project Product: Ant Version: 1.5.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If I define a filterset and assign it an id in my main build file, I can not access it from my subprojects (even with the inheritRefs argument set to "true". Other references (path, etc) are visible to my subproject. I am creating a filterset in my main project that looks like this: <filterset id="myFilterset"> <filter token="ATTACHMENT_UPLOAD_DIR" value="${attachment.upload.dir}"/> <filter token="ATTACHMENT_DOWNLOAD_DIR" value="${attachment.download.dir}"/> </filterset> If I reference the filterset by refid inside of this ant and it works fine. I then call a task in a subproject using: <target name="mySubproject" > <ant antfile="${subproject.dir}/subproject.xml" inheritAll="true" inheritRefs="true" target="mySubprojectTask"/> </target> This subproject contains the code: <copy todir="${copy.to.dir}"> <fileset dir="${copy.from.dir}"> <include name="**/*.xml" /> </fileset> <filterset refid="myFilterset"/> </copy> The ant build process errors out and displays a message saying that the myFilterset reference has not been defined. If I cut and paste the filterset definition as-is into the subproject, the build process works fine, so I have verified that its not an error in the definition, or the subproject target. This same subproject target uses various paths set up in the main project, so I have verified that other items (paths) are visible when the ant subproject task is called. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
