|
1 /** |
|
2 * Copyright (c) 2010 Symbian Foundation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Symbian Foundation - initial contribution. |
|
11 * Contributors: |
|
12 * Description: |
|
13 * Overview: |
|
14 * Details: |
|
15 * Platforms/Drives/Compatibility: |
|
16 * Assumptions/Requirement/Pre-requisites: |
|
17 * Failures and causes: |
|
18 */ |
|
19 package org.symbian.tools.tmw.core.runtimes; |
|
20 |
|
21 import java.io.File; |
|
22 |
|
23 import org.eclipse.core.resources.IResource; |
|
24 import org.eclipse.core.runtime.CoreException; |
|
25 import org.eclipse.core.runtime.IPath; |
|
26 import org.eclipse.core.runtime.IProgressMonitor; |
|
27 import org.symbian.tools.tmw.core.projects.ITMWProject; |
|
28 |
|
29 /** |
|
30 * Delegate performs application packaging. |
|
31 * |
|
32 * @author Eugene Ostroukhov (eugeneo@symbian.org) |
|
33 */ |
|
34 public interface IPackagerDelegate { |
|
35 /** |
|
36 * Synchronously packages application for the specified runtime. |
|
37 * |
|
38 * @return URI of the application package that can be deployed to targets |
|
39 */ |
|
40 File packageApplication(ITMWProject project, IProgressMonitor monitor) throws CoreException; |
|
41 |
|
42 /** |
|
43 * @return application package root-relative path where the workspace resource will be packaged. Can be <code>null</code>. |
|
44 */ |
|
45 IPath getPathInPackage(IResource resource); |
|
46 |
|
47 /** |
|
48 * @return file type of the application archive |
|
49 */ |
|
50 String getFileType(ITMWProject project); |
|
51 } |