You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nklein <no...@gmail.com> on 2009/12/14 19:19:28 UTC

Getting Flex to respond like Java to the package argument

Files that end with a java suffix respond to the package argument by 

[DEBUG] Processing fileset src/main/java (Filtered-Packaged) [**/*.java -- ]

This results in their directory layout being updated to reflect the value of
the package argument.

It appears that all other file suffixes are either Filtered-flat or
Copied-Flat:

I was hoping that setting <sourceDirectory> to src/main/flex would be
enough, but apparently Maven still doesn't know how to handle Flex
ActionScript files since its just copying them

[DEBUG] Copying fileset src/main/flex (Copied-Flat) [**/*.jpg, **/*.db,
**/*.TTF, **/*.png, **/*.flv, **/*.otf, **/*.mxml, **/*.as, **/*.swf,
**/*.css -- ]

How can I signal to Maven that it should handle Flex ActionScript "as" files
in the same manner as Java files, so they are Filtered-Packaged.

I'm hoping there is a single option and that I won't need to explicitly
update the directory layout using filesets as this would be a more elegant
solution.

thanks, Norman
-- 
View this message in context: http://old.nabble.com/Getting-Flex-to-respond-like-Java-to-the-package-argument-tp26779943p26779943.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: filteredExtensions doesn't work

Posted by nklein <no...@gmail.com>.

By default, Maven only recognizes a limited set of languages. When a
language is recognized then Maven performs filtering on files ending in the
language suffix (such as *.java). This example demonstrates the filtering
difference between Java (recognized) and ActionScript (unrecognized) files:

[DEBUG] Processing fileset src/main/java (Filtered-Packaged) [**/*.java -- ]

[DEBUG] Copying fileset src/main/flex (Copied-Flat) [**/*.jpg, **/*.db,
**/*.TTF, **/*.png, **/*.flv, **/*.otf, **/*.mxml, **/*.as, **/*.swf,
**/*.css -- ]

According to
http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-with-property-file.html,
there are two arguments (archetypeLanguage and archetypeFilteredExtensions)
that need to be set to enable the recognization of a language. Although they
describe specifying these arguments within a properties file, it also states
that these arguments can also be specified on the command line like this:

$ mvn -X archetype:generate -DarchetypeCatalog=local 
                                         -DarchetypeLanguage=actionscript 
                                         -DarchetypeFilteredExtensions=as

Unfortunately this still results in *.as files only being copied and not
processed.

I have also tried all of the different permutations, such as creating and
specifying the values within a project file, but still haven't managed to
get ActionScript as files to be filtered by Maven.

Thanks, Norman 


-- 
View this message in context: http://old.nabble.com/filteredExtensions-doesn%27t-work-tp26779943p26779981.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org