Permalink
Browse files

Added support for build.local.xml file for additional targets in the …

…build file
  • Loading branch information...
1 parent 09685cd commit 9d83b04fff86336d18eaf27a42feb9a86aaed6c0 @stuartherbert stuartherbert committed Jun 3, 2011
@@ -0,0 +1,5 @@
+<project default="local-help">
+<target name="local-help">
+ <echo message="This component has no local build targets." />
+</target>
+</project>
@@ -89,6 +89,8 @@
<include name="*.md" />
</fileset>
+ <import file="build.local.xml"/>
+
<!-- Tell the user what this build file supports -->
<target name="help">
<echo message="${project.name} ${project.version}: build.xml targets:" />
@@ -123,6 +125,8 @@
<echo message=" of your PEAR channel" />
<echo message="clean" />
<echo message=" Remove all temporary folders created by this build file" />
+ <echo message="" />
+ <phingcall target="local-help" />
</target>
<!-- Run PHP lint on all of the source code -->
@@ -46,7 +46,7 @@
class LibraryComponentFolder extends ComponentFolder
{
- const LATEST_VERSION = 5;
+ const LATEST_VERSION = 6;
const DATA_FOLDER = '@@DATA_DIR@@/ComponentManagerPhpLibrary/php-library';
public function createComponent()
@@ -142,7 +142,7 @@ protected function createFolders()
protected function createBuildFile()
{
- $this->copyFilesFromDataFolder(array('build.xml'));
+ $this->copyFilesFromDataFolder(array('build.xml', 'build.local.xml'));
}
protected function createBuildProperties()
@@ -255,4 +255,9 @@ protected function upgradeFrom4To5()
{
$this->createBuildFile();
}
+
+ protected function upgradeFrom5To6()
+ {
+ $this->createBuildFile();
+ }
}

0 comments on commit 9d83b04

Please sign in to comment.