net.java.truelicense.maven.plugin.ObfuscateMainClassesMojo 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 de.schlichtherle.truezip.file.TFile;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
/**
* Transforms the byte code of the main class files in order to obfuscate all
* constant string values in scope.
*
* @see net.java.truelicense.obfuscate.ObfuscatedString
* @since TrueLicense 2.4
* @author Christian Schlichtherle
*/
@Mojo(name = "obfuscate-main-classes", defaultPhase = LifecyclePhase.PROCESS_CLASSES)
public class ObfuscateMainClassesMojo extends ObfuscateClassesMojo {
@Parameter(property = "truelicense.obfuscate.main.outputDirectory", defaultValue = "${project.build.outputDirectory}", readonly = true)
private File outputDirectory;
@Override
protected TFile outputDirectory() { return new TFile(outputDirectory); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy