1 /**
2 * Copyright (C) 2008-2010 Matt Gumbley, DevZendo.org <http://devzendo.org>;
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /**
18 *
19 */
20 package org.devzendo.xplp;
21
22 import java.io.File;
23 import java.util.Properties;
24 import java.util.Set;
25
26 import org.apache.maven.artifact.Artifact;
27 import org.apache.maven.plugin.AbstractMojo;
28
29 /**
30 * Create a Linux launcher directory structure.
31 * @author matt
32 *
33 */
34 public class LinuxLauncherCreator extends UnixScriptLauncherCreator {
35 /**
36 * @param mojo the parent mojo class
37 * @param outputDirectory where to create the .app structure
38 * @param mainClassName the main class
39 * @param applicationName the name of the application
40 * @param libraryDirectory where the libraries are stored
41 * @param transitiveArtifacts the set of transitive artifact dependencies
42 * @param resourceDirectories the project's resource directories
43 * @param parameterProperties the plugin configuration parameters, as properties
44 * @param systemProperties an array of name=value system properties
45 * @param vmArguments an array of arguments to the VM
46 * @param narClassifierTypes an array of NAR classifier:types
47 */
48 public LinuxLauncherCreator(final AbstractMojo mojo,
49 final File outputDirectory,
50 final String mainClassName,
51 final String applicationName,
52 final String libraryDirectory,
53 final Set<Artifact> transitiveArtifacts,
54 final Set<File> resourceDirectories,
55 final Properties parameterProperties,
56 final String[] systemProperties,
57 final String[] vmArguments,
58 final String[] narClassifierTypes) {
59 super(mojo, outputDirectory, "linux", mainClassName,
60 applicationName, libraryDirectory,
61 transitiveArtifacts, resourceDirectories, parameterProperties,
62 systemProperties, vmArguments, narClassifierTypes);
63 }
64 }