core-it-support/core-it-plugins/maven-it-plugin-extension-consumer/src/main/java/org/apache/maven/plugin/coreit/UpdateSingletonMojo.java [44:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private String key;

    /**
     */
    @Parameter(defaultValue = "passed")
    private String value;

    /**
     */
    @Parameter
    private File propertiesFile;

    /**
     */
    @Component
    private StatefulSingleton singleton;

    /**
     * Runs this mojo.
     *
     * @throws MojoExecutionException If the output file could not be created.
     */
    public void execute() throws MojoExecutionException {
        getLog().info("[MAVEN-CORE-IT-LOG] Singleton Instance: " + System.identityHashCode(singleton));
        getLog().info("[MAVEN-CORE-IT-LOG] Singleton Class Loader: "
                + singleton.getClass().getClassLoader());

        getLog().info("[MAVEN-CORE-IT-LOG] Setting property " + key + " = " + value);

        singleton.setProperty(key, value);

        if (propertiesFile != null) {
            getLog().info("[MAVEN-CORE-IT-LOG] Saving properties to " + propertiesFile);

            try {
                singleton.saveProperties(propertiesFile);
            } catch (IOException e) {
                throw new MojoExecutionException("Failed to save properties to " + propertiesFile, e);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core-it-support/core-it-plugins/maven-it-plugin-extension-provider/src/main/java/org/apache/maven/plugin/coreit/UpdateSingletonMojo.java [44:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private String key;

    /**
     */
    @Parameter(defaultValue = "passed")
    private String value;

    /**
     */
    @Parameter
    private File propertiesFile;

    /**
     */
    @Component
    private StatefulSingleton singleton;

    /**
     * Runs this mojo.
     *
     * @throws MojoExecutionException If the output file could not be created.
     */
    public void execute() throws MojoExecutionException {
        getLog().info("[MAVEN-CORE-IT-LOG] Singleton Instance: " + System.identityHashCode(singleton));
        getLog().info("[MAVEN-CORE-IT-LOG] Singleton Class Loader: "
                + singleton.getClass().getClassLoader());

        getLog().info("[MAVEN-CORE-IT-LOG] Setting property " + key + " = " + value);

        singleton.setProperty(key, value);

        if (propertiesFile != null) {
            getLog().info("[MAVEN-CORE-IT-LOG] Saving properties to " + propertiesFile);

            try {
                singleton.saveProperties(propertiesFile);
            } catch (IOException e) {
                throw new MojoExecutionException("Failed to save properties to " + propertiesFile, e);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



