Opened 8 years ago

Closed 7 years ago

#14544 closed defect (wontfix)

build system doesn't work with --writeProfile option

Reported by: helloworld Owned by: Rawld Gill
Priority: high Milestone: future
Component: BuildSystem Version: 1.7.1
Keywords: build system Cc:
Blocked By: Blocking:

Description

After run build.sh with option writeProfile, but no .profile.js was generated. By document, it will generate the profile.js by .html file.

For example:

$./build.sh action=release htmlFiles=../../../index.html --releaseDir ../../../../release --releaseName foo --writeProfile foo.profile.js

output of command is below:


info(107) Package Version: package: dijit; version: 1.7.1 processing profile resource /var/lib/hudson/jobs/phototypeClient/workspace/client/src/js/dijit/dijit.profile.js

info(107) Package Version: package: dojox; version: 1.7.1 processing profile resource /var/lib/hudson/jobs/phototypeClient/workspace/client/src/js/dojox/dojox.profile.js

info(107) Package Version: package: dojo; version: 1.7.1 processing profile resource /var/lib/hudson/jobs/phototypeClient/workspace/client/src/js/dojo/dojo.profile.js

discovering resources...

starting reading resources...

starting processing raw resource content...

starting tokenizing resource...

starting processing resource tokens...

starting parsing resource...

starting processing resource AST...

warn(216) dojo/has plugin resource could not be resolved during build-time. plugin resource id: dojo-firebug?./_firebug/firebug; reference module id: dojo/main

warn(216) dojo/has plugin resource could not be resolved during build-time. plugin resource id: dom-addeventlistener?:./aspect; reference module id: dojo/on

starting executing global optimizations...

starting writing resources...

starting cleaning up...

starting reporting...

Report written to /var/lib/hudson/jobs/phototypeClient/workspace/client/release/foo/build-report.txt

Process finished normally.

errors: 0

warnings: 2

build time: 54.214 seconds


but ./build.sh action=release htmlFiles=../../../index.html --check-args has output.

Change History (3)

comment:1 Changed 8 years ago by Rawld Gill

Status: newassigned

comment:2 Changed 7 years ago by Rawld Gill

Milestone: tbdfuture

Historically, the writeProfile switch only worked for simple pages. We're going to take a different approach to this problem in the future by providing machinery that can be dynamically loaded into a running application and dump out a profile.

comment:3 Changed 7 years ago by Rawld Gill

Resolution: wontfix
Status: assignedclosed

We have not had a big demand for this and the original write profile idea was never fully thought out. We're going to let this one go and do something more interesting in 2.0.

Note: See TracTickets for help on using tickets.