Gert Driesen wrote:
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Julien Sobrier
Sent: woensdag 16 november 2005 17:57
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] <resources>
Hello,
I'd like to include files as resources in my assembly. I'm using NAnt
0.85RC3 with Mono 1.1.10
For example:
<csc target="library" output="${dir}/Database.dll">
<sources>
<include name="AssemblyInfo.cs" />
<include name="Libraries/Database/*.cs" />
</sources>
<resources failonempty="true" basedir="." id="sample">
<include name="../tools/MediaDB/MediaInfoDB.sql" />
</resources>
</csc>
But I cannot use the id in <resources>: I got an error message saying
that id is only available at the project or target level. How can I
assign an ID to the file I want to include?
Problem is that this is not possible right now. NAnt uses a predefined way
to automatically calculate the resource idenfiers based on the relative
path, the prefix attribute (if dynamicprefix is set to "true").
If however - that is the only file you want to include and you just want
to prepend a prefix rather than setting the whole identifier use :
<resources failonempty="true" basedir="." prefix="sample">
<include name="../tools/MediaDB/MediaInfoDB.sql" />
</resources>
then the resource will be embedded as sample.MediaInfoDB.sql
Ian
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users