]> source.dussan.org Git - vaadin-framework.git/commitdiff
Compile parser during build (#9283) 76/376/1
authorArtur Signell <artur@vaadin.com>
Fri, 23 Nov 2012 21:34:00 +0000 (23:34 +0200)
committerArtur Signell <artur@vaadin.com>
Fri, 23 Nov 2012 21:37:52 +0000 (23:37 +0200)
Change-Id: If47b459ff3f26d991a9b39e7fee1469b7bdd09e3

theme-compiler/build.xml

index 86c73d14999dbc255b7b29de7f46179225b44753..48ee9fdc7301ed25d08434d39fa48eeed90adbd7 100644 (file)
        <property name="module.name" value="vaadin-theme-compiler" />
        <property name="module.symbolic" value="com.vaadin.theme-compiler" />
        <property name="result.dir" value="result" />
+       <property name="sass.parser.jj" location="src/com/vaadin/sass/internal/parser/Parser.jj" />
        <path id="classpath.compile.custom">
        </path>
        <path id="classpath.tests.custom" />
 
        <!--<property name="classes.exclude" value="com/vaadin/buildhelpers/**" />-->
 
-       <target name="jar">
+       <target name="parser">
+               <!-- Copy javacc-5.0.jar to ${result.path}/javacc/javacc.jar as the javacc task requires the jar to be named javacc.jar -->
+               <property name="javacc.home" location="${result.path}/javacc" />
+               <ivy:retrieve organisation="net.java.dev.javacc" module="javacc" revision="5.0" inline="true" type="jar" pattern="${javacc.home}/[artifact].[ext]" />
+               <javacc target="${sass.parser.jj}" javacchome="${javacc.home}">
+               </javacc>
+       </target>
+
+       <target name="jar" depends="parser">
                <antcall target="common.jar">
-                       <reference torefid="extra.jar.includes" refid="empty.reference" />
+                       <reference torefid="extra.jar.includes" refid="empty.reference" />
                </antcall>
        </target>
        <target name="publish-local" depends="jar">