PageRenderTime 14654ms CodeModel.GetById 14593ms app.highlight 1ms RepoModel.GetById 51ms app.codeStats 0ms

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

#
XML | 68 lines | 54 code | 13 blank | 1 comment | 0 complexity | ad4d8aa8df75315cbf0cefec5323e02b MD5 | raw file
 1<?xml version="1.0" ?>
 2
 3<!-- This was based around Sun javacc 1.3.1. -->
 4
 5<!DOCTYPE COMMANDO SYSTEM "commando.dtd">
 6
 7<COMMANDO>
 8	<UI>
 9		<CAPTION LABEL="Source file(s)">
10
11		<FILE_ENTRY LABEL="Source file(s)" VARNAME="source"
12			EVAL="buffer.getPath()" />
13
14		</CAPTION>
15
16		<CAPTION LABEL="Paths">
17		<DIR_ENTRY LABEL="Output directory" VARNAME="outputpath" />
18		</CAPTION>
19
20		<CAPTION LABEL="Compilation flags">
21
22		<TOGGLE LABEL="STATIC" VARNAME="staticsetting" DEFAULT="TRUE" />
23        
24		<TOGGLE LABEL="DEBUG_PARSER" VARNAME="debug_parser" />
25		<TOGGLE LABEL="DEBUG_LOOKAHEAD" VARNAME="debug_lookahead"  />
26		<TOGGLE LABEL="DEBUG_TOKEN_MANAGER" VARNAME="debug_token_manager"  />
27		<TOGGLE LABEL="IGNORE_CASE" VARNAME="ignore_case"  />
28
29		</CAPTION>
30	</UI>
31
32	<COMMANDS>
33		<COMMAND SHELL="System" CONFIRM="FALSE">
34			buf = new StringBuffer();
35			buf.append("javacc");
36
37			if(!outputpath.equals(""))
38			{
39				buf.append(" -OUTPUT_DIRECTORY=\"");
40				buf.append(outputpath);
41				buf.append('"');
42			}
43
44			
45            buf.append(" -DEBUG_PARSER:");
46            buf.append( debug_parser ? "true" : "false");
47
48            buf.append(" -STATIC:");
49            buf.append( staticsetting ? "true" : "false");
50            
51            buf.append(" -DEBUG_LOOKAHEAD:");
52            buf.append( debug_lookahead ? "true" : "false");
53            
54            buf.append(" -DEBUG_TOKEN_MANAGER:");
55            buf.append(debug_token_manager ? "true" : "false");
56            
57            buf.append(" -IGNORE_CASE:");
58            buf.append(ignore_case ? "true" : "false" );            
59            
60			buf.append(" \"");
61			buf.append(source);
62			buf.append('"');
63
64			// return value
65			buf.toString();
66		</COMMAND>
67	</COMMANDS>
68</COMMANDO>