1.1 --- a/testng.maven/src/org/netbeans/modules/contrib/testng/maven/MavenTestNGSupport.java Sat Dec 31 20:22:49 2011 +0100
1.2 +++ b/testng.maven/src/org/netbeans/modules/contrib/testng/maven/MavenTestNGSupport.java Sun Jan 01 12:49:59 2012 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1.6 *
1.7 - * Copyright © 2008-2011 Oracle and/or its affiliates. All rights reserved.
1.8 + * Copyright © 2008-2012 Oracle and/or its affiliates. All rights reserved.
1.9 *
1.10 * The contents of this file are subject to the terms of either the GNU
1.11 * General Public License Version 2 only ("GPL") or the Common
1.12 @@ -76,6 +76,7 @@
1.13 s.add(Action.CREATE_TEST);
1.14 s.add(Action.RUN_FAILED);
1.15 s.add(Action.RUN_TESTMETHOD);
1.16 + s.add(Action.RUN_TESTSUITE);
1.17 SUPPORTED_ACTIONS = Collections.unmodifiableSet(s);
1.18 }
1.19
1.20 @@ -121,12 +122,17 @@
1.21 copy(getFailedConfig());
1.22 // mp.addPlugin(createPluginDef(failedConfPath));
1.23 } else {
1.24 - File f = XMLSuiteSupport.createSuiteforMethod(
1.25 + File f = null;
1.26 + if (Action.RUN_TESTSUITE.equals(action)) {
1.27 + f = FileUtil.toFile(config.getTest());
1.28 + } else {
1.29 + f = XMLSuiteSupport.createSuiteforMethod(
1.30 new File(System.getProperty("java.io.tmpdir")), //NOI18N
1.31 ProjectUtils.getInformation(p).getDisplayName(),
1.32 config.getPackageName(),
1.33 config.getClassName(),
1.34 config.getMethodName());
1.35 + }
1.36 f = FileUtil.normalizeFile(f);
1.37 copy(FileUtil.toFileObject(f));
1.38 // mp.addPlugin(createPluginDef(FileUtil.getRelativePath(p.getProjectDirectory(), FileUtil.toFileObject(f))));