Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13301 closed defect (fixed)

build.sh "help text" not very helpful anymore

Reported by: Karl Tiedt Owned by: Rawld Gill
Priority: high Milestone: 1.7
Component: BuildSystem Version: 1.7.0b1
Keywords: build.sh Cc:
Blocked By: Blocking:

Description

a few things I noticed when trying to make a build from a trunk checkout

1) build.sh dumps to node or java right away, node did not appear to dump help text completely (I had to run java by hand to get build options listed because you cant tell build.sh to use one or the other (node vs java)

2) the help text says you can use --[option] [value] which does not work for example: "build.sh --profile profileName" will say no profile specified...

Can we please get this back on par with the level of clarity of previous build tools?

Change History (11)

comment:1 Changed 8 years ago by Rawld Gill

Status: newassigned

comment:2 Changed 8 years ago by Rawld Gill

Milestone: tbd1.7

comment:3 Changed 8 years ago by liucougar

In [26039]:

refs #13301: fix sh compatibility issue so it can run in FreeBSD

comment:4 Changed 8 years ago by ben hockey

In [26040]:

small tweak to get build.sh working under FreeBSD. refs #13301

comment:5 Changed 8 years ago by Kenneth G. Franqueiro

Priority: normalhigh
severity: normalblocker

comment:6 Changed 8 years ago by Rawld Gill

Resolution: fixed
Status: assignedclosed

In [26684]:

improved help text; fixes #13301; !strict

comment:7 Changed 8 years ago by ben hockey

Resolution: fixed
Status: closedreopened

this is still broken - help text is cut off when running ./build.sh --help (let me know if you want the output of this)

Version 0, edited 8 years ago by ben hockey (next)

comment:8 in reply to:  7 Changed 8 years ago by Rawld Gill

Replying to neonstalwart:

this is still broken - help text is cut off when running ./build.sh --help (let me know if you want the output of this)

EDIT: this is using node

I just tried this again, and it's working perfectly on my machine (using node also). Can you attach output).

comment:9 Changed 8 years ago by ben hockey

ben@dev04 ~/svn/dojo/util/buildscripts » ./build.sh --help
builder wrapper USAGE:
 ./build.sh [bin=node|java] BUILDER_OPTIONS
              By default, if first argument does not start with "bin=",
               node will be used if available.
running under node.js
Read, process, and write a set of resources as constructed by a profile.

Usage with node.js:
node path/to/dojo/dojo.js load=build [options]

Usage with java:
java -Xms256m -Xmx256m -jar path/to/util/shrinksafe/js.jar path/to/dojo/dojo.js baseUrl=path/to/dojo load=build [options]

Usage with the build script on non-windows:
IMPORTANT: the util/buildscripts directory must be the current working directory
./build.sh [options]

Usage with the build script on windows:
IMPORTANT: the util/buildscripts directory must be the current working directory
build.bat [options]

IMPORTANT:
This program assumes the default directory structure provided with the standard dojo source release.

IMPORTANT:
When using v1.6- profiles, this program assumes the current working directory is utils/buildscripts.

Options:
-p <filename>
--profile <filename>      read profile for file

-p <profile>
--profile <profile>       read profile from profile in util/buildscripts/profiles

--package <path>          read profile from package.json located in the directory path

-r
--require <filename>
--dojoConfig              read profile from loader configuration

--htmlFiles <file-list>   deduce profile from HTML file(s); file-list is a comma-separated list of filenames

--htmlDir <path>          deduce profile from all HTML files in directory at path

--check                   print computed profile

--debug-check             print computed profile, including internal structures

--release                 process the build control script(s) and/or profile(s) and transform sources into a release

--releaseDir <path>       base directory for build output

--releaseName <string>    path segment to append to releaseDir that gives base directory for build output

--writeProfile <filename> write the processed profile to filename

--version <id>            stamp build with id; defaults to "0.0.0.dev"

--copyTests               Copy test files and the DOH package.

--mi%                                                                                                                   ben@dev04 ~/svn/dojo/util/buildscripts »

comment:10 Changed 8 years ago by Rawld Gill

Resolution: fixed
Status: reopenedclosed

In [26717]:

fixed build app under node to pump stdout before exiting; removed cruft; fixes #13301; !strict

comment:11 Changed 8 years ago by Rawld Gill

In [26718]:

made all normal messaging via message.log; refs #13301; !strict

Note: See TracTickets for help on using tickets.