Skip to content

Commit

Permalink
Working on issue #264 fixes on autoupdater for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jgambarios committed May 3, 2012
1 parent 8fd9f38 commit a3a7368
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Binary file modified bin/autoupdater/autoUpdater.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions build.xml
Expand Up @@ -401,7 +401,7 @@
<!--dotserver code (./dotserver)-->
<copy todir="${distribution.dotserver.output}">
<fileset dir=".">
<exclude name="**/.svn" />
<exclude name="**/.git" />
<exclude name="tomcat/logs/**" />
<exclude name="dotCMS/WEB-INF/dotlucene/**" />
<exclude name="dotCMS/assets/**" />
Expand Down Expand Up @@ -440,7 +440,7 @@
<!--dotserver code (./dotserver)-->
<copy todir="${distribution.dotserver.output}">
<fileset dir=".">
<exclude name="**/.svn" />
<exclude name="**/.git" />
<exclude name="tomcat/logs/**" />
<exclude name="dotCMS/WEB-INF/dotlucene/**" />
<exclude name="dotCMS/assets/**" />
Expand Down
15 changes: 15 additions & 0 deletions src/com/dotcms/autoupdater/UpdateUtil.java
Expand Up @@ -107,6 +107,21 @@ public static boolean unzipDirectory ( File zipFile, String directoryName, Strin
dest.close();
}

}
} else {

//This code is to be certain that empty files are going to be create them as well....
if ( directoryName == null || entry.getName().contains( directoryName ) ) {

String entryName = entry.getName().replace( UpdateAgent.FOLDER_HOME_DOTSERVER + '/', "" );
File destFile = new File( home + File.separator + entryName );

if (!destFile.exists()) {

destFile.mkdirs();
UpdateAgent.logger.debug( destFile.getAbsoluteFile() );
}

}
}
}
Expand Down

0 comments on commit a3a7368

Please sign in to comment.