Package org.ops4j.pax.exam.options.extra

Examples of org.ops4j.pax.exam.options.extra.WorkingDirectoryOption


     *            url of the bundle to be scanned
     *
     * @return working directory option
     */
    public static WorkingDirectoryOption workingDirectory(final String directory) {
        return new WorkingDirectoryOption(directory);
    }
View Full Code Here


        subsystems = new Stack<ExamSystem>();
        combinedOptions = expand(options);
        configDirectory = new File(System.getProperty("user.home") + "/.pax/exam/");
        configDirectory.mkdirs();

        WorkingDirectoryOption work = getSingleOption(WorkingDirectoryOption.class);
        // make sure that working directory gets propagated to forked systems
        if (work == null) {
            work = new WorkingDirectoryOption(createTemp(null).getAbsolutePath());
            combinedOptions = combine(combinedOptions, work);
        }

        cache = createTemp(new File(work.getWorkingDirectory()));
        store = new TemporaryStore(cache, false);

        TimeoutOption timeoutOption = getSingleOption(TimeoutOption.class);
        if (timeoutOption != null) {
            timeout = new RelativeTimeout(timeoutOption.getTimeout());
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.options.extra.WorkingDirectoryOption

Copyright © 2018 www.massapicom. 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.