[GRADLE-16] Write Gradle NetBeans plugin based on MevenIDE Created: 15/Feb/08  Updated: 04/Jan/13  Resolved: 22/Oct/12

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: None

Type: New Feature
Reporter: Steven Devijver Assignee: Unassigned
Resolution: Won't Fix Votes: 8

Attachments: JPEG File NetbeansPlugin.jpg     File build.gradle     Text File messages.log     File script.gradle     File settings.gradle    

 Description   

See this article to get an idea, also check first comment:

http://netbeans.dzone.com/news/maven-magic-netbeans-ide-60



 Comments   
Comment by Attila Kelemen [ 20/Oct/12 ]

This issue can be marked as fixed, since I wrote a NetBeans plugin.

The plugin is available here: https://github.com/kelemen/netbeans-gradle-project or if you only care for the binary, here: http://plugins.netbeans.org/plugin/44510/gradle-support

Comment by Arsene costin [ 21/Oct/12 ]

I think that the equivalent Eclipse plugin for the Netbeans IDE is needed. I have tried your plugin but it does not work for our complex gradle files. My humble opinion is that it is safer to generate project files like the Eclipse plugin.
The best thing you can do is to write a Gradle plugin that resembles the Eclipse plugin for the Netbeans IDE.

Comment by Attila Kelemen [ 21/Oct/12 ]

What do you mean on "does not work"? Can you report an issue here: https://github.com/kelemen/netbeans-gradle-project/issues

If you mean the default ant project for NetBeans, then I highly doubt that it will ever be implemented. NetBeans doesn't really work this way.

Comment by Arsene costin [ 21/Oct/12 ]

I mean that gradle will create the project files and the user will import the porject into the IDE... just like the eclipse plugin

Comment by Attila Kelemen [ 21/Oct/12 ]

NetBeans doesn't have project files like Eclipse or Idea. It can open certain kind of projects. The Ant based one is called the default. You can call these project files but it is really an Ant project.

Comment by Arsene costin [ 21/Oct/12 ]

they create the nbproject folder and the build.xml file..

Comment by Arsene costin [ 21/Oct/12 ]

and there the store all the information regarding the project.....

Comment by Attila Kelemen [ 21/Oct/12 ]

That is the Ant project. I'm unsure that it is really easy to create one without relying on libraries added to the IDE. But I'm not sure, I don't really use it.

Comment by Arsene costin [ 21/Oct/12 ]

it will be nice if you can find a way to generate thowse files /folders

Comment by Attila Kelemen [ 21/Oct/12 ]

I don't know why do you want the Ant project and why do you think that a custom project type is bad. As I said NetBeans doesn't rely on project files internally, anything you can do with the Ant project can be implemented in custom project types. I understand that my plugin does not work for you but I can only help if you report your problem.

Comment by Arsene costin [ 21/Oct/12 ]

Welll.... I can not see the sources in our subrojects...... You will see the attachament (
NetbeansPlugin.jpg) for more info

Comment by Arsene costin [ 21/Oct/12 ]

The EMSYS_FINANCIALS is the master project and the CASH.DEF.ADF.LOV is one of my subprojects..... that I opened form the master :|... And the "dependencies" are also empty

Comment by Attila Kelemen [ 21/Oct/12 ]

Can you share related gradle files (you may censor irrelevant parts of it)? Also can we move this discussion to: https://github.com/kelemen/netbeans-gradle-project/issues

Comment by Arsene costin [ 21/Oct/12 ]

of course..... but these are a little bit more complicated.... I will try to attach them

Comment by Arsene costin [ 21/Oct/12 ]

The script.gradle is the first imported file in the build.gradle... the others imported files contains only dependencies. This is the most important

Comment by Arsene costin [ 21/Oct/12 ]

I have attached them....The script.gradle is the first imported file in the build.gradle. The others imported files contain only dependencies...

Comment by Attila Kelemen [ 21/Oct/12 ]

I have checked the scripts and they do not seem to contain complex code relevant to the plugin (i.e., the complex part seems to be irrelevant).

If I understand the script correctly, you are using the default directory layout for the source files. Can you elaborate on what the lines after "def mapLov=[:];" in script.gradle aim to do? Also can you attach the log file of NetBeans after trying to open the project (From the screenshot, I will assume you are using Win7), the log files should be here C:\Users\<USERNAME>\AppData\Roaming\NetBeans\<NETBEANS-VERSION>\var\log\message.log

The discussion have been moved to: https://github.com/kelemen/netbeans-gradle-project/issues/14

Comment by Arsene costin [ 21/Oct/12 ]

the "def mapLov=[:];" is some internal thing ... you can bypass it if you like

Comment by Szczepan Faber [ 22/Oct/12 ]
Generated at Wed Jun 30 11:19:55 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.