From 5273d5aebfef6850edd7a22f376cadb1cde904c4 Mon Sep 17 00:00:00 2001 From: Vincent Privat Date: Fri, 19 Jan 2024 10:40:01 +0100 Subject: [PATCH] rename project to GlamScrap to also handle museums --- pom.xml | 6 +-- .../GlamScrap.java} | 38 +++++++++---------- .../{archscrap => glamscrap}/Parser.java | 12 +++--- .../domain/Fonds.java | 10 ++--- .../domain/Notice.java | 10 ++--- .../paris/ParisArchivesGlamScrap.java} | 14 +++---- .../institutions}/paris/ParisParser.java | 6 +-- .../toulouse/ToulouseArchivesGlamScrap.java} | 14 +++---- .../toulouse/ToulouseParser.java | 8 ++-- .../uploadtools/Pattypan.java | 14 +++---- .../uploadtools/UploadTool.java | 10 ++--- .../wikidata/Author.java | 2 +- .../wikidata/WikidataUtils.java | 2 +- src/main/resources/config.github.props | 2 +- src/main/resources/config.windows.props | 2 +- src/main/resources/hibernate.cfg.xml | 4 +- .../{archscrap => glamscrap}/ParserTest.java | 12 +++--- .../domain/NoticeTest.java | 2 +- 18 files changed, 84 insertions(+), 84 deletions(-) rename src/main/java/com/github/donvip/{archscrap/ArchScrap.java => glamscrap/GlamScrap.java} (91%) rename src/main/java/com/github/donvip/{archscrap => glamscrap}/Parser.java (93%) rename src/main/java/com/github/donvip/{archscrap => glamscrap}/domain/Fonds.java (92%) rename src/main/java/com/github/donvip/{archscrap => glamscrap}/domain/Notice.java (96%) rename src/main/java/com/github/donvip/{archscrap/archives/paris/ParisArchScrap.java => glamscrap/institutions/paris/ParisArchivesGlamScrap.java} (97%) rename src/main/java/com/github/donvip/{archscrap/archives => glamscrap/institutions}/paris/ParisParser.java (92%) rename src/main/java/com/github/donvip/{archscrap/archives/toulouse/ToulouseArchScrap.java => glamscrap/institutions/toulouse/ToulouseArchivesGlamScrap.java} (92%) rename src/main/java/com/github/donvip/{archscrap/archives => glamscrap/institutions}/toulouse/ToulouseParser.java (97%) rename src/main/java/com/github/donvip/{archscrap => glamscrap}/uploadtools/Pattypan.java (92%) rename src/main/java/com/github/donvip/{archscrap => glamscrap}/uploadtools/UploadTool.java (83%) rename src/main/java/com/github/donvip/{archscrap => glamscrap}/wikidata/Author.java (97%) rename src/main/java/com/github/donvip/{archscrap => glamscrap}/wikidata/WikidataUtils.java (99%) rename src/test/java/com/github/donvip/{archscrap => glamscrap}/ParserTest.java (90%) rename src/test/java/com/github/donvip/{archscrap => glamscrap}/domain/NoticeTest.java (92%) diff --git a/pom.xml b/pom.xml index d1c26f9..caaf993 100644 --- a/pom.xml +++ b/pom.xml @@ -2,17 +2,17 @@ 4.0.0 com.github.donvip - archscrap + glamscrap 0.2.0-SNAPSHOT jar - archscrap + glamscrap UTF-8 21 21 - don-vip_ArchScrap + don-vip_GlamScrap don-vip https://sonarcloud.io diff --git a/src/main/java/com/github/donvip/archscrap/ArchScrap.java b/src/main/java/com/github/donvip/glamscrap/GlamScrap.java similarity index 91% rename from src/main/java/com/github/donvip/archscrap/ArchScrap.java rename to src/main/java/com/github/donvip/glamscrap/GlamScrap.java index c41b325..fec3a8f 100644 --- a/src/main/java/com/github/donvip/archscrap/ArchScrap.java +++ b/src/main/java/com/github/donvip/glamscrap/GlamScrap.java @@ -1,20 +1,20 @@ /** - * This file is part of ArchScrap. + * This file is part of GlamScrap. * - * ArchScrap is free software: you can redistribute it and/or modify + * GlamScrap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * ArchScrap is distributed in the hope that it will be useful, + * GlamScrap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with ArchScrap. If not, see . + * along with GlamScrap. If not, see . */ -package com.github.donvip.archscrap; +package com.github.donvip.glamscrap; import java.io.File; import java.io.FileOutputStream; @@ -44,15 +44,15 @@ import org.jsoup.Jsoup; import org.jsoup.nodes.Document; -import com.github.donvip.archscrap.archives.paris.ParisArchScrap; -import com.github.donvip.archscrap.archives.toulouse.ToulouseArchScrap; -import com.github.donvip.archscrap.domain.Fonds; -import com.github.donvip.archscrap.domain.Notice; -import com.github.donvip.archscrap.uploadtools.Pattypan; -import com.github.donvip.archscrap.uploadtools.UploadTool; -import com.github.donvip.archscrap.wikidata.Author; +import com.github.donvip.glamscrap.domain.Fonds; +import com.github.donvip.glamscrap.domain.Notice; +import com.github.donvip.glamscrap.institutions.paris.ParisArchivesGlamScrap; +import com.github.donvip.glamscrap.institutions.toulouse.ToulouseArchivesGlamScrap; +import com.github.donvip.glamscrap.uploadtools.Pattypan; +import com.github.donvip.glamscrap.uploadtools.UploadTool; +import com.github.donvip.glamscrap.wikidata.Author; -public abstract class ArchScrap implements AutoCloseable { +public abstract class GlamScrap implements AutoCloseable { private static final Logger LOGGER = LogManager.getLogger(); @@ -97,7 +97,7 @@ public boolean contains(int i) { protected final Set missedNotices = new TreeSet<>(); - protected ArchScrap(String city) { + protected GlamScrap(String city) { LOGGER.debug("Initializing Hibernate..."); System.setProperty("city", city); this.city = city; @@ -124,7 +124,7 @@ public final void close() throws IOException { } public static void usage() { - LOGGER.info("Usage: ArchScrap [paris|toulouse] scrap [[,]*] | check [[,]*] | download [[,]*] | pattypan [] | gui"); + LOGGER.info("Usage: GlamScrap [paris|toulouse] scrap [[,]*] | check [[,]*] | download [[,]*] | pattypan [] | gui"); } public static void main(String[] args) { @@ -132,7 +132,7 @@ public static void main(String[] args) { usage(); return; } - try (ArchScrap app = buildApp(args[0])) { + try (GlamScrap app = buildApp(args[0])) { switch (args[1]) { case "scrap": app.doScrap(args); @@ -173,10 +173,10 @@ private void doUploadTool(String[] args, UploadTool tool) throws IOException { public abstract String getInstitution(); - private static ArchScrap buildApp(String city) { + private static GlamScrap buildApp(String city) { switch (city) { - case "paris": return new ParisArchScrap(); - case "toulouse": return new ToulouseArchScrap(); + case "paris": return new ParisArchivesGlamScrap(); + case "toulouse": return new ToulouseArchivesGlamScrap(); default: throw new IllegalArgumentException("Unsupported city: " + city); } } diff --git a/src/main/java/com/github/donvip/archscrap/Parser.java b/src/main/java/com/github/donvip/glamscrap/Parser.java similarity index 93% rename from src/main/java/com/github/donvip/archscrap/Parser.java rename to src/main/java/com/github/donvip/glamscrap/Parser.java index 70d8fe1..9fe0e2d 100644 --- a/src/main/java/com/github/donvip/archscrap/Parser.java +++ b/src/main/java/com/github/donvip/glamscrap/Parser.java @@ -1,20 +1,20 @@ /** - * This file is part of ArchScrap. + * This file is part of GlamScrap. * - * ArchScrap is free software: you can redistribute it and/or modify + * GlamScrap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * ArchScrap is distributed in the hope that it will be useful, + * GlamScrap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with ArchScrap. If not, see . + * along with GlamScrap. If not, see . */ -package com.github.donvip.archscrap; +package com.github.donvip.glamscrap; import java.time.LocalDate; import java.time.Year; @@ -24,7 +24,7 @@ import org.apache.logging.log4j.Logger; import org.apache.uima.cas.FSIterator; -import com.github.donvip.archscrap.domain.Notice; +import com.github.donvip.glamscrap.domain.Notice; import de.unihd.dbs.heideltime.standalone.DocumentType; import de.unihd.dbs.heideltime.standalone.HeidelTimeStandalone; diff --git a/src/main/java/com/github/donvip/archscrap/domain/Fonds.java b/src/main/java/com/github/donvip/glamscrap/domain/Fonds.java similarity index 92% rename from src/main/java/com/github/donvip/archscrap/domain/Fonds.java rename to src/main/java/com/github/donvip/glamscrap/domain/Fonds.java index db0777c..6271c02 100644 --- a/src/main/java/com/github/donvip/archscrap/domain/Fonds.java +++ b/src/main/java/com/github/donvip/glamscrap/domain/Fonds.java @@ -1,20 +1,20 @@ /** - * This file is part of ArchScrap. + * This file is part of GlamScrap. * - * ArchScrap is free software: you can redistribute it and/or modify + * GlamScrap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * ArchScrap is distributed in the hope that it will be useful, + * GlamScrap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with ArchScrap. If not, see . + * along with GlamScrap. If not, see . */ -package com.github.donvip.archscrap.domain; +package com.github.donvip.glamscrap.domain; import java.math.BigInteger; import java.util.ArrayList; diff --git a/src/main/java/com/github/donvip/archscrap/domain/Notice.java b/src/main/java/com/github/donvip/glamscrap/domain/Notice.java similarity index 96% rename from src/main/java/com/github/donvip/archscrap/domain/Notice.java rename to src/main/java/com/github/donvip/glamscrap/domain/Notice.java index 438e735..98ecfd3 100644 --- a/src/main/java/com/github/donvip/archscrap/domain/Notice.java +++ b/src/main/java/com/github/donvip/glamscrap/domain/Notice.java @@ -1,20 +1,20 @@ /** - * This file is part of ArchScrap. + * This file is part of GlamScrap. * - * ArchScrap is free software: you can redistribute it and/or modify + * GlamScrap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * ArchScrap is distributed in the hope that it will be useful, + * GlamScrap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with ArchScrap. If not, see . + * along with GlamScrap. If not, see . */ -package com.github.donvip.archscrap.domain; +package com.github.donvip.glamscrap.domain; import java.net.URL; import java.time.LocalDate; diff --git a/src/main/java/com/github/donvip/archscrap/archives/paris/ParisArchScrap.java b/src/main/java/com/github/donvip/glamscrap/institutions/paris/ParisArchivesGlamScrap.java similarity index 97% rename from src/main/java/com/github/donvip/archscrap/archives/paris/ParisArchScrap.java rename to src/main/java/com/github/donvip/glamscrap/institutions/paris/ParisArchivesGlamScrap.java index 446f7a4..92479d6 100644 --- a/src/main/java/com/github/donvip/archscrap/archives/paris/ParisArchScrap.java +++ b/src/main/java/com/github/donvip/glamscrap/institutions/paris/ParisArchivesGlamScrap.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.archives.paris; +package com.github.donvip.glamscrap.institutions.paris; import static java.util.stream.Collectors.toMap; @@ -19,15 +19,15 @@ import org.jsoup.nodes.Element; import org.jsoup.select.Elements; -import com.github.donvip.archscrap.ArchScrap; -import com.github.donvip.archscrap.domain.Fonds; -import com.github.donvip.archscrap.domain.Notice; -import com.github.donvip.archscrap.wikidata.Author; +import com.github.donvip.glamscrap.GlamScrap; +import com.github.donvip.glamscrap.domain.Fonds; +import com.github.donvip.glamscrap.domain.Notice; +import com.github.donvip.glamscrap.wikidata.Author; /** * https://archives.paris.fr/a/234/catalogues-des-documents-figures/ */ -public class ParisArchScrap extends ArchScrap { +public class ParisArchivesGlamScrap extends GlamScrap { private static final Logger LOGGER = LogManager.getLogger(); @@ -54,7 +54,7 @@ public class ParisArchScrap extends ArchScrap { PREDEFINED_AUTHORS.put("Harand, F. (photographe)", new Author("Harand", "François", "photographe")); } - public ParisArchScrap() { + public ParisArchivesGlamScrap() { super("paris"); } diff --git a/src/main/java/com/github/donvip/archscrap/archives/paris/ParisParser.java b/src/main/java/com/github/donvip/glamscrap/institutions/paris/ParisParser.java similarity index 92% rename from src/main/java/com/github/donvip/archscrap/archives/paris/ParisParser.java rename to src/main/java/com/github/donvip/glamscrap/institutions/paris/ParisParser.java index 367cf36..e33067d 100644 --- a/src/main/java/com/github/donvip/archscrap/archives/paris/ParisParser.java +++ b/src/main/java/com/github/donvip/glamscrap/institutions/paris/ParisParser.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.archives.paris; +package com.github.donvip.glamscrap.institutions.paris; import java.net.MalformedURLException; import java.net.URL; @@ -8,8 +8,8 @@ import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; -import com.github.donvip.archscrap.Parser; -import com.github.donvip.archscrap.domain.Notice; +import com.github.donvip.glamscrap.Parser; +import com.github.donvip.glamscrap.domain.Notice; class ParisParser extends Parser { diff --git a/src/main/java/com/github/donvip/archscrap/archives/toulouse/ToulouseArchScrap.java b/src/main/java/com/github/donvip/glamscrap/institutions/toulouse/ToulouseArchivesGlamScrap.java similarity index 92% rename from src/main/java/com/github/donvip/archscrap/archives/toulouse/ToulouseArchScrap.java rename to src/main/java/com/github/donvip/glamscrap/institutions/toulouse/ToulouseArchivesGlamScrap.java index e76f2eb..a0add52 100644 --- a/src/main/java/com/github/donvip/archscrap/archives/toulouse/ToulouseArchScrap.java +++ b/src/main/java/com/github/donvip/glamscrap/institutions/toulouse/ToulouseArchivesGlamScrap.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.archives.toulouse; +package com.github.donvip.glamscrap.institutions.toulouse; import java.io.IOException; import java.util.ArrayList; @@ -15,12 +15,12 @@ import org.jsoup.nodes.Element; import org.jsoup.select.Elements; -import com.github.donvip.archscrap.ArchScrap; -import com.github.donvip.archscrap.domain.Fonds; -import com.github.donvip.archscrap.domain.Notice; -import com.github.donvip.archscrap.wikidata.Author; +import com.github.donvip.glamscrap.GlamScrap; +import com.github.donvip.glamscrap.domain.Fonds; +import com.github.donvip.glamscrap.domain.Notice; +import com.github.donvip.glamscrap.wikidata.Author; -public class ToulouseArchScrap extends ArchScrap { +public class ToulouseArchivesGlamScrap extends GlamScrap { private static final Logger LOGGER = LogManager.getLogger(); @@ -39,7 +39,7 @@ public class ToulouseArchScrap extends ArchScrap { ALLOWED_GAPS.put("24Fi", new Range(215, 99)); } - public ToulouseArchScrap() { + public ToulouseArchivesGlamScrap() { super("toulouse"); } diff --git a/src/main/java/com/github/donvip/archscrap/archives/toulouse/ToulouseParser.java b/src/main/java/com/github/donvip/glamscrap/institutions/toulouse/ToulouseParser.java similarity index 97% rename from src/main/java/com/github/donvip/archscrap/archives/toulouse/ToulouseParser.java rename to src/main/java/com/github/donvip/glamscrap/institutions/toulouse/ToulouseParser.java index 3dd343b..57c2e74 100644 --- a/src/main/java/com/github/donvip/archscrap/archives/toulouse/ToulouseParser.java +++ b/src/main/java/com/github/donvip/glamscrap/institutions/toulouse/ToulouseParser.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.archives.toulouse; +package com.github.donvip.glamscrap.institutions.toulouse; import java.time.Year; import java.time.format.DateTimeParseException; @@ -17,9 +17,9 @@ import org.jsoup.select.Elements; import org.jsoup.select.Selector.SelectorParseException; -import com.github.donvip.archscrap.Parser; -import com.github.donvip.archscrap.domain.Fonds; -import com.github.donvip.archscrap.domain.Notice; +import com.github.donvip.glamscrap.Parser; +import com.github.donvip.glamscrap.domain.Fonds; +import com.github.donvip.glamscrap.domain.Notice; class ToulouseParser extends Parser { diff --git a/src/main/java/com/github/donvip/archscrap/uploadtools/Pattypan.java b/src/main/java/com/github/donvip/glamscrap/uploadtools/Pattypan.java similarity index 92% rename from src/main/java/com/github/donvip/archscrap/uploadtools/Pattypan.java rename to src/main/java/com/github/donvip/glamscrap/uploadtools/Pattypan.java index 6d3c40b..04d9769 100644 --- a/src/main/java/com/github/donvip/archscrap/uploadtools/Pattypan.java +++ b/src/main/java/com/github/donvip/glamscrap/uploadtools/Pattypan.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.uploadtools; +package com.github.donvip.glamscrap.uploadtools; import static java.util.stream.Collectors.joining; @@ -17,11 +17,11 @@ import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; -import com.github.donvip.archscrap.ArchScrap; -import com.github.donvip.archscrap.domain.Fonds; -import com.github.donvip.archscrap.domain.Notice; -import com.github.donvip.archscrap.wikidata.Author; -import com.github.donvip.archscrap.wikidata.WikidataUtils; +import com.github.donvip.glamscrap.GlamScrap; +import com.github.donvip.glamscrap.domain.Fonds; +import com.github.donvip.glamscrap.domain.Notice; +import com.github.donvip.glamscrap.wikidata.Author; +import com.github.donvip.glamscrap.wikidata.WikidataUtils; public class Pattypan extends UploadTool { @@ -37,7 +37,7 @@ protected String getFileExtension() { } @Override - protected void writeContents(Fonds f, ArchScrap cityScrap, OutputStream out) throws IOException { + protected void writeContents(Fonds f, GlamScrap cityScrap, OutputStream out) throws IOException { try (Workbook wb = new HSSFWorkbook()) { Path downloadDir = cityScrap.getDownloadDir(f); Sheet data = wb.createSheet("Data"); diff --git a/src/main/java/com/github/donvip/archscrap/uploadtools/UploadTool.java b/src/main/java/com/github/donvip/glamscrap/uploadtools/UploadTool.java similarity index 83% rename from src/main/java/com/github/donvip/archscrap/uploadtools/UploadTool.java rename to src/main/java/com/github/donvip/glamscrap/uploadtools/UploadTool.java index 6232ea6..498a0c4 100644 --- a/src/main/java/com/github/donvip/archscrap/uploadtools/UploadTool.java +++ b/src/main/java/com/github/donvip/glamscrap/uploadtools/UploadTool.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.uploadtools; +package com.github.donvip.glamscrap.uploadtools; import java.io.IOException; import java.io.InputStream; @@ -11,14 +11,14 @@ import java.util.Set; import java.util.function.Consumer; -import com.github.donvip.archscrap.ArchScrap; -import com.github.donvip.archscrap.domain.Fonds; +import com.github.donvip.glamscrap.GlamScrap; +import com.github.donvip.glamscrap.domain.Fonds; public abstract class UploadTool { private static final Set LOGGED_MESSAGES = new HashSet<>(); - public void writeUploadFile(Fonds f, ArchScrap cityScrap) throws IOException { + public void writeUploadFile(Fonds f, GlamScrap cityScrap) throws IOException { Path dir = Files.createDirectories(cityScrap.getDownloadDir(f).resolve("upload")); String filename = getClass().getSimpleName().toLowerCase(Locale.ENGLISH) + '.' + getFileExtension(); try (OutputStream out = Files.newOutputStream(dir.resolve(filename))) { @@ -26,7 +26,7 @@ public void writeUploadFile(Fonds f, ArchScrap cityScrap) throws IOException { } } - protected abstract void writeContents(Fonds f, ArchScrap cityScrap, OutputStream out) throws IOException; + protected abstract void writeContents(Fonds f, GlamScrap cityScrap, OutputStream out) throws IOException; protected abstract String getFileExtension(); diff --git a/src/main/java/com/github/donvip/archscrap/wikidata/Author.java b/src/main/java/com/github/donvip/glamscrap/wikidata/Author.java similarity index 97% rename from src/main/java/com/github/donvip/archscrap/wikidata/Author.java rename to src/main/java/com/github/donvip/glamscrap/wikidata/Author.java index 1f832e3..084ce08 100644 --- a/src/main/java/com/github/donvip/archscrap/wikidata/Author.java +++ b/src/main/java/com/github/donvip/glamscrap/wikidata/Author.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.wikidata; +package com.github.donvip.glamscrap.wikidata; import java.time.LocalDate; diff --git a/src/main/java/com/github/donvip/archscrap/wikidata/WikidataUtils.java b/src/main/java/com/github/donvip/glamscrap/wikidata/WikidataUtils.java similarity index 99% rename from src/main/java/com/github/donvip/archscrap/wikidata/WikidataUtils.java rename to src/main/java/com/github/donvip/glamscrap/wikidata/WikidataUtils.java index 93ae3e7..41effdb 100644 --- a/src/main/java/com/github/donvip/archscrap/wikidata/WikidataUtils.java +++ b/src/main/java/com/github/donvip/glamscrap/wikidata/WikidataUtils.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.wikidata; +package com.github.donvip.glamscrap.wikidata; import static java.util.stream.Collectors.joining; diff --git a/src/main/resources/config.github.props b/src/main/resources/config.github.props index 00ab3f0..f03407c 100644 --- a/src/main/resources/config.github.props +++ b/src/main/resources/config.github.props @@ -21,7 +21,7 @@ considerTemponym = false # Path to TreeTagger home directory ################################### # Ensure there is no white space in path (try to escape white spaces) -treeTaggerHome = /home/runner/work/ArchScrap/ArchScrap/TreeTagger/linux +treeTaggerHome = /home/runner/work/GlamScrap/GlamScrap/TreeTagger/linux # This one is only necessary if you want to process chinese documents. chineseTokenizerPath = SET ME IN CONFIG.PROPS! (e.g., /home/jannik/treetagger/chinese-tokenizer) diff --git a/src/main/resources/config.windows.props b/src/main/resources/config.windows.props index 1134906..4e03ecf 100644 --- a/src/main/resources/config.windows.props +++ b/src/main/resources/config.windows.props @@ -21,7 +21,7 @@ considerTemponym = false # Path to TreeTagger home directory ################################### # Ensure there is no white space in path (try to escape white spaces) -treeTaggerHome = C:\\GIT\\ArchScrap\\TreeTagger\\windows +treeTaggerHome = C:\\GIT\\GlamScrap\\TreeTagger\\windows # This one is only necessary if you want to process chinese documents. chineseTokenizerPath = SET ME IN CONFIG.PROPS! (e.g., /home/jannik/treetagger/chinese-tokenizer) diff --git a/src/main/resources/hibernate.cfg.xml b/src/main/resources/hibernate.cfg.xml index 8ab4492..1f12b0d 100644 --- a/src/main/resources/hibernate.cfg.xml +++ b/src/main/resources/hibernate.cfg.xml @@ -29,8 +29,8 @@ update - - + + diff --git a/src/test/java/com/github/donvip/archscrap/ParserTest.java b/src/test/java/com/github/donvip/glamscrap/ParserTest.java similarity index 90% rename from src/test/java/com/github/donvip/archscrap/ParserTest.java rename to src/test/java/com/github/donvip/glamscrap/ParserTest.java index 52793cd..c82cc26 100644 --- a/src/test/java/com/github/donvip/archscrap/ParserTest.java +++ b/src/test/java/com/github/donvip/glamscrap/ParserTest.java @@ -1,20 +1,20 @@ /** - * This file is part of ArchScrap. + * This file is part of GlamScrap. * - * ArchScrap is free software: you can redistribute it and/or modify + * GlamScrap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * ArchScrap is distributed in the hope that it will be useful, + * GlamScrap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with ArchScrap. If not, see . + * along with GlamScrap. If not, see . */ -package com.github.donvip.archscrap; +package com.github.donvip.glamscrap; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import com.github.donvip.archscrap.domain.Notice; +import com.github.donvip.glamscrap.domain.Notice; /** * Unit tests for Parser. diff --git a/src/test/java/com/github/donvip/archscrap/domain/NoticeTest.java b/src/test/java/com/github/donvip/glamscrap/domain/NoticeTest.java similarity index 92% rename from src/test/java/com/github/donvip/archscrap/domain/NoticeTest.java rename to src/test/java/com/github/donvip/glamscrap/domain/NoticeTest.java index c5dc888..53a2e71 100644 --- a/src/test/java/com/github/donvip/archscrap/domain/NoticeTest.java +++ b/src/test/java/com/github/donvip/glamscrap/domain/NoticeTest.java @@ -1,4 +1,4 @@ -package com.github.donvip.archscrap.domain; +package com.github.donvip.glamscrap.domain; import static org.junit.jupiter.api.Assertions.assertEquals;