Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2ebe1821097b76ee31427bb094e48bdb06587021 (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
<?xml version="1.0" encoding="UTF-8"?>
<project name="tokenizer" default="HeadTokenizer">
	
	<!-- Note: for Eclipse env., the JFlex 1.4 jar should be added 
	to the ant global entries  -->
	<taskdef classname="JFlex.anttask.JFlexTask" name="jflex" />
		
	<target name="init">
		<property name="src.file" value="JSPHeadTokenizer.jFlex"/>			
		<property name="src.dir" value="HeadParsers"/>
		<property name="dest.dir" value="../src"/>
		<!-- touch causes to always build, remove for real 'make' behavior -->
		<touch file="${src.dir}/${src.file}"/>
					
	</target>

	<target name="HeadTokenizer" depends="init">
		<antcall target="run-jflex"/>
	</target>

	<target name="run-jflex" depends="init">
		<jflex
	    	file="${src.dir}/${src.file}"
	    	destdir="${dest.dir}"
			verbose="true"
			nobak="true"
			time="on"
	    />
	</target>
	

</project>

Back to the top