Compare commits

..

3 Commits
1.4.4 ... 1.4.7

Author SHA1 Message Date
eyedeekay
ecfc447125 speedup run by validating only once 2024-03-07 22:37:47 -05:00
eyedeekay
238f3fd839 unzip un changes generation phase 2024-03-07 22:18:13 -05:00
eyedeekay
c01312a1a5 unzip un changes generation phase 2024-03-07 22:17:07 -05:00
2 changed files with 5 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ jobs:
workflow: ant.yml
if_no_artifact_found: fail
# remove .zip file extension
- run: for f in *.zip; do unzip "${f%.zip}"; done
- run: for f in *.zip; do unzip "$f"; rm "$f"; done
- run: echo "" | tee -a CHANGES.md
- run: echo "## Checksums" | tee -a CHANGES.md
- run: echo "" | tee -a CHANGES.md

View File

@@ -36,6 +36,7 @@ public class I2PCommonBrowser {
private Properties prop = new Properties();
public Logger logger = Logger.getLogger("browserlauncher");
private FileHandler fh;
private boolean validated = false;
int CONFIGURED_TIMEOUT = 200;
public I2PCommonBrowser() {
@@ -75,6 +76,8 @@ public class I2PCommonBrowser {
* @return None No return value.
*/
public void validateUserDirectory() {
if (validated)
return;
logger.info("Validating user directory");
String userDir = System.getProperty("user.dir");
String userHome = System.getProperty("user.home");
@@ -123,6 +126,7 @@ public class I2PCommonBrowser {
logger.info(defaultPathFile.getAbsolutePath());
}
System.setProperty("user.dir", defaultPathFile.getAbsolutePath());
validated = true;
}
/**