blob: b301e4aba1a78d02d68918d798639b2630b72ccb (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*******************************************************************************
* Copyright (c) 2006, 2009 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.internal.p2.publisher.eclipse;
import org.eclipse.equinox.internal.provisional.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
public class GeneratorBundleInfo extends BundleInfo {
private IInstallableUnit iu = null;
private String specialConfigCommands;
private String specialUnconfigCommands;
public GeneratorBundleInfo(BundleInfo bInfo) {
super.setBundleId(bInfo.getBundleId());
super.setLocation(bInfo.getLocation());
super.setManifest(bInfo.getManifest());
super.setMarkedAsStarted(bInfo.isMarkedAsStarted());
super.setResolved(bInfo.isResolved());
super.setStartLevel(bInfo.getStartLevel());
super.setSymbolicName(bInfo.getSymbolicName());
super.setVersion(bInfo.getVersion());
}
public GeneratorBundleInfo() {
super();
}
public String getSpecialConfigCommands() {
return specialConfigCommands;
}
public void setSpecialConfigCommands(String specialConfigCommands) {
this.specialConfigCommands = specialConfigCommands;
}
public void setIU(IInstallableUnit iu) {
this.iu = iu;
}
public IInstallableUnit getIU() {
return iu;
}
public String getSpecialUnconfigCommands() {
return specialUnconfigCommands;
}
public void setSpecialUnconfigCommands(String specialUnconfigCommands) {
this.specialUnconfigCommands = specialUnconfigCommands;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
public String toString() {
StringBuffer buffer = new StringBuffer();
String superSt = super.toString();
if (superSt.length() > 0)
buffer.append(superSt.substring(0, superSt.length() - 1));
buffer.append(", this.specialConfigCommands="); //$NON-NLS-1$
buffer.append(this.specialConfigCommands);
buffer.append(')');
return buffer.toString();
}
}
|