-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to make *.hbm.xml be Embedded Resource in NANT?
PostPosted: Tue Jan 24, 2006 4:53 am 
Newbie

Joined: Tue Jan 24, 2006 4:47 am
Posts: 1
The doc says "If VisualStudio.NET or NAnt is used to build the Assembly then make sure that the hbm.xml files are added as Embedded Resources. ". How to make it in NANT? Thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 24, 2006 5:29 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
Something like this: (copied from Cuyahoga build file)

Code:
<csc target="library" output="${build.dir}/bin/Cuyahoga.Core.dll" debug="${build.debug}"
         doc="${build.dir}/bin/Cuyahoga.Core.xml">
   <sources>
      <include name="Core/**/*.cs" />
   </sources>
   <resources dynamicprefix="true" prefix="Cuyahoga">
      <include name="Core/Domain/*.hbm.xml" />
   </resources>
   <references>
      <include name="System.dll" />
...
   </references>
</csc>


You might have to tweak the prefixes a little to make sure that the resource names match the namespaces of the domain classes.

_________________
Cuyahoga


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.