I erroneously thought that the #s bug was gone. Unfortunately, I was wrong.
Here's two buildfiles that exhibit different behavior:

(for the uninitiated, these buildfiles work if they're in D:\projects\CSharp
and fail if they're in D:\projects\C#.)

===========WORKS in the presence of a #===================

<?xml version="1.0"?>
<project name="Orbital.Irc" default='build' basedir='.'>
    <description>Orbital is an IRC library for the .NET
Framework.</description>
        <property name="name" value='Cyclooctane.Orbital.Irc'/>

        <!--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='exe' output='Debug/${name}.exe' debug='true'>
            <sources><includes name='src/*.cs'/></sources>
        </csc>
    </target>

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

        <target name='doc' description='Generates documentation'>
                <mkdir dir='Docs'/>
                <csc target='exe' output='Docs/${name}.exe' doc='Docs/${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>

========================================================

builds fine.

=======BREAKS in the presence of #s=====================
<?xml version="1.0"?>
<project name="Cyclooctane Orbital Forms" default='build'>
    <description>A collection of useful Windows Forms
utilities.</description>
        <property name="name" value='Cyclooctane.Orbital.Forms'/>

        <!--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='Docs/${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>


========================================================
gives:
D:\projects\C#\Orbital.Forms>nant
Buildfile: file:///D:/projects/C#/Orbital.Forms/Orbital.Forms.build

build:

debug:

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



-----Original Message-----
From: Gerry Shaw [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 01, 2002 6:58 AM
To: 'Nathan Sharfi'
Subject: RE: [nant-dev] #s break nant


Nathan can you confirm the status of this bug?  If it is still present
could submit a bug report with a buildfile that duplicates the error.

Thanks!

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On
> Behalf Of Nathan Sharfi
> Sent: Sat, May 25, 2002 9:10 PM
> To: NAnt Developers
> Subject: [nant-dev] #s break nant
>
>
> 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
>


_______________________________________________________________

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