views:

78

answers:

1

Right now I am using an apply task inside of an antrun execution.

<plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <version>1.4</version>
    <executions>
        <execution>
            <id>compile-default-theme-css</id>
            <phase>compile</phase>
            <configuration>
                <tasks>
                    <apply executable="${mxmlc.path}" dir="${basedir}/cssdir/">
                        <srcfile/>
                        <fileset dir="${basedir}/cssdir/" includes="*.css"/>
                    </apply>
                </tasks>
            </configuration>
            <goals>
                <goal>run</goal>
            </goals>
        </execution>
    </executions>
</plugin>

How do I do this in pure maven? Without the antrun plugin?

+1  A: 

Take a look at:

http://groups.google.com/group/flex-mojos/browse_thread/thread/8433474bb095fb7f/548182593cddb286

That would require explicitly naming each css file, which is undesirable. I want it to compile all the css files in a given directory without having to specify them individually. Creating a separate pom and project for each css file is even less practical. I am looking for something at least as simple or simpler than the antrun task I provided.
DataSurfer