Execute Ant for web-applications in Intellij Idea - ant

When I trying to run Ant — he show me an alert with “Project JDK not specified”. How I can use Ant in Intellij Idea for web-applications without JDK?

Open the Project Structure dialog (press Command + Semicolon shortcut). Navigate to the SDKs in the left pane. In the middle pane, click the + (add), and select "JDK". Make sure you have the JDK installed (available from the Oracle website), and navigate to the root of that location. Click OK. Then open the Ant Build pane on the right side. Right click the build and select Properties. Go to the Execution tab and from the "Run under JDK" drop-down, select the JDK version that you set up prior.

You still need JDK configured for Ant to work, either in the Project or in the Build file properties dialog (you can set custom JDK just for Ant).

Related

Error Conflict with dependency in android studio

I am getting this error in android studio when i try to create a new project. Please help me step to step to deal with it. I am completely new to this IDE. ERROR SCREENSHOT
Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
I found the solution myself, I'd like to leave it here.
Open android studio.
On the left side that project menu (files explorer type)
there will be a option "gradle scripts" clicking on it opens the drop down menu.
There will be a file build.gradle (Module:app)
Double click it, It would open in android studio.
Change to the following in settings:
compileSdkVersion 27
targetSdkVersion 27
implementation 'com.android.support:appcompat-v7:27.1.1'
Sync the files in gradle. You're done.
Android studio would download the files if required.

Where do I get build icon in Eclipse? I want to execute maven job in jenkins from Eclipse IDE

I need to find the above icon in my Eclipse IDE. I am using Eclipse neon 3.
In Eclipse you dont have a build icon. You should right click on the project and then click Export.. and you can choose the type of Export (.war file, .jar file, it depends)

IntelliJ 13 New Project No Grails option

I'd like to create a new Grails project in IntelliJ 13.
I have IntelliJ 13.
I have Grails.
I do not see a Grails option in the New Project Dialog.
How do I configure IntelliJ 13 so that the New Project Dialog has a Grails option?
When I select Groovy there's an error about a missing library. Grails was installed under my home directory in ~/.grails by GVM.
Please take a look in which edition of IntelliJ you are using.
The Community edition supports Groovy, but don't support Grails;
the Ultimate edition supports Grails and a lot of Frameworks
You are selecting a wrong(java) option , you have to select groovy in left menu bar and then you will be shown grails option.
My IntelliJ New Project Dialog now has a Grails option, though I'm not sure exactly what caused it to appear.
Here are some things that I did:
On the command line, in an already existing Grails project I ran:
grails integrate-with --intellij
Then I opened the project (which involved migrating the legacy version IntelliJ project file that Grails created to IntelliJ 13)
There was a green box in the upper right corner of the project window that complained about the Grails SDK was not being configured. That box disappeared before I could click on the link inside of it to attempt to correct the problem.
I closed the project and re-opened it, in the hope of causing the green box to reappear. It did not. But a red box appeared that complained that the Java SDK was not configured properly.
In the Project Structure Dialog I configured a Java SDK.
I closed the Grails project, then I tried to create a new Grails project. This time there was a Grails option under the Groovy option.
But I think there is still issue because the dialog shows No library selected for Groovy.
Groovy is included as part of Grails, so perhaps I should click the "Create..." button and choose some Groovy installation that is packaged in the Grails installation? But, this seems like something I would expect IntelliJ to configuration automatically when it is linked to the Grails installation.
Did you enable Grails plugin in IDE? Go to File>Settings>Plugin and check the grails option, restart IDE.
Grails is only supported in the Ultimate version of IntelliJ IDEA. It isn't supported in the community edition.
You can try the Ultimate version for free for 30 days before it goes into a mode where you can only work 15 minutes until it has you stop/close whatever you're doing and reopen the IDE, I guess.
I guess you are using the community edition of IntelliJ IDEA, which does not provide any option to create a grails application. But that doesn't mean that you are not allowed to create a grails project.
Use the command line to create a new Grails project,
grails create-app YourAppName
this will create the grails app in your present working directory.
Then simply run the app using the following command
grails run-app
this will resolve all the dependencies, and start your app.
Now open the IntelliJ IDEA and load this app from your present working directory, then proceed as instructed and that's it.
Only demerit of using this technique is that suggestions and auto-completion won't work, GSP pages will be unrecognized. If you want these features then go for Ultimate Edition of the IntelliJ IDEA.
You can create a grails project via terminal (grails create-app ... ) and just import (or new -> from existing sources) project from Idea. Than you should choose "import project from external model -> gradle (or maven)". And your project is ready!
I think this will help you.
You need Ultimate version of IntelliJ not Community one in order to use Groovy/Grails.

How to compile all builds for a Delphi Project Group that has few projects in Delphi IDE?

I am using Delphi XE. Since Delphi 2007, it supports Project Group (.groupproj) that we may add projects into it.
We may define various build configuration for projects in "Build Configurations" e.g.: Debug and Release build.
Since Delphi 2010, a runtime variable $(Config) may be used to set Output Directory like: .\$(Config)
In this example, $(Config) translated to "Debug" for Debug build and "Release" for Release build respectively.
When Debug build is activated in build configuration, output file will stored in ".\Debug" folder relative to the current directory.
This is a nice feature so we may have output files stored in various folders for builds defined in Project's Build Configuration.
Furthermore, using the "Build" menu item in context menu (pop-up menu via mouse right click) of "Build Configuration" perform compilation for all builds underneath.
Unfortunately, I have more than 200 projects in my project group. Each project has Debug and Release build defined. I don't find any way to trigger an action to build Debug and Release build for 200 projects at once.
The only solution I knew so far is using View | Configuration Manager to change the active configuration before each build. However, that would marks all project as modified.
Please share your thoughts on how to compile all builds available to a project group.
Thank you.
I have added a item to the Explorer context menu for *.groupproj calling this *.bat:
call "C:\Program Files (x86)\CodeGear\RAD Studio\5.0\bin\rsvars.bat"
MSBuild %1 /t:Build /p:Configuration=Release
if errorlevel 1 goto Fehler
goto :EOF
:Fehler
pause
So I can do a release build from Explorer with two mouse clicks.

Can we have Build Automatically option for ANT Build Scripts?

Eclipse IDE (3.4) contains an option to build the code automatically in the following tab
Project ---> Build Automatically.
When we select this option , we need not build the project manually. It happens Automatically.
Actually I see this working for builtin eclipse build tool. Is there any possibility that , we can make it to (Build Automatically) work for seperate ANT build scripts ?
If you add that ant script builder in the builders of your Java project, it will be executed at the same time than the default Java Builder, automatically if the "Build automatically" option is set.
alt text http://img193.imageshack.us/img193/5218/eclipseantbuilder.png

Resources