Are you calling "nant ende" from the command line? The "build" task is the default and the others depend on it. This means they will call build before running, but build will not call them. You must specify those tasks explicity to get them to run.
HTH



Ivan PavloviÄ wrote:
When I execute following script everything works fine but any task after <csc> does not execute at all. Nant says âBuild Succesfulâ and gives no words about last two targers. Here is HelloWorld.build. I made bold lines that do not execute. Please help!



<?xml version="1.0" encoding="UTF-8" ?>

<project name="Hello World" default="build" basedir=".">

            <description>The Hello World of build files.</description>

<property name="nant.settings.defaultframework" value="net-1.1" />

            <property name="project.name" value="NAnt Test Drive" />

            <property name="project.version" value="1.0.0" />

            <property name="debug" value="false" />

            <property name="Build.Folder.Name" value="not set" />



            <target name="test">

            <echo message="Building ${project.name}-${project.version}"/>

            <echo message="Build.Folder.Name = ${Build.Folder.Name}"/>

<echo message="nant.settings.defaultframework = ${nant.settings.defaultframework}"/>

            </target>



<target name="clean" depends="test" description="remove all generated files">

                        <echo message="Deleting last build..." />

                        <delete>

<includes name="..\bin\*" />

                        </delete>

                        <echo message="Last build deleted..." />

            </target>



<target name="PrepareBuildFolder" depends="clean" description="Prepare folder for new build">

<tstamp property="Build.Folder.Name" pattern="yyyyMMdd-HHmmss" verbose="true" />

<mkdir dir="..\builds\${Build.Folder.Name}" verbose="true" />

            </target>



<target name="build" depends=" PrepareBuildFolder " description="compiles the source code">

<csc target="exe" output="../builds/${Build.Folder.Name}/HelloWorld.exe" debug="${debug}" verbose="true">

                                   <sources>

                                               <includes name="*.cs" />

                                   </sources>

                        </csc>

            </target>



* <target name="PublishLastBuild" depends="build" description="Copy last build to bin folder">*

* <echo message="Copying last build to 'last build' folder..."/>*

*                        <copy todir="../bin/">*

* <fileset basedir="../builds/${Build.Folder.Name}/">*

*                                               <includes name="**.*" />*

*                                   </fileset>*

*                        </copy>*

*                        <echo message="Last build has been published" />*

*            </target>*

*            *

*            <target name="ende" depends="PublishLastBuild">*

*                        <echo message="Build finished!" />*

*            </target>*



</project>



Ivan PavloviÄ <mailto:[EMAIL PROTECTED]>



Hive Studios d.o.o. <http://www.hive-studios.com/>

Hilandarska 32/4

11000 Belgrade

Serbia And Montenegro





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to