protected function _getFilenames( $package, $prePath = '' )
	{
		$filenames = array();
		$ds = DIRECTORY_SEPARATOR;

		foreach( $package->fileIncludes as $include )
		{
			if( !is_object( $include ) ) {
				throw new MW_Jsb2_Exception( 'Invalid file inlcude' );
			}

			$filename = $include->path . $include->text;
			$absfilename = $this->_basePath . $filename;

			if( $ds !== '/' ) {
				$absfilename = str_replace( '/', $ds, $absfilename );
			}

			if( !file_exists( $absfilename ) ) {
				throw new MW_Jsb2_Exception( sprintf( 'File does not exists: "%1$s"', $absfilename ) );
			}

			$filenames[] = $prePath . $filename;
		}

		return $filenames;
	}
protected function _getFilenames( $package, $prePath = '' )
	{
		$filenames = array();
		$ds = DIRECTORY_SEPARATOR;

		foreach( $package->fileIncludes as $include )
		{
			if( !is_object( $include ) ) {
				throw new MW_Jsb2_Exception( 'Invalid file inlcude' );
			}

			$filename = $include->path . $include->text;
			$absfilename = $this->_basePath . $filename;

			if( $ds !== '/' ) {
				$absfilename = str_replace( '/', $ds, $absfilename );
			}

			if( !file_exists( $absfilename ) ) {
				throw new MW_Jsb2_Exception( sprintf( 'File does not exists: "%1$s"', $absfilename ) );
			}

			$filenames[] = $prePath . $filename;
		}

		return $filenames;
	}
protected function _getFilenames ( $ package , $ prePath = '' ) { $ filenames = array ( ) ; $ ds = DIRECTORY_SEPARATOR ; foreach ( $ package -> fileIncludes as $ include ) { if ( ! is_object ( $ include ) ) { throw new MW_Jsb2_Exception ( 'Invalid file inlcude' ) ; } $ filename = $ include -> path . $ include -> text ; $ absfilename = $ this -> _basePath . $ filename ; if ( $ ds !== '/' ) { $ absfilename = str_replace ( '/' , $ ds , $ absfilename ) ; } if ( ! file_exists ( $ absfilename ) ) { throw new MW_Jsb2_Exception ( sprintf ( 'File does not exists: "%1$s"' , $ absfilename ) ) ; } $ filenames [ ] = $ prePath . $ filename ; } return $ filenames ; }
Gets files stored in package an checkes for existence.

@param object $package Single package from manifest
@param string $prePath String added before filepaths
Gets files stored in package an checkes for existence .