Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…build file
  • Loading branch information...
commit 9d83b04fff86336d18eaf27a42feb9a86aaed6c0 1 parent 09685cd
@stuartherbert stuartherbert authored
View
5 src/data/php-library/build.local.xml
@@ -0,0 +1,5 @@
+<project default="local-help">
+<target name="local-help">
+ <echo message="This component has no local build targets." />
+</target>
+</project>
View
4 src/data/php-library/build.xml
@@ -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 -->
View
9 src/php/Gradwell/ComponentManager/Entities/LibraryComponentFolder.php
@@ -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();
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.