Skip to content

Commit

Permalink
- Fixed #9930643: The include_path does not match with
Browse files Browse the repository at this point in the history
  PHP_Depend's new directory layout.
  • Loading branch information
manuelpichler committed Feb 12, 2011
1 parent 0c6d1ea commit 531be78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.xml
Expand Up @@ -27,7 +27,7 @@
<target name="~copy-library-dir-after">
<delete includeemptydirs="true">
<fileset dir="${library.dir}">
<exclude name="pdepend/PHP/**" />
<exclude name="pdepend/src/main/**" />
</fileset>
</delete>
</target>
Expand Down
6 changes: 3 additions & 3 deletions conf/phar_bootstrap.stub
@@ -1,11 +1,11 @@
#!/usr/bin/env php
#!/usr/bin/env php534
<?php
Phar::mapPhar( '${archive.alias}' );
// Configure phar include paths
set_include_path('phar://${archive.alias}/' . PATH_SEPARATOR . 'phar://${archive.alias}/lib/pdepend');
set_include_path('phar://${archive.alias}/' . PATH_SEPARATOR . 'phar://${archive.alias}/lib/pdepend/src/main/php');
// Load command line utility
include_once 'phar://${archive.alias}/PHP/PMD/TextUI/Command.php';
// Run command line interface
exit(PHP_PMD_TextUI_Command::main($argv));
__HALT_COMPILER();
?>
?>
2 changes: 1 addition & 1 deletion phpmd.php
Expand Up @@ -6,7 +6,7 @@
set_include_path(
dirname(__FILE__) . '/src/main/php' .
PATH_SEPARATOR .
dirname(__FILE__) . '/lib/pdepend' .
dirname(__FILE__) . '/lib/pdepend/src/main/php' .
PATH_SEPARATOR .
'.'
);
Expand Down

0 comments on commit 531be78

Please sign in to comment.