I've found it convenient to use "fcsh" if I don't have the comfort of
my IDE (IntelliJ) at hand.  I suggest that the flex mojo include a way
to invoke fcsh.  What I've done to invoke it through maven is to use
the maven exec plugin in this way:

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>java</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <mainClass>flex2.tools.SimpleShell</mainClass>
          <includePluginDependencies>true</includePluginDependencies>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>3.1.0-FB</version>
            <type>pom</type>
          </dependency>
        </dependencies>
      </plugin>

Note: the 3.1.0-FB version is for me; you'll want to use your own
version.

What I don't like about this setup is that I then have to remember the
right mxmlc incantation.  I've put this into a comment within my
pom.xml in case I want to remember.  It involves a "-load-config" and
references the report generated with "<configurationReport>".  Ideally
there would be a flex-compiler-mojo goal for fcsh would use the same
configuration.

--~--~---------~--~----~------------~-------~--~----~
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