sbwolff / flexwork

Automatically exported from code.google.com/p/flexwork
0 stars 0 forks source link

Build.xml is broken #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've modified the build.properties to point to my flex installation.  I also 
modified build.xml in the following manner:

<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar" 
/>

became:

<taskdef resource="flexTasks.tasks" 
classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />

And:

<include-file name="dock.css" path="${src.dir}/css/dock.css" />

Became:

<include-file name="flexwork.css" path="${src.dir}/css/flexwork.css" />

However, I still get build errors:

Buildfile: c:\opt\flexwork\build\build.xml

swc:
    [compc] Loading configuration file C:\opt\flex_sdk\flex_sdk_3.5.0.12683\frameworks\flex-config.xml
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(3): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconDocumentClass:Class;
    [compc]     ^
    [compc]
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(6): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconPreferenceClass:Class;
    [compc]     ^
    [compc]
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(9): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconMapClass:Class;
    [compc]     ^
    [compc]
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(12): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconJavaClass:Class;
    [compc]     ^
    [compc]
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(15): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconFlexClass:Class;
    [compc]     ^
    [compc]
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(18): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconCVSClass:Class;
    [compc]     ^
    [compc]
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(21): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconPeopleClass:Class;
    [compc]     ^
    [compc]
    [compc] c:\opt\flexwork\src\com\googlecode\flexwork\core\icons.as(24): col: 2 Error: The public attribute can only be used inside a 
package.
    [compc]
    [compc]     public var iconGraphClass:Class;
    [compc]     ^

Could you please post a build file that is able to generate a valid SWC from 
the project?

Thanks!

Original issue reported on code.google.com by jesse.si...@gmail.com on 25 May 2010 at 4:01

GoogleCodeExporter commented 8 years ago
It is better to take FLEX_HOME from environment variables, this way, we won't 
have
to change this file after each synchronization from repository.

Original comment by dekel.ya...@gmail.com on 25 May 2010 at 7:32

GoogleCodeExporter commented 8 years ago
Hi,

I had the same issue as jesse.sightler, I just commented out the problematics 
lines and got the following errors:

----------------------
   [compc] Loading configuration file C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\flex-config.xml
    [compc] Error: Java heap space
    [compc] java.lang.OutOfMemoryError: Java heap space
    [compc]     at java.util.ArrayList.<init>(Unknown Source)
    [compc]     at macromedia.asc.util.ObjectList.<init>(ObjectList.java:30)
    [compc]     at macromedia.asc.util.Namespaces.<init>(Namespaces.java:34)
    [compc]     at macromedia.asc.parser.AttributeListNode.<init>(AttributeListNode.java:47)
    [compc]     at macromedia.asc.parser.NodeFactory.attributeList(NodeFactory.java:214)
    [compc]     at macromedia.asc.parser.NodeFactory.attributeList(NodeFactory.java:201)
    [compc]     at macromedia.abc.AbcParser.attributeList(AbcParser.java:812)
    [compc]     at macromedia.abc.AbcParser.methodTrait(AbcParser.java:697)
    [compc]     at macromedia.abc.AbcParser.methodTrait(AbcParser.java:516)
    [compc]     at macromedia.abc.AbcParser.parseTraits(AbcParser.java:1130)
    [compc]     at macromedia.abc.AbcParser.classTrait(AbcParser.java:1064)
    [compc]     at macromedia.abc.AbcParser.parseTraits(AbcParser.java:1144)
    [compc]     at macromedia.abc.AbcParser.parseScript(AbcParser.java:1197)
    [compc]     at macromedia.abc.AbcParser.parseAbc(AbcParser.java:108)
    [compc]     at flex2.compiler.abc.Compiler.parse1(Compiler.java:179)
    [compc]     at flex2.compiler.API.parse1(API.java:2315)
    [compc]     at flex2.compiler.API.parse1(API.java:2268)
    [compc]     at flex2.compiler.API.batch2(API.java:369)
    [compc]     at flex2.compiler.API.batch(API.java:1117)
    [compc]     at flex2.compiler.API.compile(API.java:1290)
    [compc]     at flex2.compiler.API.compile(API.java:1210)
    [compc]     at flex2.tools.Compc.compc(Compc.java:262)
    [compc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [compc]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [compc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [compc]     at java.lang.reflect.Method.invoke(Unknown Source)
    [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.NativeMethodAccessorImpl.invoke0(Native Method)
    [compc]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [compc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

-------------

Please, could you provide information on how to build a valid SWC. 

It would be a good idea to provide a downloadable swc in the download section 
so people will be able to start using your library easier.

Thx

Original comment by bertran...@gmail.com on 27 Jul 2010 at 6:33

GoogleCodeExporter commented 8 years ago
The java heap space memory is an ant issue. 

Here is a link to resolve it: 
http://ericfickes.com/2008/10/osx-flexbuilder-java-heap-space-error/

So, I passed over the java heap space error, but then I've got many more 
error... 

Original comment by bertran...@gmail.com on 27 Jul 2010 at 6:47

GoogleCodeExporter commented 8 years ago
If you just want a swc, you could also unzip the downloadable SWF and pull out 
the embedded SWC. :)

Original comment by jesse.si...@gmail.com on 27 Jul 2010 at 6:54