10-10-2008 04:24 AM
10-10-2008 08:14 AM
To create an application using the BlackBerry JDE, you first must create two files, a Workspace (JDW) and a Project (JDP) file. Since the auto-run on startup is a Project setting, the information you're trying to affect will be inside the JDP file. Both these files are plaintext and can be edited with a simple text editor. Or, in your case, created On The Fly.
One of my projects involves doing something along those lines. Because of certain constraints on our application, we have to create a JDP file from three separate pieces: a Prefix (everything up to the list of modules to be compiled), a Suffix (everything after the list of modules to be compiled), and the middle (the list of paths to the modules to be compiled). One of my Ant build targets is a process that creates the JDP file for the main build, and names the file properly - you may need to create a Java-based executable to do the job, but Java's good for that. The Ant RAPC task references the JDW file, which references the JDP file, so make sure that the JDP file you create matches the name and location of the one in the JDW file. Oh, and your JDP-creation task should probably delete any prior version of the JDP file, to make absolutely sure that a new one is being created. Sorry, I'm just paranoid. It comes with age.
I believe the line in the JDP file you're looking for starts with "RunOnStartup". To be sure, you should create two test projects, one with auto-run set to true, the other with it set to false, and check the differences in the JDP files that get created.