[英]Compiling CSS to SWF server side Java, What is the best practice?
My project allows users to create custom css for our flex app. 我的项目允许用户为我们的Flex应用程序创建自定义CSS。
In regards to compiling the CSS into SWFs on the server side: 关于将CSS编译到服务器端的SWF中:
Should I use the flex2.compiler.css.Compiler class in mxmlc-3.5.0.12683.jar? 我应该在mxmlc-3.5.0.12683.jar中使用flex2.compiler.css.Compiler类吗?
Or 要么
Should I invoke mxmlc from Runtime.getRuntime().exec()? 我应该从Runtime.getRuntime()。exec()调用mxmlc吗?
The css.Compiler class is not very well documented. css.Compiler类没有很好的文档说明。 Does anyone have any examples that use this?
有人有使用此的示例吗?
For the Runtime exec method, what is the best way to package mxmlc into the maven build so its available to the server at runtime? 对于Runtime exec方法,将mxmlc打包到maven构建中以便在运行时可供服务器使用的最佳方法是什么?
I think it is so rare that people try to compile Flex Apps on the fly at the server, that there probably isn't a best practice. 我认为人们很少尝试在服务器上即时编译Flex Apps,因此可能没有最佳实践。 My intuition is that using the jar file makes more sense if your server side code is Java.
我的直觉是,如果您的服务器端代码是Java,则使用jar文件更有意义。
But, if documentation is a problem the Flex command line compiler arguments are well documented and may save you a lot of time. 但是,如果文档存在问题,则Flex命令行编译器参数已得到了很好的文档说明,可以节省大量时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.