diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..166bdfa --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/.settings +/.buildpath +/.project +/README diff --git a/README b/README deleted file mode 100644 index 464d2cd..0000000 --- a/README +++ /dev/null @@ -1,13 +0,0 @@ -Just a few tasks that I've created or borrowed for phing. - -CssCompileTask -Uses the YUI compressor to minify css files - -JsCompileTask -Uses the Google Closure Compiler to minify js files. Faster and smaller than jsmin - -CompressTask -Uses either gzip (default) or bzip2 to compress files. Leaves original files in tact. Handy for use with the nginx module, NginxHttpGzipStaticModule. - -FileSyncTask -Copied from Federico Cargnelutti, see http://fedecarg.com/wiki/FileSyncTask. Works great. diff --git a/README.md b/README.md new file mode 100644 index 0000000..fcc88d2 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# phing-tasks + +forked from https://github.com/mrowl/phing-tasks diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..538b2ee --- /dev/null +++ b/composer.json @@ -0,0 +1,7 @@ +{ + "name": "phing/phing-tasks", + "description": "tasks created or borrowed for phing.", + "type": "library", + "keywords": ["phing", "tasks"], + "minimum-stability": "dev" +} \ No newline at end of file diff --git a/tasks/my/JsCompileTask.php b/tasks/my/JsCompileTask.php index 5093921..05985d4 100644 --- a/tasks/my/JsCompileTask.php +++ b/tasks/my/JsCompileTask.php @@ -111,7 +111,7 @@ public function main() } $commandBase = 'java -jar ' . $this->compilerPath; exec($commandBase . ' --helpshort 2>&1', $output); - if (!preg_match('/"--helpshort" is not a valid option/', implode('', $output))) { + if (!preg_match('/"--helpshort" /', implode('', $output))) { throw new BuildException('Closure Compiler not found!'); } foreach ($this->filesets as $fs) {