Project Pre-Build and Post-Build Unable To Run dir Command

by BlackBerry Development Advisor on ‎11-18-2011 04:30 PM (2,458 Views)

Summary

 

This article applies to the following:

  • BlackBerry® JDE

 

Description

 

Problem

 

"Error while building project" is shown when attempting to build a project which has a pre-build or post-build entry that includes the "dir" command.

  

Cause

 

You cannot call dir from a pre-build or post-build command.

 

Workaround

 

Create a batch file that contains the dir command and use that in the pre-build or post-build entry.