// Path: src/main/java/org/ktc/soapui/maven/extension/impl/runner/wrapper/SoapUITestCaseRunnerWrapper.java
// public static SoapUITestCaseRunnerWrapper newSoapUITestCaseRunnerWrapper(String runnerType) {
//     RunnerType runnerTypeEnum = EnumConverter.toRunnerType(runnerType);
//     SoapUITestCaseRunner runner = runnerTypeEnum.newTestRunner();
//     return new SoapUITestCaseRunnerWrapper(runner, runnerTypeEnum);
// }


import static org.ktc.soapui.maven.extension.impl.runner.wrapper.SoapUITestCaseRunnerWrapper.newSoapUITestCaseRunnerWrapper;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.apache.commons.io.FilenameUtils;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.codehaus.plexus.util.DirectoryScanner;
import com.eviware.soapui.tools.SoapUITestCaseRunner;
/*
 * Copyright 2014 Thomas Bouffard (redfish4ktc)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.ktc.soapui.maven.extension;





public class TestMultiMojo extends TestMojo {

    // use array to support maven 2.2.1
    private ProjectFilesScan[] projectFiles;
    private boolean useOutputFolderPerProject;

    @Override
    protected void performRunnerExecute() throws MojoExecutionException, MojoFailureException {
        List<File> resolvedProjectFiles = resolveProjectFiles();
        for (File currentProjectFile : resolvedProjectFiles) {
// Path: src/main/java/org/ktc/soapui/maven/extension/impl/runner/wrapper/SoapUITestCaseRunnerWrapper.java
// public static SoapUITestCaseRunnerWrapper newSoapUITestCaseRunnerWrapper(String runnerType) {
//     RunnerType runnerTypeEnum = EnumConverter.toRunnerType(runnerType);
//     SoapUITestCaseRunner runner = runnerTypeEnum.newTestRunner();
//     return new SoapUITestCaseRunnerWrapper(runner, runnerTypeEnum);
// }


// Path: src/main/java/org/ktc/soapui/maven/extension/TestMultiMojo.java
import static org.ktc.soapui.maven.extension.impl.runner.wrapper.SoapUITestCaseRunnerWrapper.newSoapUITestCaseRunnerWrapper;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.apache.commons.io.FilenameUtils;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.codehaus.plexus.util.DirectoryScanner;
import com.eviware.soapui.tools.SoapUITestCaseRunner;

/*
 * Copyright 2014 Thomas Bouffard (redfish4ktc)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.ktc.soapui.maven.extension;





public class TestMultiMojo extends TestMojo {

    // use array to support maven 2.2.1
    private ProjectFilesScan[] projectFiles;
    private boolean useOutputFolderPerProject;

    @Override
    protected void performRunnerExecute() throws MojoExecutionException, MojoFailureException {
        List<File> resolvedProjectFiles = resolveProjectFiles();
        for (File currentProjectFile : resolvedProjectFiles) {
            configureAndRun(newSoapUITestCaseRunnerWrapper(runnerType), currentProjectFile.getAbsolutePath());