<fileset dir="${dir.src}" includes="**/resources/*"/>
The dir element specifies the base directory for the copy. If you want the package directories to be included, you need the base dirctory to be your source directory.
Narahari 'n' Savitha wrote:
Friends, I have this situation src |_com\test\narahari| |___Dao |____A.java |____B.java |____C.java |___resources |__x.properties |__y.properties When I compile the code, under the classes folder the java files get compiled and get placed in the right folder. classes |_com\test\narahari| |___Dao |____A.java |____B.java |____C.java I need to copy the resources folder from the src to the classes folder so I can jar it. But the following does not work. <copy todir="classes" verbose="true" includeEmptyDirs="true" overwrite="true"> <fileset dir="${dir.src}/com/adp/hr/resources/" /> </copy> I am not able to get the directory resources get copied over. But the x.properies and y.properties gets copied over to the classes and not the resources folder. Please inform how to copy directories. -Narahari
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]