Hey, everyone,

I am using the solution task to compile an application that uses both resource files and licensed components from a third party. It appears that the <resgen/> and <license/> tasks are being executed appropriately by the <solution/> task, but that the output can not be captured as it is written to a temp directory which is immediately deleted.

Why does the output folder disappear so quickly? Why does it compile somewhere if it won't be included? How can I capture or redirect my output?

TIA,
  Chris Hatton

Here's my .build file:
----------------------------------------------------------------------------------------

<?xml version="1.0" ?>

<!-- Build script for building Performance Scheduler -->
<project basedir="." default="compile" name="EventScheduler"
        xmlns="http://nant.sourceforge.net/schema/nant-0.84.xsd";>

  <!--
   - Set this global property to ensure that .NET 1.1 is used in the build.
   - This is necessary because the current default when NAnt is installed
   - is .NET 1.0.
   -->
  <property name="nant.settings.currentframework" value="net-1.1"/>

        <!--
        ===========================================================================
        Initialization
        ===========================================================================
        -->
        <target name="scheduler.init">

     <tstamp />

<!--
Only set the following if not already defined by another (most likely
Master.build) build script.
-->
<ifnot propertyexists="scheduler.root.dir">
<property name="scheduler.root.dir" value="../PerformanceScheduler"/>
</ifnot>
<ifnot propertyexists="scheduler.configuration">
<property name="scheduler.configuration" value="Debug"/>
</ifnot>
<ifnot propertyexists="scheduler.out.dir">
<property name="scheduler.out.dir" value="${scheduler.root.dir}/_out"/>
</ifnot>


<echo message="Using Scheduler root directory ${scheduler.root.dir}."/>
<mkdir dir="${scheduler.root.dir}"/>
<mkdir dir="${scheduler.out.dir}"/>



</target>


<!-- =========================================================================== Compilation =========================================================================== --> <target name="compile" depends="scheduler.init"> <solution configuration="${scheduler.configuration}" solutionfile="${scheduler.root.dir}/Solution/EventScheduler.sln" outputdir="${scheduler.out.dir}" verbose="true"> </solution> </target>

</project>



And the relevant output...
----------------------------------------------------------------------------
[solution] - c:\performancescheduler\solution\UIControls\SeatPriceLayoutControl.resx
[resgen] Starting 'C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin\resgen.exe ("c:\performancescheduler\solution\UIControls\SeatPriceLayoutControl.resx" "C:\DOCUME~1\chatton\LOCALS~1\Temp\xvxwutlu\Clarity.Scheduler.UI.Controls.SeatPriceLayoutControl.resources")' in 'c:\build'
Read in 22 resources from 'c:\performancescheduler\solution\UIControls\SeatPriceLayoutControl.resx'
Writing resource file... Done.
[solution] - c:\performancescheduler\solution\UIControls\licenses.licx
[license] Compiling license file c:\performancescheduler\solution\UIControls\licenses.licx to C:\DOCUME~1\chatton\LOCALS~1\Temp\xvxwutlu\Clarity.Scheduler.UI.Controls.dll.licenses using target Clarity.Scheduler.UI.Controls.dll.
[license] Loading assemblies ...
[license] c:\PerformanceScheduler\_out\Clarity.Common.dll (loaded)
[license] c:\PerformanceScheduler\_out\Clarity.Common.UI.dll (loaded)
[license] c:\PerformanceScheduler\_out\Clarity.Scheduler.Controller.dll (loaded)
[license] c:\PerformanceScheduler\_out\Clarity.Scheduler.Validation.dll (loaded)
[license] c:\PerformanceScheduler\_out\Clarity.Scheduler.VO.dll (loaded)
[license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll (skipped)
[license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll (skipped)
[license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll (skipped)
[license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Services.dll (skipped)
[license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Windows.Forms.dll (skipped)
[license] C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll (skipped)
[license] c:\performancescheduler\solution\lib\Janus.Windows.Common.v2.DLL (loaded)
[license] c:\performancescheduler\solution\lib\Janus.Windows.TimeLine.v2.dll (loaded)
[license] Creating licenses ...
[license] Janus.Windows.TimeLine.TimeLine, Janus.Windows.TimeLine.v2, Version=2.0.1000.0, Culture=neutral, PublicKeyToken=21d5517571b185bf:
[license] file:///c:/performancescheduler/solution/lib/Janus.Windows.TimeLine.v2.dll
[license] Created new license file C:\DOCUME~1\chatton\LOCALS~1\Temp\xvxwutlu\Clarity.Scheduler.UI.Controls.dll.licenses.





------------------------------------------------------- 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