简体   繁体   English

将CSS编译到SWF服务器端Java,最佳实践是什么?

[英]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.

相关问题 客户端服务器最佳实践 java - Client server best practice java 从客户端到实现线程事件的服务器端应用程序调用方法的最佳实践是什么? - What is the best practice to call a method from client to a server side application that implements a thread event? 服务器端Java应用程序代码未编译-为什么? - Server side Java application code not compiling - why? 读/写java服务器套接字的最佳实践 - Best practice for reading / writing to a java server socket 什么是在Java中使用锁(面试)的最佳实践? - What is best Practice to use Locks in Java (Interview)? 构造函数中逻辑的最佳实践是什么? (爪哇) - What is the best practice for logic inside a constructor? (Java) 什么是Java最佳实践来处理枚举 - what is Java best practice to handle enum's 防止Java中出现偶发的ConcurrentModificationException的最佳实践是什么? - What is the best practice to prevent a sporadic ConcurrentModificationException in Java? 将XML转换为Java对象的最佳做法是什么? - What is best practice in converting XML to Java object? Java:MVC中的表单提交:最佳实践是什么? - Java: Form Submission in MVC : What is the best practice?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM