ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Mitchell <geoff_mitch...@homedecorators.com>
Subject Re: *****spam***** copy directory problem help please
Date Mon, 20 Nov 2006 16:50:30 GMT
<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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message