0 Replies Latest reply on Jul 31, 2009 4:35 AM by idyoshin

    Flex ant task 3.3.0 bug ?

    idyoshin

      Good day community,

       

      can someone help me with this :

       

      I have the following target in mine build:

       

          <target name="compile.flex.library" depends="generate.as3">
      
              <fileset id="sources" dir="${flexlibrary.dir}">
                  <include name="**/*.as"/>
              </fileset>
      
              <pathconvert property="classes" pathsep=" " refid="sources">
                  <chainedmapper>
                      <globmapper from="${flexlibrary.dir}/*" to="*"/>
                      <mapper type="package" from="*.as" to="*"/>
                  </chainedmapper>
              </pathconvert>
      
              <echo message="classes is set to = ${classes}"/>
      
              <compc include-classes="${classes}"
                     output="${build.dir}/flex-lib/uniqa-flex-lib.swc"
                     debug="true" 
                     static-link-runtime-shared-libraries="true">
      
                  <include-libraries dir="${build.dir}/flex-lib" append="true">
                      <include name="granite-essentials.swc"/>
                      <include name="granite.swc"/>
                  </include-libraries>
      
                  <source-path path-element="${flexlibrary.dir}"/>
      
                  <!-- Standard annotations -->
                  <keep-as3-metadata name="Bindable"/>
                  <keep-as3-metadata name="Managed"/>
                  <keep-as3-metadata name="ChangeEvent"/>
                  <keep-as3-metadata name="NonCommittingChangeEvent"/>
                  <keep-as3-metadata name="Transient"/>
      
                  <!-- Tide annotations -->
                  <keep-as3-metadata name="Version"/>
                  <keep-as3-metadata name="Name"/>
                  <keep-as3-metadata name="In"/>
                  <keep-as3-metadata name="Out"/>
                  <keep-as3-metadata name="Observer"/>
                  <keep-as3-metadata name="Destroy"/>
                  <keep-as3-metadata name="Event"/>
              </compc>
      
      
          </target>
      

       

      And this compiles well using Flex 3.4.0.6955   But doesn't works with Flex 3.3.0.4852 with the following error:

       

       

       

      compile.flex.library:
           [echo] classes is set to = com.uniqa.lexspring.client.persistence.common.AbstractEntity com.uniqa.lexspring.client.persistence.common.AbstractEntityBase com.uniqa.lexspring.client.persistence.entity.uniqa.DefaultSprObject com.uniqa.lexspring.client.persistence.entity.uniqa.DefaultSprObjectBase com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprAddressType com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprAddressTypeBase com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprContactType com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprContactTypeBase com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprGrajdanstv com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprGrajdanstvBase com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprObrazov com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprObrazovBase com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprPol com.uniqa.lexspring.client.persistence.entity.uniqa.common.SprPolBase com.uniqa.lexspring.client.persistence.entity.uniqa.geography.SprGeoTypes com.uniqa.lexspring.client.persistence.entity.uniqa.geography.SprGeoTypesBase com.uniqa.lexspring.client.persistence.entity.uniqa.geography.SprGeography com.uniqa.lexspring.client.persistence.entity.uniqa.geography.SprGeographyBase com.uniqa.lexspring.client.persistence.entity.users.Role com.uniqa.lexspring.client.persistence.entity.users.RoleBase com.uniqa.lexspring.client.persistence.entity.users.User com.uniqa.lexspring.client.persistence.entity.users.UserBase windowing.RegisterMenuEvent windowing.WindowingEvent
          [compc] Loading configuration file /home/zipito/develop/flex_sdk_3/frameworks/flex-config.xml
          [compc] Error: class org.apache.xerces.util.XMLAttributesMMImpl$AttributeMMImpl cannot access its superclass org.apache.xerces.util.XMLAttributesImpl$Attribute
          [compc] 
          [compc] java.lang.IllegalAccessError: class org.apache.xerces.util.XMLAttributesMMImpl$AttributeMMImpl cannot access its superclass org.apache.xerces.util.XMLAttributesImpl$Attribute
          [compc]      at java.lang.ClassLoader.defineClass1(Native Method)
          [compc]      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          [compc]      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
          [compc]      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
          [compc]      at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
          [compc]      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
          [compc]      at java.security.AccessController.doPrivileged(Native Method)
          [compc]      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          [compc]      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          [compc]      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          [compc]      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          [compc]      at org.apache.xerces.impl.XMLDocumentFragmentScannerMMImpl.<init>(XMLDocumentFragmentScannerMMImpl.java:105)
          [compc]      at org.apache.xerces.impl.XMLDocumentScannerMMImpl.<init>(XMLDocumentScannerMMImpl.java:258)
          [compc]      at org.apache.xerces.impl.XMLNSDocumentScannerMMImpl.<init>(XMLNSDocumentScannerMMImpl.java:120)
          [compc]      at org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.createDocumentScanner(IntegratedParserConfigurationMMImpl.java:282)
          [compc]      at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
          [compc]      at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
          [compc]      at org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.<init>(IntegratedParserConfigurationMMImpl.java:193)
          [compc]      at org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11ConfigurationMMImpl.java:182)
          [compc]      at org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11ConfigurationMMImpl.java:139)
          [compc]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          [compc]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          [compc]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          [compc]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
          [compc]      at java.lang.Class.newInstance0(Class.java:355)
          [compc]      at java.lang.Class.newInstance(Class.java:308)
          [compc]      at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
          [compc]      at org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source)
          [compc]      at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
          [compc]      at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
          [compc]      at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
          [compc]      at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
          [compc]      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
          [compc]      at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
          [compc]      at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
          [compc]      at flex2.compiler.config.FileConfigurator.load(FileConfigurator.java:113)
          [compc]      at flex2.tools.Compiler.processConfiguration(Compiler.java:610)
          [compc]      at flex2.tools.Compiler.processConfiguration(Compiler.java:526)
          [compc]      at flex2.tools.Compc.compc(Compc.java:74)
          [compc]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [compc]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [compc]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [compc]      at java.lang.reflect.Method.invoke(Method.java:597)
          [compc]      at flex.ant.FlexTask.executeInProcess(FlexTask.java:283)
          [compc]      at flex.ant.FlexTask.execute(FlexTask.java:225)
          [compc]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
          [compc]      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
          [compc]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [compc]      at java.lang.reflect.Method.invoke(Method.java:597)
          [compc]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
          [compc]      at org.apache.tools.ant.Task.perform(Task.java:348)
          [compc]      at org.apache.tools.ant.Target.execute(Target.java:357)
          [compc]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
          [compc]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
          [compc]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
          [compc]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
          [compc]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
          [compc]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
          [compc]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
          [compc]      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
          [compc]      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      
      

      Maybe I have a huge problems with mine flex configuration or I've missed something.

       

       

      Best regards,

      Ilya Dyoshin