org.codehaus.mojo.webstart.pack200.Pack200Config Maven / Gradle / Ivy
package org.codehaus.mojo.webstart.pack200;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.util.List;
/**
* Bean that represents the Pack200 configuration.
*
* @author Peter Butkovic [email protected]
* @author $LastChangedBy$
* @version $Revision$
* @since 1.0-beta-4
*/
public class Pack200Config
{
/**
* Whether pack200 is enabled at all or not.
*
* @see #isEnabled()
*/
private boolean enabled;
/**
* The files to be passed without compression.
*
* @see #getPassFiles()
*/
private List passFiles;
/**
* Gets the pack200 enabled configuration value.
* Please note: Setting this value to true requires SDK 5.0 or greater.
*
* @return {@code true} if pack200 compression of jar resources is enabled, {@code false} otherwise.
*/
public boolean isEnabled()
{
return enabled;
}
/**
* Gets the files within jar archive to be passed without pack200 compression.
* If file ends with a /, all files in the directory are passed through without packing.
* The same functionality as achievable by:
*
* pack200 --pass-file= file, -P file
*
*
* @return the files to be passed without pack200 compression.
*/
public List getPassFiles()
{
return passFiles;
}
public void setEnabled( boolean enabled )
{
this.enabled = enabled;
}
public void setPassFiles( List passFiles )
{
this.passFiles = passFiles;
}
}