From d6b6cea52e5e7e7ed86c034faab0cfc06e6114d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Galland?= Date: Thu, 6 Oct 2016 11:00:15 +0200 Subject: [PATCH] Adding more log messages in the maven compiler plugin. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see #504 Signed-off-by: Stéphane Galland --- .../io.sarl.lang.updatesite/pom.xml | 17 +++++++++++++++-- .../io/sarl/maven/compiler/CompileMojo.java | 2 +- .../sarl/maven/compiler/CompileMojo.properties | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/eclipse-products/io.sarl.lang.updatesite/pom.xml b/eclipse-products/io.sarl.lang.updatesite/pom.xml index 2bc0d91711..8459f09af4 100644 --- a/eclipse-products/io.sarl.lang.updatesite/pom.xml +++ b/eclipse-products/io.sarl.lang.updatesite/pom.xml @@ -77,12 +77,25 @@ - restoring-default-product + restoring-default-product-on-verify verify - + + + + + run + + + + restoring-default-product-on-clean + clean + + + + diff --git a/maven/sarl-maven-plugin/src/main/java/io/sarl/maven/compiler/CompileMojo.java b/maven/sarl-maven-plugin/src/main/java/io/sarl/maven/compiler/CompileMojo.java index 86a20c9ecc..e85da0c426 100644 --- a/maven/sarl-maven-plugin/src/main/java/io/sarl/maven/compiler/CompileMojo.java +++ b/maven/sarl-maven-plugin/src/main/java/io/sarl/maven/compiler/CompileMojo.java @@ -142,7 +142,7 @@ private void ensureSARLVersions() throws MojoExecutionException, MojoFailureExce } private void compileSARL() throws MojoExecutionException, MojoFailureException { - getLog().info(Locale.getString(CompileMojo.class, "COMPILING_SARL")); //$NON-NLS-1$ + getLog().info(Locale.getString(CompileMojo.class, "COMPILING_SARL", getOutput())); //$NON-NLS-1$ // Get the Maven plugin that is embedding the Xtext compiler final String xtextGroupId = this.mavenHelper.getConfig("xtext-compiler.groupId"); //$NON-NLS-1$ final String xtextArtifactId = this.mavenHelper.getConfig("xtext-compiler.artifactId"); //$NON-NLS-1$ diff --git a/maven/sarl-maven-plugin/src/main/resources/io/sarl/maven/compiler/CompileMojo.properties b/maven/sarl-maven-plugin/src/main/resources/io/sarl/maven/compiler/CompileMojo.properties index 5816d24368..cc84ea298a 100644 --- a/maven/sarl-maven-plugin/src/main/resources/io/sarl/maven/compiler/CompileMojo.properties +++ b/maven/sarl-maven-plugin/src/main/resources/io/sarl/maven/compiler/CompileMojo.properties @@ -1,6 +1,6 @@ CHECK_SARL_SDK = Checking if the SARL library is present, and is compliant with version {0}. INCOMPATIBLE_VERSION_SHORT = Incompatible version {2} for the SARL library {0}:{1}. INCOMPATIBLE_VERSION_LONG = Incompatible version {2} for the SARL library {0}:{1}.\nIt must be between {3} (inclusive) and {4} (exclusive). -COMPILING_SARL = Compiling SARL scripts to Java classes... +COMPILING_SARL = Compiling SARL scripts to Java classes. The generated Java files will be created in: {0}. COMPILING_JAVA = Compiling Java classes... NO_SARL_LIBRARY = SARL library not found in the project''s classpath: {0} \ No newline at end of file