List of usage examples for org.eclipse.jdt.core.tests.util Util copy
public static void copy(String sourcePath, String destPath)
From source file:org.eclipse.objectteams.otdt.tests.otjld.callinbinding.BaseCalls.java
License:Open Source License
public void test4513_basecallSuperAccess3() { String jarFilename = "T4513bsa3.jar"; String destPath = this.outputRootDirectoryPath + "/regression"; new File(destPath).mkdirs(); // upload the jar: Util.copy(getTestResourcePath(jarFilename), destPath); // setup classpath: String[] classPaths = getDefaultClassPaths(); int l = classPaths.length; System.arraycopy(classPaths, 0, classPaths = new String[l + 1], 0, l); classPaths[l] = this.outputRootDirectoryPath + "/regression/" + jarFilename; runNegativeTest(new String[] { "T4513bsa3Main.java", "\n" + "public class T4513bsa3Main {\n" + " public static void main(String[] args) {\n" + " new Team4513bsa3().activate();\n" + " System.out.print(new T4513bsa3().m(2));\n" + " }\n" + "}\n" + " \n" }, (this.weavingScheme == WeavingScheme.OTRE ? "----------\n" + "1. ERROR in T4513bsa3Main.java (at line 1)\n" + " \n" + "public class T4513bsa3Main {\n" + " ^\n" + "Class file Team4513bsa3$__OT__R.class has incompatible OT/J byte code version 1.2.3, please consider a full build of the declaring project.\n" + "----------\n" + "2. ERROR in T4513bsa3Main.java (at line 0)\n" + " \n" + "public class T4513bsa3Main {\n" + " ^\n" + "Class file Team4513bsa3$__OT__Confined.class has incompatible OT/J byte code version 1.2.3, please consider a full build of the declaring project.\n" + "----------\n" : "----------\n" + "1. ERROR in T4513bsa3Main.java (at line 1)\n" + " \n" + "public class T4513bsa3Main {\n" + " ^\n" + "Class file Team4513bsa3$__OT__R.class has incompatible OT/J byte code version 1.2.3, please consider a full build of the declaring project.\n" + "----------\n" + "2. ERROR in T4513bsa3Main.java (at line 0)\n" + " \n" + "public class T4513bsa3Main {\n" + " ^\n" + "Class file Team4513bsa3$__OT__R.class has been compiled for incompatible weaving target 'OTRE', please consider a full build of the declaring project.\n" + "----------\n"), classPaths, false/*shouldFlushOutputDirectory*/); }
From source file:org.eclipse.objectteams.otdt.tests.otjld.other.Misc.java
License:Open Source License
String[] getClassLibraries() { if (this.verifier != null) this.verifier.shutDown(); this.verifier = getTestVerifier(false); this.createdVerifier = true; String[] jarFilenames = { "bug370040_prj14.jar", "bug370040_prj15.jar" }; String destPath = this.outputRootDirectoryPath + "/regression"; createOutputTestDirectory("/regression"); // upload the jars: Util.copy(getTestResourcePath(jarFilenames[0]), destPath); Util.copy(getTestResourcePath(jarFilenames[1]), destPath); // setup classpath: String[] classPaths = getDefaultClassPaths(); int l = classPaths.length; System.arraycopy(classPaths, 0, classPaths = new String[l + 2], 0, l); classPaths[l] = this.outputRootDirectoryPath + "/regression/" + jarFilenames[0]; classPaths[l + 1] = this.outputRootDirectoryPath + "/regression/" + jarFilenames[1]; return classPaths; }
From source file:org.eclipse.objectteams.otdt.tests.otjld.regression.DevelopmentExamples.java
License:Open Source License
String[] getBookingClassLibraries() { if (this.verifier != null) this.verifier.shutDown(); this.verifier = getTestVerifier(false); this.createdVerifier = true; String jarFilename = "booking.jar"; String destPath = this.outputRootDirectoryPath + "/regression"; createOutputTestDirectory("/regression"); // upload the jar: Util.copy(getTestResourcePath(jarFilename), destPath); // setup classpath: String[] classPaths = getDefaultClassPaths(); int l = classPaths.length; System.arraycopy(classPaths, 0, classPaths = new String[l + 1], 0, l); classPaths[l] = this.outputRootDirectoryPath + "/regression/" + jarFilename; return classPaths; }
From source file:org.eclipse.objectteams.otdt.tests.otjld.regression.ReportedBugs.java
License:Open Source License
String[] getClassLibraries(String jarFilename) { String destPath = this.outputRootDirectoryPath + "/regression"; createOutputTestDirectory("/regression"); // upload the jar: Util.copy(getTestResourcePath(jarFilename), destPath); // setup classpath: String[] classPaths = getDefaultClassPaths(); int l = classPaths.length; System.arraycopy(classPaths, 0, classPaths = new String[l + 1], 0, l); classPaths[l] = this.outputRootDirectoryPath + "/regression/" + jarFilename; return classPaths; }
From source file:org.eclipse.objectteams.otdt.tests.otjld.syntax.Syntax.java
License:Open Source License
String[] getClassLibraries() { if (this.verifier != null) this.verifier.shutDown(); this.verifier = getTestVerifier(false); this.createdVerifier = true; String jarFilename = "t8syntax.jar"; String destPath = this.outputRootDirectoryPath + "/regression"; // upload the jar: Util.copy(getTestResourcePath(jarFilename), destPath); // setup classpath: String[] classPaths = getDefaultClassPaths(); int l = classPaths.length; System.arraycopy(classPaths, 0, classPaths = new String[l + 1], 0, l); classPaths[l] = this.outputRootDirectoryPath + "/regression/" + jarFilename; return classPaths; }