To test the relationship of the inability to run SchemaExport to the size of 
the model I did the following: 



I put some of the 640 generated *.hbm.xml files in a temp directory outside the 
src directory where hibernate is expecting them. I found out that at about  392 
*.hbm.xml I can get over the Java error:



[java] [ERROR] java.io.IOException: CreateProcess:



Once I add one *.hbm.xml (regardless which one) I get the same Java 
CreatProcess error.



Here is my guess as to why I am having this problem:

 

I think it is the size of command line string buffer which gets large when you 
have large number of files to include on the SchemaExport task. I did verify 
that the:



<ant:java classname="net.sf.hibernate.tool.hbm2ddl.SchemaExport" fork="true">



Eventually will have a command line with the class path having all of the 
*.hbm.xml files included in the command line string. 



In other words this could be classified as an OS issue. The question is how to 
get around this limitation.



Couple ideas I would like to suggest and see if anyone can help:



- Is there a way to increase the command line string buffer size on Windows 
2KSp4



- Can someone modify the maven.xml goal such that it can process the *.hbm.xml 
files without have to add them on the command line.



Any ideas?



Regards



Safaa
--
Safaa Hashim
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3707#3707
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to