At 01:48  1/4/01 +0530, Abhishek Srivastava wrote:
>Hello All,
>
>I have the following directory structure
>
>Root
> |
> |-A-- test1.class
> |
> |-B-- test2.class
> |
> |-C-- test3.class
>
>
>I want to create a jar file that contains "only" the files in the directory
>A. But not B and C or any other directory that may be present at the level
>of A and B.
>
>I tried the following command
>
><jar jarfile="module.jar" basedir="c:\test" includes="**/A" />
>
>But The JAR I get has both the directories A and B and C.
>
>Is there some way I can tell ant to include only A and ignore the rest of
>the directories ?

What you want is 
<jar jarfile="module.jar" basedir="c:\test" includes="A/**" />

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*

Reply via email to