Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
biggerCC
Posts: 270
Registered: ‎12-13-2010
My Device: PlayBook 16GB, BB10 Dev Alpha

bbwp fails to pack

 

[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating WebWorks archive
[INFO]                  Parsing config.xml
[WARNING]               Failed to find a <feature> element
[INFO]                  Populating application source
[INFO]                  Compiling WebWorks application
[INFO]                  Packaging the bar file
Die Befehlszeile ist zu lang.
[INFO]                  Bar packaging complete
[INFO]                  WebWorks application packaging complete

The line "Die Befehlszeile ist zu lang" means "command line too long" (too many arguments), but I indeed need to pack a few hundret files into the WebWorks application.

 

bbwp won't output any .bar file for this project.

 

 

Any ideas?

- - -
My approved apps @ App World
Developer
kemasD
Posts: 37
Registered: ‎01-18-2011
My Device: Huron 8800

Re: bbwp fails to pack

Well, I have the exact same problem.. it said "command line too long."

 

I have 3.9 MB to pack, it has about 100+ image files (i'm creating offline reference app for playbook).

 

Any workaround for this? This is my last step before submission, and this issue tackles my pace..

Developer
biggerCC
Posts: 270
Registered: ‎12-13-2010
My Device: PlayBook 16GB, BB10 Dev Alpha

Re: bbwp fails to pack

Did you already open a file in the bug tracking system?

- - -
My approved apps @ App World
Developer
kemasD
Posts: 37
Registered: ‎01-18-2011
My Device: Huron 8800

Re: bbwp fails to pack

Not yet, haven't submit my issue to the bug tracker..

Developer
biggerCC
Posts: 270
Registered: ‎12-13-2010
My Device: PlayBook 16GB, BB10 Dev Alpha

Re: bbwp fails to pack

OK, therefore I just did.

I'll post an update once I get any news.

- - -
My approved apps @ App World
Developer
CliffWiggs
Posts: 35
Registered: ‎01-28-2011
My Device: Not Specified

Re: bbwp fails to pack

FYI - I've seen several people have this issue.  Some have fixed it by putting their project folder right off the root folder of their drive. Some have done it by reducing all their filenames to single characters.

 

In my instance I had several hundred small images (over 400). I reduced this to 100 images by grouping them into larger images (atlasing) and using code to only display the sub-portion I needed.

 

The quickest solution would be to try one of these approaches until an official fix can be released.

Developer
Heiko
Posts: 125
Registered: ‎01-17-2011
My Device: Playbook

Re: bbwp fails to pack

Hi

 

Just a thought ..

 

Can one ADD / APPEND files to a project ... ?

 

Then you could split up the files in 2 or more groups, and add them separately (ie as 2 separate batch commands .. )

 

 

.Heiko

 

 

 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: bbwp fails to pack

Do you have a large hiearchy of files with many different directory levels?  I'm wondering if the compiler is trying to reach a file that ends up having a path longer than the maximum file path length.

 

I believe on NTFS it is 256 characters

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
biggerCC
Posts: 270
Registered: ‎12-13-2010
My Device: PlayBook 16GB, BB10 Dev Alpha

Re: bbwp fails to pack

[ Edited ]

No, there's no large hierarchy for me: no file is deeper than two folders below root. I also renamed my files and folders to be quite short (e.g. d/m/ab.gif), but it wasn't enough and I cannot reduce the count of files without tremendous effort...

 

What I can do indeed is add my data folder manually to the .bar file after it has been created. But I have no clue what side-effects that might have (e.g. signing), especially since these files are not included in the MANIFEST.MF then...

- - -
My approved apps @ App World
Developer
kemasD
Posts: 37
Registered: ‎01-18-2011
My Device: Huron 8800

Re: bbwp fails to pack

I did manually add my files to the .bar and as far as I test, I found no side effect. I think that's the easiest 'hack' to get my app working for now.. because I have about 500+ files in my package.

 

Thank's a lot for the lead : )