Ticket #16 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

build script

Reported by: Slava Ivanyuk Assigned to: Jan-Klaas Kollhof
Priority: normal Milestone: 2.0
Component: jsolait-core Version: 2.0
Severity: major Keywords:
Cc:

Description

It would be nice if I could specify input and output directories for the build script using command line arguments. This would help me automate script building.

Change History

06/28/06 11:12:20 changed by Jan-Klaas Kollhof

  • summary changed from thgb eswhrcp to build script.

07/14/06 10:37:54 changed by Jan-Klaas Kollhof

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.
  • cc deleted.

There are a couple ways of handling this. One would be to write your own .wsf script that includes the jsolait core script and resets the jsolait.baseURI to point to the core script then import the build module and set the paths and run it's main method.

The other option is to run the build script with jsolait.wsf and passing in a command line argument: /script-args:{buildPath:'...', docPath:'...'} /script-args: takes either text or a JSON encoded object which is passed to the module's main method.

The build script now checks if a {docPath:'...', buildPath:'...'} is given(either docPath or buildPath are optional).