I have files in a directory structure like this: Bin Project subProj1 subproj1.xsd Subdir2 Subproj2.xsd
I want to copy the xsd files into a "bin" directory. But if I do this: <target name="copy-xsd" description="copy some files to bin"> <copy todir="Bin"> <fileset basedir="Project"> <includes name="**/*.txt"/> </fileset> </copy> </target> I end up with the following structure: Bin subProj1 subproj1.xsd Subdir2 Subproj2.xsd Project subProj1 subproj1.xsd Subdir2 Subproj2.xsd But actually just wanted this to happen: Bin subproj1.xsd Subproj2.xsd Project subProj1 subproj1.xsd Subdir2 Subproj2.xsd Anyone know how to do this? Thanks in advance Bruce -----Original Message----- From: Becky O'Grady [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 2:01 PM To: [EMAIL PROTECTED] Subject: [Nant-users] problems building nantcontrib Hi- I'm using nant, and would like to use it to get files out of visual source safe. My understanding is that I need to use nantcontrib to do this. After fighting with it for a day, I simply can't seem to build it. This is the error I'm getting: Buildfile: file:///C:/Documents and Settings/bogrady/Desktop/nant/nantcontrib-20 030517-debug/NAntContrib.build init: debug: UpdateNAntReleaseFiles: [echo] Using nant files from NAntRelease prepare: prepare.slingshot: Buildfile: file:///C:/Documents and Settings/bogrady/Desktop/nant/na ntcontrib-20030517-debug/Tools/SLiNgshoT/SLiNgshoT.build SLiNgshoT.Core.Release: setup: SLiNgshoT.Core: SLiNgshoT.Release: SLiNgshoT: Release: Total time: 0 seconds. BUILD SUCCEEDED compile.schematask: compile.schemas: [loadtasks] Loading tasks from assembly C:\Documents and Settings\bogrady\Deskto p\nant\nantcontrib-20030517-debug/build/nantcontrib-0.1.0.0-debug\NAnt.X sd.Tasks .dll. [if] Failed to created task for 'xsd' xml element for reason: C:\Documents and Settings\bogrady\Desktop\nant\nantcontrib-20030517-debug\NAntC ontrib.build(120,5): Unknown task <xsd>.: NAnt.Core.BuildException: C:\Documents and Settings\bogrady\Desktop\nant\nantcon trib-20030517-debug\NAntContrib.build(120,5): Unknown task <xsd>. at NAnt.Core.TaskFactory.CreateTask(XmlNode taskNode, Project proj) at NAnt.Core.TaskContainer.CreateChildTask(XmlNode node) [if] Failed to created task for 'xsd' xml element for reason: C:\Documents and Settings\bogrady\Desktop\nant\nantcontrib-20030517-debug\NAntC ontrib.build(131,5): Unknown task <xsd>.: NAnt.Core.BuildException: C:\Documents and Settings\bogrady\Desktop\nant\nantcon trib-20030517-debug\NAntContrib.build(131,5): Unknown task <xsd>. at NAnt.Core.TaskFactory.CreateTask(XmlNode taskNode, Project proj) at NAnt.Core.TaskContainer.CreateChildTask(XmlNode node) [csc] Compiling 0 files to C:\Documents and Settings\bogrady\Desktop\nant\ nantcontrib-20030517-debug\build\nantcontrib-0.1.0.0-debug\NAnt.Contrib. Schemas. dll. fatal error CS2008: No inputs specified Total time: 0 seconds. BUILD FAILED C:\Documents and Settings\bogrady\Desktop\nant\nantcontrib-20030517-debug\NAntCo ntrib.build(136,4): External Program Failed: C:\WINNT\Microsoft.NET\Framework\v1.0.3705\csc.exe (re turn code was 1) C:\Documents and Settings\bogrady\Desktop\nant\nantcontrib-20030517-debug> Apparently the nantcontrib.build file is using a task called <xsd> which is not recognized by nant. I think I am using the latest version of nant, I'm using the daily build from May 27, 2003. Does anyone know what I'm doing wrong? Thanks, Becky _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users This message was scanned for viruses. ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users