Update:

 I did try project.eclipseProject.buildCommands = [new
BuildCommand('com.example.new.BuildCommand', [:])]

Just in case and that didn't change anything.

On Wed, Aug 31, 2011 at 12:46 PM, Jason Hatton <[email protected]> wrote:

> I am trying to add a couple buildCommands to the .project file by with my
> own Plugin class:
>
>
> class NewPlugin implements Plugin<Project> {
>     def void apply(Project project) {
>              project.eclipseProject.buildCommands = [new
> BuildCommand('com.example.new.BuildCommand')]
>     }
> }
>
> I am getting a SAXParseException: Premature end of file.
>
> I imagine either I am doing something wrong or I have run into a bug.
>
> Thanks for any help,
> Jas
>
>
>

Reply via email to