Skip to main content
summaryrefslogtreecommitdiffstats
blob: a18977af865aefdfb1f7382c597e7f3696eb7f9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 * Copyright (c) 2007 Innoopract Informationssysteme GmbH
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Innoopract - initial API and implementation
 *******************************************************************************/
package org.eclipse.epp.packaging.core.configuration;

/**
 * Represents a platform configuration, consisting of operating system (os),
 * window system (ws) and system architecture (arch).
 */
public interface IPlatform {

  public ArchiveFormat getArchiveFormat();

  /**
   * Returns the platform components separated by the separator. Example:
   * toString(".") for linux,gtk,x86 return "linux.gtk.x86".
   * 
   * @param separator A separator character
   * @return The platform description formatted as
   *         [OS][separator][WS][separator][Arch]
   */
  public String toString( char separator );

  /**
   * Builds the file name of the platform files for this platform, using the
   * base name provided in configuration.
   */
  public String getRootFileName( IPackagerConfiguration configuration );

  /** Configures the SiteManager to use platform as its current one. */
  public void configureSite();

  /**
   * Builds and returns the filename of the target archive for this platform,
   * using the base name provided in configuration.
   */
  public String getTargetFileName( IPackagerConfiguration configuration );

  /** Returns the name installer-creating script most suitable for this platform. */
  public String getInstallScriptName();
  
  /** Returns a string with the content of the eclipse.ini file */
  public String getEclipseIniFileContent();

  /** Returns a string with the internal path to eclipse.ini */
  public String getEclipseIniFilePath();
}

Back to the top