All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.truelicense.maven.plugin.generation.GenerateSourcesStrategy Maven / Gradle / Ivy

Go to download

The TrueLicense Maven Plugin generates source files from Apache Velocity template files or obfuscates constant string values in class files.

There is a newer version: 3.2.0
Show newest version
/*
 * Copyright (C) 2005-2017 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */

package net.truelicense.maven.plugin.generation;

/**
 * Determines how the directory with the files generated by merging the
 * template files with the Velocity context gets added to the maven project.
 *
 * @see GenerateSourcesMojo#generateSourcesStrategy()
 * @author Christian Schlichtherle
 */
public enum GenerateSourcesStrategy {

    mainSources {
        void updateProjectFrom(GenerateSourcesMojo.TemplateSet templateSet) {
            templateSet.addMergeDirectoryToCompileSourceRoot();
        }
    },

    testSources {
        void updateProjectFrom(GenerateSourcesMojo.TemplateSet templateSet) {
            templateSet.addMergeDirectoryToTestCompileSourceRoot();
        }
    };

    abstract void updateProjectFrom(GenerateSourcesMojo.TemplateSet templateSet);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy