Skip to content

Commit b86188c

Browse files
committed
set Maven, Gradle default value for user defnied types; correct goal1
1 parent 5596916 commit b86188c

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

org.nodeclipse.enide.gradle/src/org/nodeclipse/enide/gradle/preferences/GradlePreferenceInitializer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public void initializeDefaultPreferences() {
2323
//store.setDefault(MavenConstants.MAVEN_OPTION_JETTY_PORT, "8080" );
2424

2525
store.setDefault(GradleConstants.GRADLE_OPTION_DAEMON, true );
26+
27+
store.setDefault(GradleConstants.GRADLE_TASK1, "assemble" );
28+
store.setDefault(GradleConstants.GRADLE_TASK2, "run" );
2629
}
2730

2831
}

org.nodeclipse.enide.maven/plugin.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,43 +60,43 @@
6060
</shortcut>
6161
</extension>
6262

63-
<!-- goal2 -->
63+
<!-- goal1 -->
6464
<extension
6565
point="org.eclipse.debug.core.launchConfigurationTypes">
6666
<launchConfigurationType
67-
delegate="org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationDelegate"
68-
id="org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType"
67+
delegate="org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationDelegate"
68+
id="org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationType"
6969
modes="run"
70-
name="Maven goal2">
70+
name="Maven goal1">
7171
</launchConfigurationType>
7272
</extension>
7373
<extension
7474
point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >
7575
<launchConfigurationTypeImage
76-
configTypeID= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType"
76+
configTypeID= "org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationType"
7777
icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
78-
id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTypeImage" >
78+
id= "org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationTypeImage" >
7979
</launchConfigurationTypeImage>
8080
</extension>
8181
<extension
8282
point="org.eclipse.debug.ui.launchConfigurationTabGroups">
8383
<launchConfigurationTabGroup
84-
class= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTabGroup"
85-
id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTabGroup"
86-
type= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" >
84+
class= "org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationTabGroup"
85+
id= "org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationTabGroup"
86+
type= "org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationType" >
8787
</launchConfigurationTabGroup>
8888
</extension>
89-
<!-- pom.xml run as goal2 -->
89+
<!-- pom.xml run as goal1 -->
9090
<extension
9191
point= "org.eclipse.debug.ui.launchShortcuts" >
9292
<shortcut
93-
class= "org.nodeclipse.enide.maven.launch.goal2.LaunchShortcut"
93+
class= "org.nodeclipse.enide.maven.launch.goal1.LaunchShortcut"
9494
icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
95-
id= "org.nodeclipse.enide.maven.launch.goal2.LaunchShortcut"
96-
label= "mvn goal2 Maven goal"
95+
id= "org.nodeclipse.enide.maven.launch.goal1.LaunchShortcut"
96+
label= "mvn goal1 Maven goal"
9797
modes= "run" >
9898
<configurationType
99-
id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" >
99+
id= "org.nodeclipse.enide.maven.launch.goal1.LaunchConfigurationType" >
100100
</configurationType>
101101
<contextualLaunch>
102102
<enablement>

org.nodeclipse.enide.maven/src/org/nodeclipse/enide/maven/preferences/MavenPreferenceInitializer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public void initializeDefaultPreferences() {
1818
if (envMavenOpts!=null)
1919
store.setDefault(MavenConstants.MAVEN_OPTS, envMavenOpts );
2020
//store.setDefault(MavenConstants.MAVEN_OPTION_JETTY_PORT, "8080" );
21+
22+
store.setDefault(MavenConstants.MAVEN_GOAL1, "verify" );
23+
store.setDefault(MavenConstants.MAVEN_GOAL2, "install" );
2124
}
2225

2326
}

0 commit comments

Comments
 (0)