0 Replies Latest reply on Feb 12, 2009 10:07 AM by (Paul_Reilly)

    [svn] 4939: * Some changes necessary to get the improved SWC cache working in Flex

      Revision: 4939
      Author: preilly@adobe.com
      Date: 2009-02-12 10:07:37 -0800 (Thu, 12 Feb 2009)

      Log Message:
      -----------
      * Some changes necessary to get the improved SWC cache working in Flex
      Builder 4 and some potential bug fixes.

      tests Passed: checkintests

      Needs QA: YES

      Needs DOC: NO

      Bug fixes: SDK-18905

      API Change: NO

      Reviewer: Pete F.

      Code-level description of changes:

      tools/oem/Library.java

      Modified link() to pass the file name into SwcDynamicArchive's
      constructor even when using an OuputStream, so the file name can
      be used as a cache key.

      Added refreshLastModified() so Flex Builder can update the
      timestamp in the SWC cache after writing it's OutputStream to the
      SWC file.

      tools/oem/Builder.java

      Added setSwcCache().

      tools/PreLink.java

      Modified postRun() to use the value returned from
      ResourceContainer.addResource() instead of the value passed in,
      because it could be different. This might fix SDK-18493 and
      SDK-17840.

      compiler/PersistenceStore.java

      Modified readCompilationUnit() to also use the value returned from
      ResourceContainer.addResource().

      compiler/CompilerAPI.java

      Modified updateDependentLastModifiedTimes() to check for a null
      CompilationUnit.

      compiler/swc/SwcDynamicArchive.java

      Added path param to OutputStream based constructor to be used as a
      cache key.

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-18905
      http://bugs.adobe.com/jira/browse/SDK-18493
      http://bugs.adobe.com/jira/browse/SDK-17840

      Modified Paths:
      --------------
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/PersistenceStore.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcDynamicArchive.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcGroup.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Builder.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/LibraryCache.java