From: <max...@us...> - 2006-02-07 20:22:59
|
Update of /cvsroot/hibernate/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24167/src/java/org/hibernate/tool/hbm2x Modified Files: ArtifactCollector.java Log Message: make seam report code generation to the artifact collector Index: ArtifactCollector.java =================================================================== RCS file: /cvsroot/hibernate/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/ArtifactCollector.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ArtifactCollector.java 7 Feb 2006 14:02:15 -0000 1.2 +++ ArtifactCollector.java 7 Feb 2006 20:22:46 -0000 1.3 @@ -18,7 +18,7 @@ */ public class ArtifactCollector { - Map files = new HashMap(); + final protected Map files = new HashMap(); /** * Called to inform that a file has been created by the exporter. @@ -37,6 +37,16 @@ return (existing==null) ? 0 : existing.size(); } + + public File[] getFiles(String type) { + List existing = (List) files.get(type); + + if(existing==null) { + return new File[0]; + } else { + return (File[]) existing.toArray(new File[existing.size()]); + } + } public Set getFileTypes() { return files.keySet(); |