/* * Copyright 2012 Daniel Zwolenski. * * Licensed 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. */ package com.zenjava.javafx.maven.plugin; import java.io.File; import java.util.List; import java.util.Map; /** * Data transfer object for configuring secondary native launchers. These fields are all like when calling 'mvn jfx:native'. * * @author Danny Althoff */ public class NativeLauncher { /** * This has to be different than original appname, as all existing parameter are copied and this would be overwritten. * * @parameter * @required */ private String appName = null; /** * @parameter */ private String mainClass = null; /** * @parameter */ private File jfxMainAppJarName = null; /** * @parameter */ private Map jvmProperties = null; /** * @parameter */ private List jvmArgs = null; /** * @parameter */ private Map userJvmArgs = null; /** * @parameter default-value="1.0" */ private String nativeReleaseVersion = null; /** * @parameter default-value=false */ private boolean needShortcut; /** * @parameter default-value=false */ private boolean needMenu; /** * @parameter */ private String vendor = null; /** * @parameter */ private String identifier = null; /** * To override default generated classpath, set this to your wanted value. * * @parameter */ private String classpath = null; private List launcherArguments = null; public String getMainClass() { return mainClass; } public File getJfxMainAppJarName() { return jfxMainAppJarName; } public String getAppName() { return appName; } public Map getJvmProperties() { return jvmProperties; } public List getJvmArgs() { return jvmArgs; } public Map getUserJvmArgs() { return userJvmArgs; } public String getNativeReleaseVersion() { return nativeReleaseVersion; } public boolean isNeedShortcut() { return needShortcut; } public boolean isNeedMenu() { return needMenu; } public String getVendor() { return vendor; } public void setVendor(String vendor) { this.vendor = vendor; } public String getIdentifier() { return identifier; } public void setIdentifier(String identifier) { this.identifier = identifier; } public String getClasspath() { return classpath; } public void setClasspath(String classpath) { this.classpath = classpath; } public List getLauncherArguments() { return launcherArguments; } public void setLauncherArguments(List launcherArguments) { this.launcherArguments = launcherArguments; } }