On 8-Jan-09, at 2:27 PM, dnk wrote:

> Hi there... i have a swc library I have been developing for personal
> use. I have thus far been just keeping my classes and components in
> the root.
>
> I used to run my compiler as so:
>
> ./compc -source-path /Users/me/Zend/workspaces/DefaultWorkspace/sgLib/
> -output /Users/me/Desktop/sgLib.swc -include-classes class1 class2
> class3
>
> Now I want to organize everything in packages so that as it grows the
> library is organized. So now I have my classes and components
> organized in folders in my library project.
>
> IE
>
> root  -->sgLib        -->utils         -->class1
> -->components -->class2
> -->class3
>
> Now I am trying to compile and if i use my original CLI compile, i get
> errors like:
>
> Error: could not find source for class [classname].
>
> So this makes sense (as i moved the files into packages).
>
> Now how would i have to midify my CLI compile to include all classes
> in the sgLib package?
>
> Thanks!
>
> DNK
>

Ok, to add to this, I found a reference at:

http://digitalmedia.oreilly.com/pub/a/oreilly/digitalmedia/helpcenter/programmingflex3/chapter20.html?page=8

And it gave me some clarification. But I am still having issues with  
the following error:

Error: could not find source for class sgLib.components:Login.

Now what I have done is shortened the command and created a config.xml.


[sgLib-config.xml]

<flex-config>
   <compiler>
     <source-path>
       <path-element>/Users/me/Zend/workspaces/DefaultWorkspace/sgLib</ 
path-element>
     </source-path>
   </compiler>
   <output>/Users/me/Desktop/sgLib.swc</output>
   <include-classes>
     <class>sgLib.components.Login</class>
     <class>sgLib.components.Upload</class>
     <class>sgLib.utils.Tracer</class>
   </include-classes>
</flex-config>

[command]

cd /Applications/Adobe\ Flex\ Builder\ 3\ Plug-in/sdks/3.1.0/bin/

./compc -load-config+=/Users/me/Desktop/sgLib-config.xml

In my searches around, I found few references to this error. In the  
list archives I found a reference to this error at 
http://tech.groups.yahoo.com/group/flexcoders/message/108412 
.

But in that one it was when moving from flex 2 to 3. And they are  
using ant (which i am not), and their issue was with spaces vs commas  
in the ant task.

But still searching for the answer to the "Error: could not find  
source for class" error....

d




Reply via email to