From 3dca89f0015613ab3f287945965e9f92a6079cd8 Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Tue, 6 Oct 2009 14:44:29 +0200 Subject: Reformat all source files and add licenses to tests --- .../apache/maven/plugin/nar/AbstractNarMojo.java | 103 +++++++++++---------- 1 file changed, 55 insertions(+), 48 deletions(-) (limited to 'src/main/java/org/apache/maven/plugin/nar/AbstractNarMojo.java') diff --git a/src/main/java/org/apache/maven/plugin/nar/AbstractNarMojo.java b/src/main/java/org/apache/maven/plugin/nar/AbstractNarMojo.java index 066d80a..e6db79d 100644 --- a/src/main/java/org/apache/maven/plugin/nar/AbstractNarMojo.java +++ b/src/main/java/org/apache/maven/plugin/nar/AbstractNarMojo.java @@ -25,54 +25,52 @@ import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.project.MavenProject; - /** * @author Mark Donszelmann */ -public abstract class AbstractNarMojo extends AbstractMojo implements NarConstants { - +public abstract class AbstractNarMojo + extends AbstractMojo + implements NarConstants +{ + /** * Skip running of NAR plugins (any) altogether. * * @parameter expression="${nar.skip}" default-value="false" */ private boolean skip; - + /** - * The Architecture for the nar, - * Some choices are: "x86", "i386", "amd64", "ppc", "sparc", ... - * Defaults to a derived value from ${os.arch} - * + * The Architecture for the nar, Some choices are: "x86", "i386", "amd64", "ppc", "sparc", ... Defaults to a derived + * value from ${os.arch} + * * @parameter expression="${os.arch}" * @required */ private String architecture; /** - * The Operating System for the nar. - * Some choices are: "Windows", "Linux", "MacOSX", "SunOS", ... - * Defaults to a derived value from ${os.name} - * FIXME table missing - * + * The Operating System for the nar. Some choices are: "Windows", "Linux", "MacOSX", "SunOS", ... Defaults to a + * derived value from ${os.name} FIXME table missing + * * @parameter expression="" */ private String os; /** - * Architecture-OS-Linker name. - * Defaults to: arch-os-linker. - * + * Architecture-OS-Linker name. Defaults to: arch-os-linker. + * * @parameter expression="" */ private String aol; /** * Linker - * + * * @parameter expression="" */ private Linker linker; - + /** * @parameter expression="${project.build.directory}" * @readonly @@ -86,61 +84,70 @@ public abstract class AbstractNarMojo extends AbstractMojo implements NarConstan private String finalName; /** - * Target directory for Nar file construction - * Defaults to "${project.build.directory}/nar" for "nar-compile" goal + * Target directory for Nar file construction Defaults to "${project.build.directory}/nar" for "nar-compile" goal * Defaults to "${project.build.directory}/test-nar" for "nar-testCompile" goal - * + * * @parameter expression="" */ private File targetDirectory; - + /** * @parameter expression="${project}" * @readonly * @required */ private MavenProject mavenProject; - - - protected boolean shouldSkip() { - return skip; + + protected boolean shouldSkip() + { + return skip; } - - protected String getArchitecture() { - architecture = NarUtil.getArchitecture(architecture); + + protected String getArchitecture() + { + architecture = NarUtil.getArchitecture( architecture ); return architecture; } - - protected String getOS() { - os = NarUtil.getOS(os); + + protected String getOS() + { + os = NarUtil.getOS( os ); return os; } - - protected AOL getAOL() throws MojoFailureException { - return NarUtil.getAOL(architecture, os, linker, aol); + + protected AOL getAOL() + throws MojoFailureException + { + return NarUtil.getAOL( architecture, os, linker, aol ); } - - protected Linker getLinker() { - linker = NarUtil.getLinker(linker); + + protected Linker getLinker() + { + linker = NarUtil.getLinker( linker ); return linker; } - - protected File getOutputDirectory() { + + protected File getOutputDirectory() + { return outputDirectory; } - - protected String getFinalName() { + + protected String getFinalName() + { return finalName; } - - protected File getTargetDirectory() { - if (targetDirectory == null) { - targetDirectory = new File(mavenProject.getBuild().getDirectory(), "nar"); + + protected File getTargetDirectory() + { + if ( targetDirectory == null ) + { + targetDirectory = new File( mavenProject.getBuild().getDirectory(), "nar" ); } return targetDirectory; } - - protected MavenProject getMavenProject() { + + protected MavenProject getMavenProject() + { return mavenProject; } } -- cgit v1.2.3