Is there a way with NAnt to insert the entire contents
of one file into another file (non-xml)? What I'm
doing now is creating a header file and trailer file,
using echo to append on to the header file what I need
to insert, and then put the two together with concat.
Does anybody know of a more graceful way of doing
this? Here's the clunky code:
<!---------------------------------------------->
<project name="test" default="default" >
<!--Get all of the filenames of the files to
release-->
<target name="default" description="get the dll
filenames we will be releasing">
<delete file="myFile.nsi" />
<touch file="myFile.nsi" />
<foreach item="String"
in="Folder1,Folder2,Folder3"
delim="," property="folderName">
<foreach item="File" property="filename">
<in>
<items>
<includes
name="D:\CheckFileTest\${folderName}\*.dll" />
</items>
</in>
<do>
<property name="tempFileName"
value="${path::get-file-name(filename)}"/>
<echo append="true" file="myFile.nsi"
message="!insertmacro InstallLib REGDLL
$ALREADY_INSTALLED NOREBOOT_NOTPROTECTED ${filename}
$INSTDIR\${tempFileName} %TEMP%" />
</do>
</foreach>
</foreach>
<echo append="true" file="myFile.nsi" message=""
/>
<echo append="true" file="myFile.nsi"
message="SectionEnd" />
<copy file="test.nsi" tofile="test2.nsi" />
<concat destfile="test2.nsi" append="true">
<fileset>
<includes name="myFile.nsi" />
</fileset>
</concat>
</target>
</project>
<!---------------------------------------------->
Thanks,
Eric
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users