You can't have a fileset nested in the references element (I understand that
the task docs are somewhat misleading sometimes), and you probably shouldn't
use the frompath="true" on the <includes> element in <sources> and
<resources> (unless you want to locate sources or resources on the PATH).

You should try something like this :

<vbc optioncompare="text" optionexplicit="true" optionstrict="true"
removeintchecks="true" rootnamespace="${basename}"
output="${build.fullpath}\${basename}.dll" target="library"
debug="${debug}">
    <references basedir="${build.fullpath}">
        <includes asis="true" name="System.dll" />
        <includes asis="true" name="System.Collections.dll" />
        <includes asis="true" name="System.Configuration.dll" />
        <includes asis="true" name="System.Data.dll" />
        <includes asis="true" name="System.Drawing.dll" />
        <includes asis="true" name="System.Web.dll" />
        <includes asis="true" name="System.XML.dll" />
        <includes name="*.dll" />
    </references>
    <sources basedir="${build.rootpath}" failonempty="true">
        <includes name="**/*.vb" />
    </sources>
    <resources basedir="${build.rootpath}" failonempty="true"
dynamicprefix="true" prefix="${basename}">
        <includes name="**/*.resx" />
    </resources>
</vbc>

Hope this helps,

Gert
----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 16, 2004 3:30 PM
Subject: [Nant-users] requesting help with a build error


> Hello,
>
> I am having trouble getting my build to run.  I get an error that
indicates no files are found.  I believe the errant line is the <sources>
tag, but each of the suspect areas (<sources>, <references>, and
<resources>) has correct files types available.  Can anyone point out where
I am going wrong?
>
> I am using NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release;
12/26/2003).
>
> THX
>
> Curt Zarger
>
> === BUILD FILE
> <?xml version="1.0"?>
> <project name="WebApplication.build" default="build">
>     <property name="basename" value="${basename}" />
>     <property name="debug" value="true" />
>     <property name="build.dir" value="bin" />
>     <property name="build.rootpath" value="${build.rootpath}\" />
>     <property name="build.fullpath"
value="${build.rootpath}\${build.dir}\" />
>     <property name="framework.path"
value="C:\WINNT\Microsoft.NET\Framework\v1.1.4322\" />
>
>     <target name="build">
>         <mkdir dir="${build.fullpath}" />
>         <vbc optioncompare="text" optionexplicit="true"
optionstrict="true" removeintchecks="true" rootnamespace="${basename}"
output="${build.fullpath}\${basename}.dll" target="library"
debug="${debug}">
>             <references failonempty="false">
>                         <fileset failonempty="false"
basedir="${framework.path}">
>                         <includes asis="true" name="System.dll" />
>                         <includes asis="true"
name="System.Collections.dll" />
>                         <includes asis="true"
name="System.Configuration.dll" />
>                         <includes asis="true" name="System.Data.dll" />
>                         <includes asis="true" name="System.Drawing.dll" />
>                         <includes asis="true" name="System.Web.dll" />
>                         <includes asis="true" name="System.Web.UI.dll" />
>                         <includes asis="true"
name="System.Web.UI.HtmlControls.dll" />
>                         <includes asis="true"
name="System.Web.UI.WebControls.dll" />
>                         <includes asis="true" name="System.XML.dll" />
>                         <includes name="*.dll" />
>                         </fileset>
>                         <fileset failonempty="false"
basedir="${build.fullpath}" frompath="true">
>                         <includes name="*.dll" />
>                         <includes asis="true" name="HEALTHeFORCES.pdb" />
>                         </fileset>
>             </references>
>             <sources basedir="${build.rootpath}" failonempty="true">
>                 <includes frompath="true" name="*.vb" />
>             </sources>
>             <resources basedir="${build.rootpath}" failonempty="true">
>                 <includes frompath="true" name="*.resx" />
>             </resources>
>         </vbc>
>     </target>
>
> </project>
>
> === BUILD ERROR
>
C:\>nant -f:c:\Hef\bin\Hef.build -D:build.rootpath=C:\work\dev226\HEALTHeFOR
CES -D:basename=HEALTHeFORCES build
> Buildfile: file:///c:/Hef/bin/Hef.build
> Base Directory: c:\Hef\bin.
> Target(s) specified: build
>
> build:
>
> BUILD FAILED
>
> The fileset specified is empty after scanning
'C:\work\dev226\HEALTHeFORCES' for: NAnt.Core.DirScannerStringCollection:
> :
> NAnt.Core.ValidationException: The fileset specified is empty after
scanning 'C:\work\dev226\HEALTHeFORCES' for: NAnt.Co
> re.DirScannerStringCollection:
>
>    at NAnt.Core.Types.FileSet.Scan()
>    at NAnt.Core.Types.FileSet.get_FileNames()
>    at NAnt.DotNet.Tasks.CompilerBase.NeedsCompiling()
>    at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask()
>    at NAnt.Core.Task.Execute()
>    at NAnt.Core.Target.Execute()
>    at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
>    at NAnt.Core.Project.Execute()
>    at NAnt.Core.Project.Run()
>
> Total time: 0.2 seconds.
>
>
> Curt Zarger
> ASM Research, Inc.
> 703-752-5185
> [EMAIL PROTECTED]
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to