I like the idea. We'll need to test for a val;id value for install.dir but it should work just like a 'make install' does for linux projects.


Ian
Giuseppe Greco wrote:

Hi all,
Hi Ian,

some time ago we discussed about an install task
in NAnt.build... so the question is: do we add it?

I'll propose something like this:

<target
  name="install"
  depends="build"
  description="Installs the current configuration">
  <copy
    todir="${install.dir}/bin"
    overwrite="true">
    <fileset basedir="${build.dir}/${package.name}/bin">
      <includes name="**"/>
    </fileset>
  </copy>
</target>

<target
 name="uninstall"
 depends="init"
 description="Uninstalls the current configuration">
 <delete failonerror="false">
   <fileset basedir="${install.dir}/bin">
     <includes name="NAnt.exe"/>
     <includes name="NAnt.exe.congig"/>
     ...
   </fileset>
 </delete>
</target>

What's your opinion?

Gius_.





--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com





------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to