]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/generateDocumentationLexer.xml
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / generateDocumentationLexer.xml
diff --git a/bundles/org.simantics.scl.compiler/generateDocumentationLexer.xml b/bundles/org.simantics.scl.compiler/generateDocumentationLexer.xml
new file mode 100644 (file)
index 0000000..50592a9
--- /dev/null
@@ -0,0 +1,18 @@
+<project>\r
+\r
+       <taskdef name="jflex" classname="JFlex.anttask.JFlexTask" classpath="tools/JFlex.jar"/>\r
+       \r
+       <property name="package" location="src/org/simantics/scl/compiler/parsing/documentation"/>\r
+       \r
+       <jflex\r
+           file="${package}/DocumentationLexer.flex"\r
+           destdir="src/"\r
+       />\r
+       \r
+       <replaceregexp file="${package}/DocumentationLexer.java"\r
+               match="^public class DocumentationLexer.flex"\r
+               replace="@SuppressWarnings(&quot;all&quot;) public class DocumentationLexer"\r
+               flags="m"\r
+               />\r
+       \r
+</project>
\ No newline at end of file