diff --git a/src/ncc/CLI/ProjectMenu.php b/src/ncc/CLI/ProjectMenu.php index fcc1fce..43144a4 100644 --- a/src/ncc/CLI/ProjectMenu.php +++ b/src/ncc/CLI/ProjectMenu.php @@ -63,6 +63,10 @@ Console::outError('The selected source directory \'' . $full_path . '\' was not found or is not a directory', true, 1); } } + else + { + $real_src = getcwd() . DIRECTORY_SEPARATOR . 'src'; + } // Remove basename from real_src $real_src = \ncc\Utilities\Functions::removeBasename($real_src, $current_directory); diff --git a/src/ncc/Classes/PackageParser.php b/src/ncc/Classes/PackageParser.php index 12b18c1..1d54da1 100644 --- a/src/ncc/Classes/PackageParser.php +++ b/src/ncc/Classes/PackageParser.php @@ -38,6 +38,5 @@ $file_handler = fopen($this->PackagePath, 'rb'); $header = fread($file_handler, 14); - var_dump($header); } } \ No newline at end of file diff --git a/src/ncc/Classes/PhpExtension/Compiler.php b/src/ncc/Classes/PhpExtension/Compiler.php index 4781f74..754b4d9 100644 --- a/src/ncc/Classes/PhpExtension/Compiler.php +++ b/src/ncc/Classes/PhpExtension/Compiler.php @@ -113,9 +113,6 @@ $Component = new Package\Component(); $Component->Name = $item->getPath(); $this->package->Components[] = $Component; - - var_dump($item->getPath()); - var_dump($item); } if(count($this->package->Components) > 0) @@ -145,8 +142,6 @@ $Resource->Name = $item->getPath(); $this->package->Resources[] = $Resource; - var_dump($item->getPath()); - var_dump($item); } if(count($this->package->Resources) > 0) @@ -157,9 +152,6 @@ { Console::out('No resources found'); } - - var_dump($this->package); - } public function build(array $options, string $src) diff --git a/src/ncc/Utilities/Functions.php b/src/ncc/Utilities/Functions.php index 2635f28..837369c 100644 --- a/src/ncc/Utilities/Functions.php +++ b/src/ncc/Utilities/Functions.php @@ -205,8 +205,6 @@ $basename .= DIRECTORY_SEPARATOR; } - var_dump($basename); - // If the path is "/etc/foo/text.txt" and the basename is "/etc" then the returned path will be "foo/test.txt" return str_replace($basename, (string)null, $path); }