Re: copy task with excludes
On Thu, 6 Dec 2001, Anthony Rodriguez [EMAIL PROTECTED] wrote: I am trying to copy from c:\ant_Build\StageTrustlib\ to the java dir in the cabinet. I'm a little puzzled by the nomenclature, cabinet doesn't mean anything to me, sorry. I'll simply treat it as a directory, OK? There are some class files and two dirs, com and test, under StageTrustlib. I want to copy everything under StageTrustlib excpet that test dir. OK, that would be c:\ant_Build\StageTrustlib\ test\ A.class B.something com\ C.class D.whatever E.class and you have an empty cabinet, say C:\cabinet and you want C:\cabinet\java\ com\ C.class D.whatever E.class correct so far? Not using any properties: mkdir dir=C:\cabinet\java\ / copy todir=C:\cabinet\java\ fileset dir=c:\ant_Build\StageTrustlib\ exclude name=test/** / /fileset /copy should work. If it doesn't, what is wrong? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: copy task with excludes
On Wed, 5 Dec 2001, Anthony Rodriguez [EMAIL PROTECTED] wrote: Here is some of my build.xml file: !-- Copying java to cabinet -- copy todir=${noc}\${label}\java fileset dir=${stage.trustlib} excludes=test/**/ /copy copy todir=${noc}\${label}\daemons\code fileset dir=${stage.trustlib} excludes=test/**/ /copy !-- Copying asp to cabinet -- copy todir=${noc}\${label}\asp\Site fileset dir=${viewpath}\Site excludes=**/mock_up/*,**/lost+found/*/ /copy The cabinet refered to here is just a folder. However, after running my build.xml, I found that the test, lost+found, and mock_up dirs still existed in the cabinet. Where? Are you saying, that there are files in ${noc}\${label}\java\test after the first copy task? If so, could it be a case-sensitivity issue (maybe the directory's name is Test or something)? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: copy task with excludes
No it's not a case-sensitive issue. I am trying to copy from c:\ant_Build\StageTrustlib\ to the java dir in the cabinet. There are some class files and two dirs, com and test, under StageTrustlib. I want to copy everything under StageTrustlib excpet that test dir. As for the other copy tasks, they aren't working either. I'm still seeing lost+found dirs in the cabinet. Am I using the wrong syntax? Is there a better way to do this? -Anthony -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 12:32 AM To: [EMAIL PROTECTED] Subject: Re: copy task with excludes On Wed, 5 Dec 2001, Anthony Rodriguez [EMAIL PROTECTED] wrote: Here is some of my build.xml file: !-- Copying java to cabinet -- copy todir=${noc}\${label}\java fileset dir=${stage.trustlib} excludes=test/**/ /copy copy todir=${noc}\${label}\daemons\code fileset dir=${stage.trustlib} excludes=test/**/ /copy !-- Copying asp to cabinet -- copy todir=${noc}\${label}\asp\Site fileset dir=${viewpath}\Site excludes=**/mock_up/*,**/lost+found/*/ /copy The cabinet refered to here is just a folder. However, after running my build.xml, I found that the test, lost+found, and mock_up dirs still existed in the cabinet. Where? Are you saying, that there are files in ${noc}\${label}\java\test after the first copy task? If so, could it be a case-sensitivity issue (maybe the directory's name is Test or something)? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
copy task with excludes
Here is some of my build.xml file: !-- Copying java to cabinet -- copy todir=${noc}\${label}\java fileset dir=${stage.trustlib} excludes=test/**/ /copy copy todir=${noc}\${label}\daemons\code fileset dir=${stage.trustlib} excludes=test/**/ /copy !-- Copying asp to cabinet -- copy todir=${noc}\${label}\asp\Site fileset dir=${viewpath}\Site excludes=**/mock_up/*,**/lost+found/*/ /copy The cabinet refered to here is just a folder. However, after running my build.xml, I found that the test, lost+found, and mock_up dirs still existed in the cabinet. What I want to do is copy everything from ${stage.trustlib} excluding the ${stage.trustlib}/test/ dir AND copy everything from ${viewpath}/Site excluding any lost+found and mock_up dirs. Anyone know how to accomplish this? -Anthony