|
|
|
To be more in line with the existing command line options, I would propose this variation.
lzc --media-cache-dir c:/lps/caches/media --script-cache-dir c:/lps/caches/sc --output mycompiledapp.swf <EXISTING_OPTIONS> (--filename is too generic, all the inputs are file names, so --output NAME, or -o NAME as an alternative). Also, --output NAME should only be permitted if there is one input file.
------------------------------------------------------------------------
r8559 | dda | 2008-04-05 08:03:47 -0400 (Sat, 05 Apr 2008) | 38 lines Changed paths: M /openlaszlo/branches/pagan-deities/WEB-INF/lps/server/src/org/openlaszlo/compiler/Main.java Change 20080404-dda-X by dda@lester.local on 2008-04-04 14:22:26 EDT in /Users/dda/laszlo/src/svn/openlaszlo/branches/pagan-deities for http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities Summary: Added lzc command line options for cache directory and output name, other minor command line cleanup. New Features: in lzc, new command line options --script-cache-dir, --media-cache-dir, --output (-o) Bugs Fixed: Technical Reviewer: ptw (pending) QA Reviewer: (pending) Doc Reviewer: (pending) Documentation: Release Notes: Details: compiler/Main.java: Added --script-cache-dir directory Added --media-cache-dir directory Added --output file (or -o file) only permitted with one input file Delaying creating the caches until we know the directory names required some small rearrangement of code (for -mcache). Print message if invalid arg for -mcache. If no input files, issue message. Protect against trailing options like "lzc --output" that would otherwise result in runtime error. Tests: ------------------------------------------------------------------------ Fixed in pagan-deities with this change, and to be fixed in trunk next.
------------------------------------------------------------------------ r8561 | dda | 2008-04-05 11:18:47 -0400 (Sat, 05 Apr 2008) | 24 lines Changed paths: M /openlaszlo/branches/pagan-deities/WEB-INF/lps/server/src/org/openlaszlo/compiler/Main.java Change 20080405-dda-w by dda@lester.local on 2008-04-05 11:16:58 EDT in /Users/dda/laszlo/src/svn/openlaszlo/branches/pagan-deities for http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities Summary: lzc command line change followup: fixed typo New Features: Bugs Fixed: Technical Reviewer: (pending) QA Reviewer: (pending) Doc Reviewer: (pending) Documentation: Release Notes: Details: Fixed typo in usage message per Phil's review. Tests: ------------------------------------------------------------------------ ------------------------------------------------------------------------
r8568 | dda | 2008-04-06 08:50:44 -0400 (Sun, 06 Apr 2008) | 25 lines Changed paths: M /openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/Main.java Change 20080406-dda-M by dda@lester.local on 2008-04-06 08:43:02 EDT in /Users/dda/laszlo/src/svn/openlaszlo/trunk-c for http://svn.openlaszlo.org/openlaszlo/trunk Summary: Added lzc command line options for cache directory and output name, other minor command line cleanup. (merge to trunk) New Features: Bugs Fixed: Technical Reviewer: (pending) QA Reviewer: (pending) Doc Reviewer: (pending) Documentation: Release Notes: Details: Equivalent to previous fix to pagan-deities (see previous comments in http://www.openlaszlo.org/jira/browse/LPP-5571). This time merged to trunk. Tests: ------------------------------------------------------------------------ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lzc --mediacachedir=c:/lps/caches/media --scriptcachedir=c:/lps/caches/sc --filename=mycompiledapp.swf <EXISTING_OPTIONS>
Note that the naming may change slightly to be in-line with other command-line options.