Konstantin 

Using the most capable Nant function "file::up-to-date" should do the trick.
See the online help:
http://nant.sourceforge.net/nightly/help/functions/file.up-to-date.html

Hope this helps µ.
Yves



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin Gainty
Sent: mercredi 2 juin 2004 14:00
To: Konstantin Sokolovskiy; [EMAIL PROTECTED]
Subject: Re: [Nant-users] Nant and dependencied

Konstantin-


If you are capable to install 1.42 Java2 Platform Standard Edition at
http://java.sun.com/j2se/1.4.2/download.html
and install the more capable Ant build utility from
http://ant.apache.org/bindownload.cgi
you could use the OutOfDate task-
http://ant-contrib.sourceforge.net/tasks/outofdate.html
I used it at United Health Group for the eFACT J2EE Project with 100%
success
All the Best,

Martin Gainty
http://www.laconiadatasystems.com
(Boston MA USA) 001-617-852-7822
OOA\OODConsultant/Instructor/ChessNut

----- Original Message ----- 
From: "Konstantin Sokolovskiy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 5:42 AM
Subject: [Nant-users] Nant and dependencied


> Hello, all.
>
> I am a newbie in Nant so my question may be stupid.
> I try to create .build file for a simple C++ project. It looks like:
>
> <?xml version="1.0"?>
> <project name="HelloWorld" default="build">
>
> [...]
>
>     <target name="build" description="compiles the source code">
> <mkdir dir="${obj.dir}"/>
>
>         <cl outputdir="${obj.dir}" debug="${debug}">
>     <sources>
>                 <includes name="*.cpp"/>
>             </sources>
>         </cl>
>
> <mkdir dir="${build.dir}"/>
> <link output="${build.dir}\helloworld.exe">
> <sources>
>     <includes name="obj\*.obj" />
> </sources>
> </link>
>     </target>
>
> </project>
>
> This build file works fine.
> When I change any of the .cpp files, the project succsessfully recmpiles.
> But when I change any header (*.h) file, it doesn't recompile the project.
> Does Nant provide any ways to trace file dependencies in order to
recompile
> those file, which depend on the changed header files?
>
> Thanks.
>
> --
> Best regards,
> Konstantin Sokolovskiy
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the new InstallShield X.
> From Windows to Linux, servers to mobile, InstallShield X is the one
> installation-authoring solution that does it all. Learn more and
> evaluate today! http://www.installshield.com/Dev2Dev/0504
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users




-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to