Add the following dependencies to your projects pom (replacing with the
version- currently runs off of 1.1 for flexmojos 3.0.0):

                <dependency>
                        <groupId>org.graniteds</groupId>
                        <artifactId>granite-core</artifactId>
                        <version>${property.org.graniteds.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.graniteds</groupId>
                        <artifactId>granite-gas</artifactId>
                        <version>${property.org.graniteds.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.graniteds</groupId>
                        <artifactId>granite-core-swc</artifactId>
                        <version>${property.org.graniteds.version}</version>
                        <type>swc</type>
                </dependency>

If you would like more control over the generation such as using a specific
version of GraniteDS instead of using the "generate" goal you can run the
ant task directly:

                        <plugin>
                                <artifactId>maven-antrun-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>generate-as</id>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                                <phase>compile</phase>
                                                <configuration>
                                                        <tasks>
                                                                <taskdef
name="gas3" classname="org.granite.generator.ant.AntJavaAs3Task" />
                                                                <gas3
outputdir="${project.build.directory}/classes" 
        
entitytemplate="${basedir}/src/main/template/bean.gsp"
        
entitybasetemplate="${basedir}/gen-templates/beanBase.gsp">
        
<classpath>
        
<pathelement location="${project.build.directory}/classes" />
        
</classpath>
        
<fileset dir="${project.build.directory}/classes">
        
<include name="**/entities/**/*.class" />
        
</fileset>
        
<fileset dir="${basedir}/src/main/resources">
        
<include name="granite-config.xml" />
        
</fileset>
                                                                </gas3>
                                                        </tasks>
                                                </configuration>
                                        </execution>
                                </executions>
                                <dependencies>
                                        <dependency>
        
<groupId>org.graniteds</groupId>
        
<artifactId>granite-gas</artifactId>
        
<version>${property.org.graniteds.version}</version>
                                        </dependency>
                                        <dependency>
        
<groupId>org.graniteds</groupId>
        
<artifactId>granite-generator</artifactId>
        
<version>${property.org.graniteds.version}</version>
                                        </dependency>
                                </dependencies>
                        </plugin>

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Davis Ford
Sent: Saturday, March 28, 2009 6:35 PM
To: [email protected]
Subject: [flex-mojos] Granite DS / Gas


Hi, so I'm building on the "todolist" reference app, and it uses
GraniteDS/Gas to auto-generate the AS from the java source.

I put in my own source (basically a couple DAO classes), and I run
flexmojos:flexbuilder and import the project into eclipse.

However, the *Base.as classes reference a namespace that can't be found.
For whatever reason, I don't see this in the generated AS in the TODO list
app...only from my own code.

    import flash.utils.IDataInput;
    import flash.utils.IDataOutput;
    import flash.utils.IExternalizable;
    import mx.collections.ListCollectionView;
    import org.granite.collections.IPersistentCollection;
    import org.granite.meta;

    use namespace meta;

I get a compiler error on the meta namespace: Namespace was not found or is
not a compile-time constant.

I know this is really a granite ds issue, but the website is down - I can't
get to the docs, and I'm just wondering if anyone else here on the list has
seen this and knows a quick solution.

Regards,
Davis

--
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to