Hi Rene,
   Sure thing.

Here's the groovy file:
[source]
package org.gradle.launcher
class InstallPluginAction implements Runnable {
    void run() {
        println "InstallPluginAction.run called"
    }
}
[/source]

I should also note that I was creating an instance of the
InstallPluginAction in CommandLineActionFactory:
[source]
        if (commandLine.hasOption(INSTALL_PLUGIN)) {
            return new ActionAdapter(new InstallPluginAction());
        }
[/source]

The error is:
[quote]
:launcher:compileJava
/Users/elberry/development/projects/gradle/subprojects/launcher/src/main/java/org/gradle/launcher/CommandLineActionFactory.java:117:
cannot find symbol
symbol  : class InstallPluginAction
location: class org.gradle.launcher.CommandLineActionFactory
            return new ActionAdapter(new InstallPluginAction());
                                         ^
Note:
/Users/elberry/development/projects/gradle/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/LoggingBridgingGradleLauncherActionExecuter.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:compileJava'.
Cause: Compile failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.

BUILD FAILED

Total time: 1 mins 57.657 secs
[/quote]

The package is the same, and IntelliJ doesn't show it as an error, so
assuming the groovy file was stubbed out properly it should work right?

On Wed, May 4, 2011 at 11:42 AM, Rene Groeschke <[email protected]> wrote:

>  Hi Eric,
> can you post the stacktrace of failing build and the tiny groovy file?
> regards,
> René
>
> Am 04.05.11 20:31, schrieb Eric Berry:
>
> Hello,
>    I'm trying to build Gradle from source but I've run in to a little issue
> after adding a Groovy class to the launcher subproject.
>
> I followed the instructions here:
> http://gradle.org/build.html
>
> Which upon clone from git, works fine.
>
> However, I added just a small groovy class to the launcher project under
> src/main/groovy. Now it will no longer build or install.
>
> I see this in the output when I remove my groovy class:
> [quote]
> :launcher:compileJava
> :launcher:compileGroovy UP-TO-DATE
> :launcher:processResources UP-TO-DATE
> :launcher:classes
> [/quote]
>
> But adding a groovy class to launcher/src/main/groovy causes compileJava to
> fail.
>
> --
> Learn from the past. Live in the present. Plan for the future.
> Blog: http://eric-berry.blogspot.com
> jEdit <http://www.jedit.org> - Programmer's Text Editor
> Bazaar <http://bazaar.canonical.com> - Version Control for Humans
>
>
>
> --
> -----------------------
> regards René
>
> rene groeschkehttp://www.breskeby.com
> @breskeby
>
>


-- 
Learn from the past. Live in the present. Plan for the future.
Blog: http://eric-berry.blogspot.com
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans

Reply via email to