|
Lines 25-30
Link Here
|
| 25 |
* It contains basic informations like the script, the configurations, and a location |
25 |
* It contains basic informations like the script, the configurations, and a location |
| 26 |
*/ |
26 |
*/ |
| 27 |
public abstract class AbstractScriptGenerator implements IXMLConstants, IPDEBuildConstants, IBuildPropertiesConstants { |
27 |
public abstract class AbstractScriptGenerator implements IXMLConstants, IPDEBuildConstants, IBuildPropertiesConstants { |
|
|
28 |
private static Map antProperties = null; |
| 28 |
protected static boolean embeddedSource = false; |
29 |
protected static boolean embeddedSource = false; |
| 29 |
protected static boolean forceUpdateJarFormat = false; |
30 |
protected static boolean forceUpdateJarFormat = false; |
| 30 |
private static List configInfos; |
31 |
private static List configInfos; |
|
Lines 67-72
Link Here
|
| 67 |
*/ |
68 |
*/ |
| 68 |
public abstract void generate() throws CoreException; |
69 |
public abstract void generate() throws CoreException; |
| 69 |
|
70 |
|
|
|
71 |
public static void setAntProperties(Map properties) { |
| 72 |
antProperties = properties; |
| 73 |
} |
| 74 |
|
| 75 |
public static String getAntProperty(String key) { |
| 76 |
return getAntProperty(key, null); |
| 77 |
} |
| 78 |
|
| 79 |
public static String getAntProperty(String key, String defaultValue) { |
| 80 |
if (antProperties == null || !antProperties.containsKey(key)) |
| 81 |
return defaultValue; |
| 82 |
Object obj = antProperties.get(key); |
| 83 |
return (obj instanceof String) ? (String) obj : null; |
| 84 |
} |
| 85 |
|
| 70 |
public static void setConfigInfo(String spec) throws CoreException { |
86 |
public static void setConfigInfo(String spec) throws CoreException { |
| 71 |
configInfos.clear(); |
87 |
configInfos.clear(); |
| 72 |
String[] configs = Utils.getArrayFromStringWithBlank(spec, "&"); //$NON-NLS-1$ |
88 |
String[] configs = Utils.getArrayFromStringWithBlank(spec, "&"); //$NON-NLS-1$ |