Primer commit ej 1.8

This commit is contained in:
jxu4
2026-10-13 17:35:44 +02:00
parent 3675406739
commit 6f9bdb3d3c
11 changed files with 420 additions and 202 deletions
@@ -0,0 +1,30 @@
package org.palomafp.aadd.jx;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;
public class GestorPropiedad {
private static Properties propiedades = new Properties();
static {
Path ruta = Paths.get("config", "application.properties");
try (BufferedReader entrada = Files.newBufferedReader(ruta, StandardCharsets.ISO_8859_1)) {
propiedades.load(entrada);
} catch (IOException e) {
System.err.println("Error al cargar el archivo de propiedades: " + e.getMessage());
}
}
public static String get(String clave) {
return propiedades.getProperty(clave);
}
}