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

com.yworks.common.ant.EntryPointJar Maven / Gradle / Ivy

Go to download

The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts

The newest version!
package com.yworks.common.ant;

import com.yworks.common.ResourcePolicy;
import com.yworks.common.ShrinkBag;
import org.apache.tools.ant.BuildException;

import java.io.File;

/**
 * The type Entry point jar.
 *
 * @author Michael Schroeder, yWorks GmbH http://www.yworks.com
 */
public class EntryPointJar implements ShrinkBag {

  private File inFile;

  public void setIn( File file ) {
    inFile = file;
  }

  /**
   * Sets name.
   *
   * @param fileName the file name
   */
  public void setName(File fileName) {
    inFile = fileName;
  }

  public void setOut( File file ) {
    throw new BuildException( "You can't set an outfile on an EntryPointJar." );
  }

  public File getIn() {
    return inFile;
  }

  public File getOut() {
    return null;
  }

  public boolean isEntryPointJar() {
    return true;
  }

  public void setResources( String resourcesStr ) {
    throw new BuildException( "You can't set resources on an EntryPointJar." );
  }

  public ResourcePolicy getResources() {
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy