Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eap XP - dev watch - launch action added to astools #747

Merged
merged 3 commits into from Jan 26, 2022

Conversation

robstryker
Copy link
Member

Signed-off-by: Rob Stryker rob@oxbeef.net

Pull Request Checklist

General

  • Is this a blocking issue or new feature? If yes, QE needs to +1 this PR

Code

  • Are method-/class-/variable-names meaningful?
  • Are methods concise, not too long?
  • Are catch blocks catching precise Exceptions only (no catch all)?

Testing

  • Are there unit-tests?
  • Are there integration tests (or at least a jira to tackle these)?
  • Is the non-happy path working, too?
  • Are other parts that use the same component still working fine?

Function

  • Does it work?

Signed-off-by: Rob Stryker <rob@oxbeef.net>
IProgressMonitor monitor) throws CoreException {
waitForPortAvailable(port, monitor);
IProject project = getProject(configuration);
String name = "EapXP remote " + project.getName();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be rename as Standalone web application ....

public static ILaunch run(IProject project, String profile, int debugPort, IProgressMonitor monitor) throws CoreException {
ILaunchConfigurationWorkingCopy launchConfiguration = getConfiguration(project);
launchConfiguration.setAttribute(MavenLaunchConstants.ATTR_GOALS, "package quarkus:dev");
if (StringUtils.isBlank(profile)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part is specific to Quarkus should be update to the Wildfly plugin

import org.jboss.tools.common.jdt.core.buildpath.ClasspathContainersHelper;

public class ProjectUtils {
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this dead code

public static boolean isJBossXpProject(IJavaProject javaProject) {
IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().create( javaProject.getProject(), new NullProgressMonitor() );
try {
Plugin plugin = facade.getMavenProject(new NullProgressMonitor()).getPlugin("org.wildfly.plugins:wildfly-jar-maven-plugin");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if facade is null (ie not a Maven project)

Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
@robstryker robstryker merged commit 33d88ca into jbosstools:master Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants