It does not work

Following Chuck's advice (java is open) I had a look to the NSBundle class and 
it seems that the getProjectWOFolder method doesn't exist anymore on webobjects 
5.4

I currently rewrite my methods to test if the "build" folder exists before 
rewriting the paths.

Jérémy

  private static File getProjectWOFolder(String aPath) {
          File projectWOFolder = null;
          
          File path = new File(aPath);
          File projectFolder = path.getParentFile();
          File projectFile = new File(projectFolder, ".project");
          if (projectFile.exists()) {
                  File buildFolder = new File(projectFolder, "build");
                  if (!buildFolder.exists()) {
                          buildFolder = new File(projectFolder, "dist");
                  }
                  String projectName = projectFolder.getName();
                  File frameworkFolder = new File(buildFolder, projectName + 
".framework");
                  if (frameworkFolder.exists()) {
                          projectWOFolder = frameworkFolder;
                  }
                  else {
                          File woaFolder = new File(buildFolder, projectName + 
".woa");
                          if (woaFolder.exists()) {
                                  projectWOFolder = woaFolder;
                          }
                  }
          }
          return projectWOFolder;
  }

Le 3 déc. 2011 à 15:33, Henrique Prange a écrit :

> Hi Jérémy,
> 
> The NSProjectBundleEnabled property is probably enabled in the Run 
> Configurations. Try to disable it.
> 
> Cheers,
> 
> Henrique
> 
> Sent from my iPhone
> 
> On 03/12/2011, at 07:35, "Jérémy DE ROYER 
> [INGENCYS]"<[email protected]> wrote:
> 
>> Hello,
>> 
>> Until today, I had "only" two problems with WOLips/WebObjects (and compare 
>> to the advantages they were not that big) :
>> 
>> a) the first one was submitted two days ago : WOLips was freezing while 
>> validating components
>> 
>> b) the second one was, from time to time and especially when he should not, 
>> a sudden increase of Growing number of WOWorkerThreads  (see logs below)
>> 
>> [2011-12-02 14:31:46 GMT+1] <WorkerThread23> 
>> <com.webobjects.appserver._private.WODefaultAdaptor>: Growing number of 
>> WOWorkerThreads to 64
>> [2011-12-02 14:32:52 GMT+1] <WorkerThread55> 
>> <com.webobjects.appserver._private.WODefaultAdaptor>: Growing number of 
>> WOWorkerThreads to 128
>> [2011-12-02 14:47:22 GMT+1] <WorkerThread85> 
>> <com.webobjects.appserver._private.WODefaultAdaptor>: Growing number of 
>> WOWorkerThreads to 256
>> 
>> a) Following the recommendations of Pascal Robert, I moved from WOLips 3.6 
>> to 3.7 to avoid freezing
>> 
>> b) Following my own recommendations (fearing loosing time to make my 
>> applications work again), I moved from webobjects 5.3 to webobjects 5.4.3 to 
>> avoid this ?##@@**$$ Growing number of WOWorkerThreads as I really don't 
>> know where it comes from ; I just guess it's a story of connection between 
>> FrontBase and the number of concurrent sessions
>> 
>> But...
>> 
>> a) If the recommendation of Pascal Robert seems to work -> no freeze for 2 
>> days of development
>> 
>> b) I have now a problem with my projects path.
>> 
>> Before, with webobjects 5.3, my project paths were the build folders
>> 
>> '/Users/ingencys/ProjetsWOLips/IndeXys_v30/build/IndeXys_v30.framework/Resources
>> 
>> And now they are the project folders
>> 
>> '/Users/ingencys/ProjetsWOLips/IndeXys_v30/Resources
>> 
>> And that's a BIG problem for me as I need to analyze the "real" content 
>> using application().resourceManager().pathURL... 
>> 
>> I only use Ajax from Project Wonder so I have included ERJars and 
>> ERExtensions frameworks.
>> 
>> Any idea how to fix it ? It doesn't change anything in deployment 
>> environment but I'm unable to start apps in development environment.
>> 
>> Thank's,
>> 
>> Jérémy  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com
>> 
>> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to