-
1. Re: How to exclude directory in 2.0Beta3 project archives?
jiyanghu Sep 21, 2007 11:02 AM (in response to jiyanghu)sorry not adding "code" so can't find them in my last post
1. Original snippet<folder name="hbm"> <fileset dir="/fqportal/src" includes="**/*.hbm.xml" inWorkspace="true"> <properties></properties> </fileset> <properties></properties> </folder>
2. Added exclude element,<folder name="hbm"> <fileset dir="/fqportal/src" includes="**/*.hbm.xml" excludes="**/com" inWorkspace="true"> <properties></properties> </fileset> <properties></properties> </folder>
-
2. Re: How to exclude directory in 2.0Beta3 project archives?
maxandersen Sep 21, 2007 8:04 PM (in response to jiyanghu)1) looks like a bug - put it in jira
2) if you want your hbm.xml to be in one dir why don't you just have that in your source too ? -
3. Re: How to exclude directory in 2.0Beta3 project archives?
jiyanghu Sep 24, 2007 11:21 AM (in response to jiyanghu)1. Entered in JIRA, http://jira.jboss.com/jira/browse/JBIDE-943
2. hbm files do exist with source code, but due to mapping purpose, I have to move them in the same folder in deploying so Spring can locate them. See below for my hbm configuration.<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="mappingDirectoryLocations"> <list><value>/WEB-INF/hbm</value></list> </property> </bean>
Is there any way letting hbm files in its orignial source folder? -
4. Re: How to exclude directory in 2.0Beta3 project archives?
maxandersen Sep 24, 2007 11:47 AM (in response to jiyanghu)I don't know spring enough to know how it scans.
but you can always just list the needed mappings explicitly. -
5. Re: How to exclude directory in 2.0Beta3 project archives?
jiyanghu Sep 24, 2007 11:54 AM (in response to jiyanghu)I have over hundreds hbm files so it would be tedious putting explicit location for them one by one:-)
-
6. Re: How to exclude directory in 2.0Beta3 project archives?
maxandersen Sep 25, 2007 1:28 AM (in response to jiyanghu)so you are looking for a "copy but do not preserve directory structure" option ? not sure if that is viable.
Any reason why you don't put this in a hbm/ directory somewhere instead of spreading them around when you don't seem to use that spread anyway. -
7. Re: How to exclude directory in 2.0Beta3 project archives?
jiyanghu Sep 25, 2007 1:30 PM (in response to jiyanghu)That is a different story. All hbm files are generated by Hibernate Tools with corresponding POJOs. So they are spread around POJO code rather than in a fixed hbm folder. It is easy for developer to locate POJO-HBM pair.