From 3da72831fef97a2ee142aa951f14b5b355f3394b Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 25 Sep 2022 12:04:17 +0200 Subject: [PATCH] Hotfix package name --- src/de/steamwar/linkage/LinkageProcessor.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/de/steamwar/linkage/LinkageProcessor.java b/src/de/steamwar/linkage/LinkageProcessor.java index 7bdbbd4..bc93b3d 100644 --- a/src/de/steamwar/linkage/LinkageProcessor.java +++ b/src/de/steamwar/linkage/LinkageProcessor.java @@ -65,13 +65,10 @@ public class LinkageProcessor extends AbstractProcessor { public synchronized void init(ProcessingEnvironment processingEnv) { super.init(processingEnv); - String name = new File(System.getProperty("user.dir")).getName(); - if (name.contains(".")) name = name.substring(0, name.indexOf('.')); - name = name.toLowerCase(); + name = new File(System.getProperty("user.dir")).getName().replaceAll("[^a-zA-Z]", "").toLowerCase(); messager = processingEnv.getMessager(); - this.name = name; packageName = "de.steamwar." + name + ".linkage"; className = "LinkageUtils"; mainClass();