From 418b8e090e360524934ed19e975ddec9cbf8a31c Mon Sep 17 00:00:00 2001 From: Tung Lieu Date: Fri, 21 Apr 2023 12:42:00 +0700 Subject: [PATCH] update archetype simple database of ben wizard --- .../rapiddweller/benerator/gui/ProjectBuilder.java | 2 +- .../rapiddweller/benerator/archetype/archetypes.txt | 2 +- .../ARCHETYPE-INF/description.properties | 0 .../{db => simpledb_shopdb}/ARCHETYPE-INF/icon.gif | Bin .../archetype/{db => simpledb_shopdb}/benerator.xml | 2 +- .../archetype/{db => simpledb_shopdb}/pom.xml | 0 .../archetype/{db => simpledb_shopdb}/readme.txt | 0 .../src/main/resources/log4j2.xml | 0 8 files changed, 3 insertions(+), 3 deletions(-) rename src/main/resources/com/rapiddweller/benerator/archetype/{db => simpledb_shopdb}/ARCHETYPE-INF/description.properties (100%) rename src/main/resources/com/rapiddweller/benerator/archetype/{db => simpledb_shopdb}/ARCHETYPE-INF/icon.gif (100%) rename src/main/resources/com/rapiddweller/benerator/archetype/{db => simpledb_shopdb}/benerator.xml (95%) rename src/main/resources/com/rapiddweller/benerator/archetype/{db => simpledb_shopdb}/pom.xml (100%) rename src/main/resources/com/rapiddweller/benerator/archetype/{db => simpledb_shopdb}/readme.txt (100%) rename src/main/resources/com/rapiddweller/benerator/archetype/{db => simpledb_shopdb}/src/main/resources/log4j2.xml (100%) diff --git a/src/main/java/com/rapiddweller/benerator/gui/ProjectBuilder.java b/src/main/java/com/rapiddweller/benerator/gui/ProjectBuilder.java index 37fa2f1fc..c216cc9db 100644 --- a/src/main/java/com/rapiddweller/benerator/gui/ProjectBuilder.java +++ b/src/main/java/com/rapiddweller/benerator/gui/ProjectBuilder.java @@ -371,7 +371,7 @@ private void copyImportFiles() { } private void copyImportFile(File importFile) { - if (importFile == null) { + if (importFile == null || importFile.getName().isBlank()) { return; } if (importFile.exists()) { diff --git a/src/main/resources/com/rapiddweller/benerator/archetype/archetypes.txt b/src/main/resources/com/rapiddweller/benerator/archetype/archetypes.txt index fb6031ef6..2c4501a69 100644 --- a/src/main/resources/com/rapiddweller/benerator/archetype/archetypes.txt +++ b/src/main/resources/com/rapiddweller/benerator/archetype/archetypes.txt @@ -1,5 +1,5 @@ hello simple csv -db +simpledb_shopdb shopdb \ No newline at end of file diff --git a/src/main/resources/com/rapiddweller/benerator/archetype/db/ARCHETYPE-INF/description.properties b/src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/ARCHETYPE-INF/description.properties similarity index 100% rename from src/main/resources/com/rapiddweller/benerator/archetype/db/ARCHETYPE-INF/description.properties rename to src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/ARCHETYPE-INF/description.properties diff --git a/src/main/resources/com/rapiddweller/benerator/archetype/db/ARCHETYPE-INF/icon.gif b/src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/ARCHETYPE-INF/icon.gif similarity index 100% rename from src/main/resources/com/rapiddweller/benerator/archetype/db/ARCHETYPE-INF/icon.gif rename to src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/ARCHETYPE-INF/icon.gif diff --git a/src/main/resources/com/rapiddweller/benerator/archetype/db/benerator.xml b/src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/benerator.xml similarity index 95% rename from src/main/resources/com/rapiddweller/benerator/archetype/db/benerator.xml rename to src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/benerator.xml index 2b0cc803f..fbd9dfb4d 100644 --- a/src/main/resources/com/rapiddweller/benerator/archetype/db/benerator.xml +++ b/src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/benerator.xml @@ -31,6 +31,6 @@ Generating 100 entries for testtable - + \ No newline at end of file diff --git a/src/main/resources/com/rapiddweller/benerator/archetype/db/pom.xml b/src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/pom.xml similarity index 100% rename from src/main/resources/com/rapiddweller/benerator/archetype/db/pom.xml rename to src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/pom.xml diff --git a/src/main/resources/com/rapiddweller/benerator/archetype/db/readme.txt b/src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/readme.txt similarity index 100% rename from src/main/resources/com/rapiddweller/benerator/archetype/db/readme.txt rename to src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/readme.txt diff --git a/src/main/resources/com/rapiddweller/benerator/archetype/db/src/main/resources/log4j2.xml b/src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/src/main/resources/log4j2.xml similarity index 100% rename from src/main/resources/com/rapiddweller/benerator/archetype/db/src/main/resources/log4j2.xml rename to src/main/resources/com/rapiddweller/benerator/archetype/simpledb_shopdb/src/main/resources/log4j2.xml