Skip to content

Commit 2a14f33

Browse files
committed
Yet once revisiteed the logging of the plugin
- inplace should not confuse user by the temporary files Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
1 parent ccf3a5e commit 2a14f33

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/main/java/org/codehaus/mojo/native2ascii/Native2Ascii.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public String nativeToAscii(final String string) {
7777
* @throws IOException
7878
*/
7979
public void nativeToAscii(final File src, final File dst, final String encoding) throws IOException {
80-
this.log.info("Converting '" + src + "' to '" + dst + "'");
80+
this.log.debug("Processing '" + src + "' to '" + dst + "'");
8181
if (!dst.getParentFile().exists()) {
8282
dst.getParentFile().mkdirs();
8383
}

src/main/java/org/codehaus/mojo/native2ascii/mojo/Native2AsciiInplaceMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void executeTransformation(final Iterator<File> files) throws MojoExecuti
6262
Path tmpDir = createTmpDir();
6363
while (files.hasNext()) {
6464
File file = files.next();
65-
getLog().debug("Processing " + file);
65+
getLog().info("Converting " + file);
6666
try {
6767
File tempFile = Files.createTempFile(tmpDir, file.getName(), "native2ascii").toFile();
6868
new Native2Ascii(getLog()).nativeToAscii(file, tempFile, encoding);

src/main/java/org/codehaus/mojo/native2ascii/mojo/Native2AsciiMojo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ public void executeTransformation(final Iterator<File> files) throws MojoExecuti
7070

7171
while (files.hasNext()) {
7272
final File file = files.next();
73-
getLog().debug("Processing " + file);
7473
try {
75-
new Native2Ascii(getLog()).nativeToAscii(file, getTargetFile(file), encoding);
74+
File targetFile = getTargetFile(file);
75+
getLog().info("Converting '" + file + "' to '" + targetFile + "'");
76+
new Native2Ascii(getLog()).nativeToAscii(file, targetFile, encoding);
7677
} catch (final IOException e) {
7778
throw new MojoExecutionException("Unable to convert " + file.getAbsolutePath(), e);
7879
}

0 commit comments

Comments
 (0)