/** * forwarded to ImagePath.getBundlePath() * * @return the current bundlepath * @deprecated */ @Deprecated public static String getBundlePath() { return ImagePath.getBundlePath(); }
public static String saveTimedImage(BufferedImage img) { return saveTimedImage(img, ImagePath.getBundlePath(), null); }
/** * stores the lastScreenImage in the current bundle path with a created unique name * * @return the absolute file name * @throws java.io.IOException if not possible */ public String getLastScreenImageFile() throws IOException { return getScreen().getLastScreenImageFile(ImagePath.getBundlePath(), null); }
public String saveInBundle(String name) { if (!name.endsWith(".png")) { name += ".png"; } if (!name.startsWith("_")) { name = "_" + name; } File fImage = new File(name); try { fImage = new File(ImagePath.getBundlePath(), name); createFile(fImage); Debug.log(3, "ScreenImage.saveInBundle:\n%s", fImage); } catch (IOException iOException) { Debug.error("ScreenImage.saveInBundle: IOException", iOException); return null; } Image.reload(fImage.getAbsolutePath()); return fImage.getAbsolutePath(); }
/** * stores the lastScreenImage in the current bundle path with the given name * * @param name file name (.png is added if not there) * @return the absolute file name * @throws java.io.IOException if not possible */ public String getLastScreenImageFile(String name) throws IOException { return getScreen().getLastScreenImageFromScreen().getFile(ImagePath.getBundlePath(), name); }
modName = modName.substring(nDot + 1); String fpBundle = ImagePath.getBundlePath(); File fParentBundle = null; File fModule = null;
public static int runTest(String givenName, String[] args) { String savePath = ImagePath.getBundlePath(); int retVal = new RunBox(givenName, args, true).run(); ImagePath.setBundlePath(savePath); return retVal; }
return -1; File script = new File(ImagePath.getBundlePath()); File fRobotWork = new File(script.getAbsolutePath() + ".robot"); FileManager.deleteFileOrFolder(fRobotWork);
String fpBundle = ImagePath.getBundlePath(); if (!fJar.exists()) { fJar = new File(fpBundle, fpJarOrFolder);
(recap ? "recapture " : "capture missing ") + img.getName()); if (simg != null) { String path = ImagePath.getBundlePath(); if (path == null) { log(-1, "handleImageMissing: no bundle path - aborting");