Commits

Sam Adams committed 71b4f3b

Include metadata on deposit

  • Participants
  • Parent commits 3739e5a

Comments (0)

Files changed (2)

src/main/java/uk/ac/cam/ch/wwmm/quixote/client/gaussian/DepositGaussianCommand.java

             }
 
             final String filename = depositOptions.files.get(0);
-            final File cifFile = globalOptions.workingDirectory == null ? new File(filename) : new File(globalOptions.workingDirectory, filename);
-            importer.setLogFile(cifFile, FilenameUtils.getName(filename));
+            final File logFile = globalOptions.workingDirectory == null ? new File(filename) : new File(globalOptions.workingDirectory, filename);
+            importer.setLogFile(logFile, FilenameUtils.getName(filename));
 
             return DepositRequestMapper.map(importer.generateDepositRequest());
         } catch (Exception e) {

src/main/java/uk/ac/cam/ch/wwmm/quixote/client/nwchem/DepositNWChemCommand.java

             }
 
             final String filename = depositOptions.files.get(0);
-            final File cifFile = globalOptions.workingDirectory == null ? new File(filename) : new File(globalOptions.workingDirectory, filename);
-            importer.setLogFile(cifFile, FilenameUtils.getName(filename));
+            final File logFile = globalOptions.workingDirectory == null ? new File(filename) : new File(globalOptions.workingDirectory, filename);
+            importer.setLogFile(logFile, FilenameUtils.getName(filename));
 
             return DepositRequestMapper.map(importer.generateDepositRequest());
         } catch (Exception e) {