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

com.yworks.yguard.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

There is a newer version: 4.1.1
Show newest version
package com.yworks.yguard.common.ant;

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

import java.io.File;

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

  private File inFile;

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

  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