GradleFx/GradleFx — Issue #15: The "package" task should probably be renamed not to use a reserved word
Author: Taytay
Created: 2012-02-08 12:22:34+00:00
State: open

I'm new to Gradle/Groovy/GradleFx, so this might be a misdirected issue based on my ignorance. :)

I was trying to override the "package" task in one of my air projects, but was getting lots of errors because the word "package" is a reserved word. I've customized the plugin to use the name "packageAir" now instead.

so instead of:

```groovy
project.afterEvaluate{

package.doFirst	{
println "This happens before the package task"
}
}

```

I now do:

```groovy
project.afterEvaluate{

packageAir.doFirst	{
println "This happens before the packageAir task"
}
}

```

Incidentally, if anyone else is trying to override that task in an air project, you HAVE to put it in afterEvaluate, because that package task doesn't get added to your project unless you have an AIR project. Man, that took me HOURS to figure out. That's probably worth a documentation bug. ;)