Author: tchemit Date: 2008-08-24 08:02:04 +0000 (Sun, 24 Aug 2008) New Revision: 1059 Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java Log: suppression de la propriete doSwitch pour declancher le goal switch : le goal est directement lancer dans le profile license de lutinproject Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java =================================================================== --- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java 2008-08-22 22:49:37 UTC (rev 1058) +++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java 2008-08-24 08:02:04 UTC (rev 1059) @@ -1,4 +1,5 @@ -/*##% Plugin maven pour switcher les licenses +/** + * *##% Plugin maven pour switcher les licenses * Copyright (C) 2008 CodeLutin * * This program is free software: you can redistribute it and/or modify @@ -95,14 +96,6 @@ */ protected List<String> testCompileSourceRoots; - /** - * Un flag pour indiquer de lancer le goal. - * - * @parameter expression="${license-switcher.doSwitch}" default-value="false" - * @required - */ - protected boolean doSwitch; - /** le header a ajouter dans chaque fichier source java */ protected String licenseHeaderContent; @@ -138,11 +131,6 @@ @Override public void execute() throws MojoExecutionException, MojoFailureException { - if (!doSwitch) { - getLog().info("goal was not executed, you must specify the license-switcher.doSwitch to launch the goal"); - return; - } - super.execute(); if (javaFilesToTreate.isEmpty()) {