PageRenderTime 36ms CodeModel.GetById 31ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/Console/console/commands/jmk.xml

#
XML | 56 lines | 49 code | 6 blank | 1 comment | 0 complexity | e889b8341d127318ef1dfe6e4bafd93a MD5 | raw file
 1<?xml version="1.0" ?>
 2
 3<!-- This was based around JMK (jmk.sourceforge.net) version 1.3 -->
 4
 5<!DOCTYPE COMMANDO SYSTEM "commando.dtd">
 6
 7<COMMANDO>
 8	<UI>
 9		<ENTRY LABEL="JMK command" VARNAME="command" DEFAULT="jmk" />
10		<FILE_ENTRY LABEL="Make file" VARNAME="makefile"
11			EVAL='buffer.getName().endsWith("jmk") ? buffer.getPath() : "makefile.jmk"' />
12		<ENTRY LABEL="Targets to build" VARNAME="targets" />
13
14		<TOGGLE LABEL="Print debugging information" VARNAME="debug" />
15		<TOGGLE LABEL="Print but don't run comands" VARNAME="norun" />
16		<CHOICE LABEL="Show output in" VARNAME="output">
17			<OPTION LABEL="Console" VALUE="console" />
18			<OPTION LABEL="AWT window" VALUE="awt" />
19			<OPTION LABEL="Swing window" VALUE="swing" />
20		</CHOICE>
21	</UI>
22
23	<COMMANDS>
24		<COMMAND CONFIRM="FALSE" SHELL="System">
25			buf = new StringBuffer(command);
26
27			if(!makefile.equals(""))
28			{
29				buf.append(" -f \"");
30				buf.append(makefile);
31				buf.append('"');
32			}
33
34			if(!targets.equals(""))
35			{
36				buf.append(' ');
37				buf.append(targets);
38			}
39
40			if(debug)
41				buf.append(" -d");
42
43			if(norun)
44				buf.append(" -n");
45
46			if(output.equals("awt"))
47				buf.append(" -w");
48
49			if(output.equals("swing"))
50				buf.append(" -s");
51
52			// return value
53			buf.toString();
54		</COMMAND>
55	</COMMANDS>
56</COMMANDO>