src/Tasks/Build/Library.php
public function run()
	{
		$this->say("Building library folder " . $this->libName);

		if (!file_exists($this->source))
		{
			$this->say("Folder " . $this->source . " does not exist!");

			return true;
		}

		$this->prepareDirectory();

		// Libaries are problematic.. we have libraries/name/libraries/name in the end for the build script
		$tar = $this->target;

		if (!$this->hasComponent)
		{
			$tar = $this->target . "/libraries/" . $this->libName;
		}

		$files = $this->copyTarget($this->source, $tar);

		$lib = $this->libName;

		// Workaround for libraries without lib_
		if (substr($this->libName, 0, 3) != "lib")
		{
			$lib = 'lib_' . $this->libName;
		}

		// Build media (relative path)
		$media = $this->buildMedia("media/" . $lib, $lib);
		$media->run();

		$this->addFiles('media', $media->getResultFiles());

		// Build language files for the component
		$language = $this->buildLanguage($lib);
		$language->run();

		// Copy XML
		$this->createInstaller($files);

		return true;
	}
public function run()
	{
		$this->say("Building library folder " . $this->libName);

		if (!file_exists($this->source))
		{
			$this->say("Folder " . $this->source . " does not exist!");

			return true;
		}

		$this->prepareDirectory();

		// Libaries are problematic.. we have libraries/name/libraries/name in the end for the build script
		$tar = $this->target;

		if (!$this->hasComponent)
		{
			$tar = $this->target . "/libraries/" . $this->libName;
		}

		$files = $this->copyTarget($this->source, $tar);

		$lib = $this->libName;

		// Workaround for libraries without lib_
		if (substr($this->libName, 0, 3) != "lib")
		{
			$lib = 'lib_' . $this->libName;
		}

		// Build media (relative path)
		$media = $this->buildMedia("media/" . $lib, $lib);
		$media->run();

		$this->addFiles('media', $media->getResultFiles());

		// Build language files for the component
		$language = $this->buildLanguage($lib);
		$language->run();

		// Copy XML
		$this->createInstaller($files);

		return true;
	}
public function run ( ) { $ this -> say ( "Building library folder " . $ this -> libName ) ; if ( ! file_exists ( $ this -> source ) ) { $ this -> say ( "Folder " . $ this -> source . " does not exist!" ) ; return true ; } $ this -> prepareDirectory ( ) ; // Libaries are problematic.. we have libraries/name/libraries/name in the end for the build script $ tar = $ this -> target ; if ( ! $ this -> hasComponent ) { $ tar = $ this -> target . "/libraries/" . $ this -> libName ; } $ files = $ this -> copyTarget ( $ this -> source , $ tar ) ; $ lib = $ this -> libName ; // Workaround for libraries without lib_ if ( substr ( $ this -> libName , 0 , 3 ) != "lib" ) { $ lib = 'lib_' . $ this -> libName ; } // Build media (relative path) $ media = $ this -> buildMedia ( "media/" . $ lib , $ lib ) ; $ media -> run ( ) ; $ this -> addFiles ( 'media' , $ media -> getResultFiles ( ) ) ; // Build language files for the component $ language = $ this -> buildLanguage ( $ lib ) ; $ language -> run ( ) ; // Copy XML $ this -> createInstaller ( $ files ) ; return true ; }
Runs the library build tasks, just copying files currently

@return  bool

@since   1.0
Runs the library build tasks just copying files currently