Is there any option in IntelliJ IDEA to create a configuration to run an external jar like the external tools configurations in Eclipse?
IDEA does not have a dedicated "Executable JAR" run/debug configuration. It does sound like a nice new feature. I'd recommend you request it: http://youtrack.jetbrains.com
Despite that, there are two options to run an executable JAR.
OPTION 1
You can define a normal application run/debug configuration and define the executable JAR via the VM options. Here's an example:
OPTION 2
You can create an "External Tool" definition via File > Settings > [IDE Settings] > External Tools. (Click the Help button in the dialog for details on the fields). You can run it via the Tools menu, or by assigning it a keyboard shortcut in the Keymap settings. The one downside here is that External Tools are defined at the IDE level and not a Project level. So that definition will show for all Projects. However, using the "Groups" option in the External Tools to group all configurations for a Project can add some structure.
Related
How can I configure MyEclipse and the SVN plugin (Subclipse 4.3.3) so that my Run Configurations are included in the source code control. Every time a new developer checks out the project, he doesn't have the Run Configurations needed to test the application properly or to do the Maven packaging correctly.
Is there a way?
To share your run/launch configuration, go to the launch configuration (Run > Run Configurations...) tab Common for Save as choose Shared file (instead of Local file).
In addition, you can choose to Display in favorites menu to add it to the drop-down of the corresponding button in the main toolbar.
I had a supercool hook set up on Eclipse to compile my project's .css theme file from its .less modules every time a .less module was modified by monitoring those resources through an "external tool configuration".
I could select which resources to monitor for triggering the nodejs less compiler tool on the launch configurations build options tab.
On eclipse Mars there is no such tab.
It really bothers me to loose this automation. Does anybody know where did that tab go or how can I keep this functionality without it?
You set up such custom builders via the project's Properties dialog. Open the properties, then select the Builders section. There you can use the New... button to configure a Program to run as a builder.
Is there a quick way to transfer the "External Tool Configurations" from one Eclipse install to another?
It doesn't seem to offer an import/export setting...
I managed to copy my "External Tools Configurations" configuration (i.e. my Ant parameters and environment variables) from one workspace to another by copying .launch files in
<workspace>\.metadata\.plugins\org.eclipse.debug.core\.launches
I found one more easy way , you can export the Launch Configurations from
File -> Export-> Run/Debug -> Launch Configurations
Open the "External Tools Configurations" dialog.
Open the "Common" tab.
Select the "Shared file" radio button and enter a path for the location of the configuration file.
Eclipse will store your External Tools Configuration in the file you specified. You can use this file in another instance of Eclipse to load the configuration. Add the 'your tool configuration'.launch file you created to the root of your destination project. The next time you refresh the project, Eclipse will load the configurations.
I set a bunch of applet parameters on run/debug configurations on eclipse.
I would like to share these parameters with my co-workers, but I cannot find an easy way to copy these parameters. I looked through the plugin and project files to figure out where these parameters are stored, but I couldn't find them. Does anyone happen to know where these configurations are stored?
thanks in advance...
Launch configurations in Eclipse can be saved in the workspace in one of the projects and committed under source control. When the project is imported in Eclipse, the launch configuration will be found and automatically added in Eclipse.
To store the launch configuration in the workspace:
Run > Run Configurations... > Select the launch configuration > Common tab > Shared file
In the text field, you specify the location, where the configuration to be stored.
I have a run configuration defined for my Eclipse RCP application which is saved to a .launch file. Is there a way to use this launch configuration outside the Eclipse IDE? i.e, it would be nice to be able to launch the application from the command line for continuous integration purposes.
You can get the command line Eclipse uses:
Run your program in Eclipse
Go to the "Debug" view
Right-click on the process (probably the second item in the tree) and select "Properties"
Copy shell command and delete the agentlib flag to run in bash. Unfortunately, you need to do this whenever you change the configuration.
Yes, you could create and export a product configuration based on your launch-configuration:
Create new Product Configuration (File -> New -> Other)
Name the file (e.g. myrcp.product)
Select "Use a launch configuration" on the first page of the wizard
The product editor should open automatically. In the Exporting section you should be able to export your product using the "Eclipse Product export wizard".
Resource: Eclipse FAQ - How can I deploy my RCP app
Have a look at this PDE Build tutorial. It explains how to build and test (or run) your product using Ant.
It is possible to do that with a little workaround. You can find your configuration at workspace\.metadata\.plugins\org.eclipse.debug.core\.launches. So, open it in text editor and find an attribute containing goals, e.g. clean install -DskipTests=true.Then, go to the root of your project and execute that by the CMD:
mvn clean install -DskipTests=true
This should be similar for other goals.