diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-23 23:34:00 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-11-23 23:37:52 +0200 |
commit | 891fc210316ba4f0bc67cc0f8a9d9d10f4f2fdef (patch) | |
tree | 6ba9ff65958e2b9c5a34d85da35416da3fec0009 /theme-compiler/build.xml | |
parent | 4b6ef93fa96fc175854294f5b02ab8f333e30e1a (diff) | |
download | vaadin-framework-891fc210316ba4f0bc67cc0f8a9d9d10f4f2fdef.tar.gz vaadin-framework-891fc210316ba4f0bc67cc0f8a9d9d10f4f2fdef.zip |
Compile parser during build (#9283)
Change-Id: If47b459ff3f26d991a9b39e7fee1469b7bdd09e3
Diffstat (limited to 'theme-compiler/build.xml')
-rw-r--r-- | theme-compiler/build.xml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/theme-compiler/build.xml b/theme-compiler/build.xml index 86c73d1499..48ee9fdc73 100644 --- a/theme-compiler/build.xml +++ b/theme-compiler/build.xml @@ -12,15 +12,24 @@ <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"> |