1 | package de.uka.ipd.sdq.codegen.simucontroller.workflow.jobs; |
2 | |
3 | |
4 | |
5 | import java.io.PrintStream; |
6 | |
7 | import de.uka.ipd.sdq.workflow.IJob; |
8 | import de.uka.ipd.sdq.workflow.pcm.configurations.AbstractCodeGenerationWorkflowRunConfiguration; |
9 | |
10 | public class CreateProtoComMetaDataFilesJob extends AbstractCreateMetaDataFilesJob implements IJob { |
11 | |
12 | public CreateProtoComMetaDataFilesJob(AbstractCodeGenerationWorkflowRunConfiguration configuration) { |
13 | super(); |
14 | |
15 | this.configuration = configuration; |
16 | } |
17 | |
18 | @Override |
19 | protected void writePluginXmlContent(PrintStream out) { |
20 | out.println("<?xml version='1.0'?>"); //$NON-NLS-1$ |
21 | out.println("<plugin>"); //$NON-NLS-1$ |
22 | out.println(" <extension"); //$NON-NLS-1$ |
23 | out.println(" point=\"de.uka.ipd.sdq.simucomframework.controller\">"); //$NON-NLS-1$ |
24 | out.println(" <actionDelegate"); //$NON-NLS-1$ |
25 | out.println(" class=\"main.SimuComControl\""); //$NON-NLS-1$ |
26 | out.println(" id=\"de.uka.ipd.sdq.codegen.simucominstance.actionDelegate\">"); //$NON-NLS-1$ |
27 | out.println(" </actionDelegate>"); //$NON-NLS-1$ |
28 | out.println(" </extension>"); //$NON-NLS-1$ |
29 | out.println("</plugin>"); //$NON-NLS-1$ |
30 | } |
31 | |
32 | @Override |
33 | protected void writeBuildPropertiesContent(PrintStream out) { |
34 | out.println("output.. = bin/"); //$NON-NLS-1$ |
35 | out.println("source.. = src/"); //$NON-NLS-1$ |
36 | out.println("bin.includes = plugin.xml,\\"); //$NON-NLS-1$ |
37 | out.println(" META-INF/,\\"); //$NON-NLS-1$ |
38 | out.println(" ."); //$NON-NLS-1$ |
39 | } |
40 | |
41 | private final static String[] BUNDLES = new String[] { |
42 | "de.uka.ipd.sdq.simucomframework", |
43 | "de.uka.ipd.sdq.simucomframework.simucomstatus", |
44 | "de.uka.ipd.sdq.sensorframework", |
45 | "de.uka.ipd.sdq.simucomframework.variables", |
46 | "org.apache.log4j", |
47 | "org.eclipse.osgi", |
48 | "de.uka.ipd.sdq.scheduler", |
49 | "org.jscience", |
50 | "de.uka.ipd.sdq.probespec.framework", |
51 | "de.uka.ipd.sdq.pipesandfilters", |
52 | "de.uka.ipd.sdq.pipesandfilters.framework", |
53 | |
54 | "de.uka.ipd.sdq.prototype.framework", |
55 | "de.uka.ipd.sdq.resourcestrategies", |
56 | "org.junit4", |
57 | "de.uka.ipd.sdq.stoex", |
58 | "de.uka.ipd.sdq.stoex.analyser", |
59 | "de.uka.ipd.sdq.pcm.stochasticexpressions", |
60 | "de.uka.ipd.sdq.pcm", |
61 | "org.antlr", |
62 | "de.uka.ipd.sdq.sensorframework.storage", |
63 | "de.uka.ipd.sdq.probfunction.math", |
64 | "org.apache.commons.math" |
65 | }; |
66 | |
67 | |
68 | @Override |
69 | protected String[] getRequiredBundles() { |
70 | return BUNDLES; |
71 | } |
72 | |
73 | @Override |
74 | protected String getBundleActivator() { |
75 | return "main.SimuComControl"; |
76 | } |
77 | |
78 | } |