<?php

/*
 * This file is part of the Eulogix\Lib package.
 *
 * (c) Eulogix <http://www.eulogix.com/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Eulogix\Lib\Java;

/**
 * @author Pietro Baricco <pietro@eulogix.com>
 */

class Bridge {

    /**
     * @var string
     */
    private $url = "", $dir = "";

    /**
     * @param string $url
     */
    public function __construct($url, $dir) {
        $this->url = $url;
        $this->dir = $dir;

        $javaInc = $dir.DIRECTORY_SEPARATOR."Java.inc";
        if(!file_exists($javaInc)) {
            copy("$url/java/Java.inc", $javaInc);
        }

        require_once($javaInc);
    }

    /**
     * @param string $class
     * @return object
     */
    public function instanceJavaClass($class)
    {
        return new \java($class);
    }

} 
<?php

/*
 * This file is part of the Eulogix\Lib package.
 *
 * (c) Eulogix <http://www.eulogix.com/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Eulogix\Lib\Java;

/**
 * @author Pietro Baricco <pietro@eulogix.com>
 */

class Bridge {

    /**
     * @var string
     */
    private $url = "";

    /**
     * @param string $url
     */
    public function __construct($url) {
        $this->url = $url;
        require_once("$url/java/Java.inc");
    }

    /**
     * @param string $class
     * @return object
     */
    public function instanceJavaClass($class)
    {
        return new \java($class);
    }

} 
Revert "Java.inc now included from a cache so that it is debuggable"
Revert "Java.inc now included from a cache so that it is debuggable"

This reverts commit ad4c67b356187883ba050056aab430a4f83cd14c.
