Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2779 closed defect (fixed)

Build fails when parent directory tree contains "src"

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

In buildUtil.js, buildUtil.getBundlePartsFromFileName does some munging to derive the package name from the file name. If the prefixPath (e.g., 'src' in the case of dojo) occurs previously in the full path, then the package name is incorrectly resolved.

I found that

        var prefixStartIndex = srcFileName.lastIndexOf(prefixPath);

instead of

        var prefixStartIndex = srcFileName.indexOf(prefixPath);

seems far less likely to cause such a problem.

Change History (2)

comment:1 Changed 12 years ago by James Burke

Milestone: 0.4.2
Resolution: fixed
Status: newclosed

This is fixed in 0.4.2

comment:2 Changed 12 years ago by (none)

Milestone: 0.4.2

Milestone 0.4.2 deleted

Note: See TracTickets for help on using tickets.