Examples of TemporaryFileManager


Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

    /**
     * Test the getting of the devices using a pattern name.
     */
    public void testGetDevices() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File file) throws Exception {

                DeviceRepositoryFactory factory =
                            DeviceRepositoryFactory.getDefaultInstance();
                URL deviceRepositoryUrl = file.toURL();
View Full Code Here

Examples of org.netbeans.gradle.model.util.TemporaryFileManager

        initScript = initScript.replace(
                "$NB_BOOT_CLASSPATH",
                toPastableString(ClassLoaderUtils.getLocationOfClassPath().getPath()));

        TemporaryFileManager fileManager = TemporaryFileManager.getDefault();

        ModelQueryInput modelInput = new ModelQueryInput(projectInfoBuilders.getSerializableBuilderMap());
        TemporaryFileRef modelInputFile = fileManager.createFileFromSerialized(modelInputPrefix, modelInput);
        try {
            initScript = initScript.replace("$INPUT_FILE", toPastableString(modelInputFile.getFile()));

            TemporaryFileRef initScriptRef = fileManager
                    .createFile(initScriptPrefix, initScript, INIT_SCRIPT_ENCODING);
            try {
                String[] executerArgs = new String[userArgs.length + 2];
                System.arraycopy(userArgs, 0, executerArgs, 0, userArgs.length);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.