Automate Project Setup
I am creating Gradle Web project and each time I create a new project I have to go back in and retype the Gradle options in build.gradle. How would I automate the process so that each time I create a new Gradle project it automatically sets my default options?
Additionally I can occasionally get Tomcat to start and run a project, but if I close a project and run a different project I no longer have access to the first project on my Tomcat server even though they are in different directories. If I have to projects open at once I will get and error indicating that port 1099 is busy. I would rather write the files directly to the local directory and keep copies of all my current project available ion Tomcat.
Any advice would be appreciated!
Please sign in to leave a comment.
>How would I automate the process so that each time I create a new Gradle project it automatically sets my default options?
You can change Default project settings.
If you are creating the exact same web project each time you can also set up project template from existing project.
>Additionally I can occasionally get Tomcat to start and run a project, but if I close a project and run a different project I no longer have access to the first project on my Tomcat server even though they are in different directories. If I have to projects open at once I will get and error indicating that port 1099 is busy.
You need to combine two projects under single IDE project and use single Tomcat Run/Debug Configuration to deploy artifacts from both project to the same Tomcat instance.
I have searched through the Default project setting and I don't see where I can set the default build.gradle file. Because every JSP project I am coding uses the same basic resources/dependencies I should be able to set this somewhere.
I want to automatically copy project as it is built to a separate web server where I can test them. If the projects are each in a unique directory on the separate server they should be able to sit in their directories and wait to be executed by the web server even if intelliJ is not running.
>I have searched through the Default project setting and I don't see where I can set the default build.gradle file.
As you did not specify which default settings you wanted to set I linked to IDE settings. That settings do you define default build gradle file. But you can use 'Save project as template' and use that template for creation of new projects. Then the build.gradle file will also be preserved.
>I want to automatically copy project as it is built to a separate web server where I can test them. If the projects are each in a unique directory on the separate server they should be able to sit in their directories and wait to be executed by the web server even if intelliJ is not running.
Please clarify the issue with it you have in IDE.