History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-5571
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: -- --
Assignee: Unassigned
Reporter: Antun Karlovac
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Compiler options for script cache/media cache and filename

Created: 07/Mar/08 11:59 AM   Updated: 17/Apr/08 05:49 AM
Component/s: Compiler
Affects Version/s: 4.0.5WaffleCone
Fix Version/s: Yodel

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 8,568
Fixed in branch: trunk
Runtime: N/A
Flags: Support
Fix in hand: False


 Description  « Hide
This feature request is to expose the options for specifying the script cache and media cache locations, and the compiled filename through the command-line compiler.

The compiler API, which can be called from code (see here: http://wiki.openlaszlo.org/Compiler_API ) lets you specify the name of the file and the location of the script/media caches used during compilation.

The command-line compiler (which is documented and supported) doesn't have these options.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Antun Karlovac - 04/Apr/08 09:44 AM
Here is a suggested command-line syntax for the new compiler options:

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.

Donald Anderson - 04/Apr/08 10:13 AM
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).

Donald Anderson - 04/Apr/08 10:16 AM
Also, --output NAME should only be permitted if there is one input file.

Donald Anderson - 05/Apr/08 04:19 AM
------------------------------------------------------------------------
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: LPP-5571

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:


------------------------------------------------------------------------


Donald Anderson - 05/Apr/08 07:22 AM
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: LPP-5571

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    Fixed typo in usage message per Phil's review.

Tests:


------------------------------------------------------------------------


Donald Anderson - 06/Apr/08 05:51 AM
------------------------------------------------------------------------
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: LPP-5571

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:


------------------------------------------------------------------------