net.java.truelicense.maven.plugin.GenerateSourcesStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelicense-maven-plugin Show documentation
Show all versions of truelicense-maven-plugin Show documentation
Provides a Maven plugin with goals for the obfuscation of constant
string values in Java class and test-class files (byte code).
The newest version!
/*
* Copyright (C) 2005-2017 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truelicense.maven.plugin;
import net.java.truelicense.maven.plugin.GenerateSourcesMojo.TemplateSet;
/**
* 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(TemplateSet templateSet) {
templateSet.addMergeDirectoryToCompileSourceRoot();
}
},
testSources {
void updateProjectFrom(TemplateSet templateSet) {
templateSet.addMergeDirectoryToTestCompileSourceRoot();
}
};
abstract void updateProjectFrom(TemplateSet templateSet);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy