From: <jbo...@li...> - 2005-08-16 21:42:33
|
Author: soh...@jb... Date: 2005-08-16 17:42:31 -0400 (Tue, 16 Aug 2005) New Revision: 873 Modified: trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java Log: fixed a bug that prevents a local copy of Blogs being created from SVN Modified: trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java =================================================================== --- trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java 2005-08-16 21:16:47 UTC (rev 872) +++ trunk/forge/portal-extensions/forge-common/src/java/org/jboss/forge/common/blog/BlogUpdater.java 2005-08-16 21:42:31 UTC (rev 873) @@ -111,6 +111,15 @@ if (!blogEntriesSet.contains(repoEntries[j])) { // New blog entry, creating. try { + + //make sure the path where this blogFile is being created + //exists before creating the file + if(blogFile.getParentFile()!=null && !blogFile.getParentFile().exists()) + { + //creates the complete path where this blogFile needs to be stored + blogFile.getParentFile().mkdirs(); + } + blogFile.createNewFile(); // Creating the meta file |