having #s in a path to a buildfile (or perhaps <include> sets) seem to break
nant.

Consider this exchange I had:
=====================================================
D:\projects\CS#\Orbital>nant
Buildfile: file:///D:/projects/CS#/Orbital/Orbital.build

build:

debug:

BUILD FAILED
D:\projects\CS(21,14): Error creating file set.
Could not find a part of the path "D:\projects\src".
Try 'nant -help' for more information

D:\projects\CS#\Orbital>

=====================================================
rename the thing, and...

=====================================================
D:\projects\CSharp\Orbital>nant
Buildfile: file:///D:/projects/CSharp/Orbital/Orbital.build

build:

debug:
    [mkdir] Creating directory D:\projects\CSharp\Orbital\Debug
      [csc] Compiling 3 files to
D:\projects\CSharp\Orbital\Debug\Cyclooctane.Orbital.dll

release:
    [mkdir] Creating directory D:\projects\CSharp\Orbital\Release
      [csc] Compiling 3 files to
D:\projects\CSharp\Orbital\Release\Cyclooctane.Orbital.dll

BUILD SUCCEEDED

Total time: 1 seconds

D:\projects\CSharp\Orbital>
=====================================================


Here are the contents of D:\projects\CSharp\Orbital\Orbital.build:
(note that the <sources> elements in both the debug and release builds
aren't the same)
(no, it doesn't work for the release build, either, and screws up in the
same way when tested individually (take my word for it))
=====================================================
<?xml version="1.0"?>
<project name="Cyclooctane Orbital" default='build'>
    <description>A collection of useful utilities.</description>
        <property name="name" value='Cyclooctane.Orbital'/>

        <!--Notes on the file structure:
                src/            contains source files
                Debug/          contains all debug   build output
                Release/        contains all release build output
                Docs/           contains all documentation output
        -->
        <target name='build'>
                <call target='debug'/>
                <call target='release'/>
        </target>

        <!--Main targets.-->
    <target name='debug' description='Compiles a debug build.'>
                <mkdir dir='Debug'/>
        <csc target='library' output='Debug/${name}.dll' debug='true'>
            <sources basedir='src'><includes name='*.cs'/></sources>
        </csc>
    </target>

    <target name='release' description='Compiles a release build.'>
                <mkdir dir='Release'/>
        <csc target='library' output='Release/${name}.dll' debug='false'>
            <sources><includes name='src/*.cs'/></sources>
        </csc>
    </target>

        <target name='doc' description='Generates documentation'>
                <mkdir dir='Docs'/>
                <csc target='library' output='Docs/${name}.dll' doc='${name}.xml'>
                        <sources><includes name='src/**.cs'/></sources>
                </csc>
        </target>

        <!--Helper targets.-->
    <target name='clean' description='remove all generated files'>
                <delete dir='Debug'             failonerror='false'/>
                <delete dir='Release'   failonerror='false'/>
                <delete dir='Docs'              failonerror='false'/>
    </target>

</project>
=====================================================


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to