Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public class ItMojo extends AbstractMojo {
private File outputFile;

public void execute() throws MojoExecutionException {
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Failed to create touch file: " + e.getMessage(), e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Creating output file " + outputFile);

OutputStream out = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
out = new FileOutputStream(outputFile);
componentProperties.store(out, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public void run() {
getLog().info("[MAVEN-CORE-IT-LOG] Creating output file " + outputFile);

OutputStream out = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
out = new FileOutputStream(outputFile);
componentProperties.store(out, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class PropertiesUtil {

public static void write(File outputFile, Properties props) throws MojoExecutionException {
OutputStream out = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
out = new FileOutputStream(outputFile);
props.store(out, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public static Properties read(File inputFile) throws MojoExecutionException {

public static void write(File outputFile, Properties props) throws MojoExecutionException {
OutputStream os = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
os = new FileOutputStream(outputFile);
props.store(os, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
outputFile = new File(project.getBasedir(), pathname).getAbsoluteFile();
}

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
outputFile = new File(project.getBasedir(), pathname).getAbsoluteFile();
}

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
outputFile = new File(project.getBasedir(), pathname).getAbsoluteFile();
}

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();

if (message != null && message.length() > 0) {
getLog().info("[MAVEN-CORE-IT-LOG] " + message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + pathname, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public void execute() throws MojoExecutionException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
try (FileOutputStream os = new FileOutputStream(outputFile)) {
props.store(os, "MAVEN-CORE-IT-LOG");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class TouchMojo extends AbstractMojo {
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
} catch (IOException e) {
throw new MojoExecutionException("Output file could not be created: " + outputFile, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class AppendMojo extends AbstractMojo {
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();

getLog().info("[MAVEN-CORE-IT-LOG] " + message);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public void execute() throws MojoExecutionException {

getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
try (FileOutputStream os = new FileOutputStream(outputFile)) {
props.store(os, "MAVEN-CORE-IT-LOG");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Creating output file: " + outputFile);

OutputStream out = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
out = new FileOutputStream(outputFile);
props.store(out, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public void execute() throws MojoExecutionException {
}

OutputStream out = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
out = new FileOutputStream(outputFile);
properties.store(out, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public void execute() throws MojoExecutionException {
}

OutputStream out = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
out = new FileOutputStream(outputFile);
properties.store(out, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Creating output file " + outputFile);

OutputStream out = null;
outputFile.getParentFile().mkdirs();
try {
outputFile.getParentFile().mkdirs();
out = new FileOutputStream(outputFile);
loaderProperties.store(out, "MAVEN-CORE-IT-LOG");
} catch (IOException e) {
Expand Down