directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1720952 - /directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersUtils.java
Date Sat, 19 Dec 2015 17:31:46 GMT
Author: seelmann
Date: Sat Dec 19 17:31:46 2015
New Revision: 1720952

URL: http://svn.apache.org/viewvc?rev=1720952&view=rev
Log:
Need to copy library files when updated

Modified:
    directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersUtils.java

Modified: directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersUtils.java?rev=1720952&r1=1720951&r2=1720952&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersUtils.java
(original)
+++ directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersUtils.java
Sat Dec 19 17:31:46 2015
@@ -392,7 +392,8 @@ public class LdapServersUtils
         for ( String library : libraries )
         {
             File destinationLibraryFile = destinationLibrariesPath.append( library ).toFile();
-            if ( !destinationLibraryFile.exists() )
+            boolean newerFileExists = (bundle.getLastModified() > destinationLibraryFile.lastModified());
+            if ( !destinationLibraryFile.exists() || newerFileExists )
             {
                 try
                 {



Mime
View raw message