Eclipse plugin does not add entries for C/C++ projects

I had to take my issue from the old forum, since it is closed:
http://discuss.gradle.org/t/eclipse-plugin-missing-some-entries-for-c-c-projects/919

I expect running gradle eclipse would generate a project file with some C/C++ builSpec and natures
Perhaps something like this:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>myLib</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.wst.common.project.facet.core.builder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
                <buildCommand>
                        <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
                        <triggers>clean,full,incremental,</triggers>
                        <arguments>
                        </arguments>
                </buildCommand>
                <buildCommand>
                        <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
                        <triggers>full,incremental,</triggers>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.cdt.core.cnature</nature>
                <nature>org.eclipse.cdt.core.ccnature</nature>
                <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
                <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
                <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        </natures>
</projectDescription>

Instead this is all I get:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>myLib</name>
        <comment/>
        <projects/>
        <natures/>
        <buildSpec/>
        <linkedResources/>
</projectDescription>

Also I do not get any .cproject file, just one .project

1 Like

There’s an old ‘eclipse-cdt’ plugin that should add some of those things. It was very basic when it was added (3 years ago?) and hasn’t kept up with some of the native changes we’ve made since. It adds a cdt task.

1 Like

Is this still the case? Can I still use this plugin? If not, in your opinion what is the best solution forward?

I’m currently using version 2.7.