|
@@ -33,6 +33,7 @@ import java.io.InputStream;
|
|
|
import java.io.OutputStreamWriter;
|
|
|
import java.io.Writer;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
+import java.nio.file.NoSuchFileException;
|
|
|
import java.util.Set;
|
|
|
|
|
|
/**
|
|
@@ -60,7 +61,7 @@ public class ConfigFileGenerator extends AbstractProcessor {
|
|
|
.getResource(StandardLocation.CLASS_OUTPUT, "",
|
|
|
OUTPUT_FILE_NAME).openInputStream()) {
|
|
|
appender.load(input);
|
|
|
- } catch (FileNotFoundException ex) {
|
|
|
+ } catch (FileNotFoundException | NoSuchFileException ex) {
|
|
|
appender.init();
|
|
|
}
|
|
|
|
|
@@ -105,7 +106,7 @@ public class ConfigFileGenerator extends AbstractProcessor {
|
|
|
|
|
|
} catch (IOException e) {
|
|
|
processingEnv.getMessager().printMessage(Kind.ERROR,
|
|
|
- "Can't generate the config file from annotation: " + e.getMessage());
|
|
|
+ "Can't generate the config file from annotation: " + e);
|
|
|
}
|
|
|
return false;
|
|
|
}
|