Permalink
Browse files

Iterate plugins for composer task

  • Loading branch information...
1 parent d74696f commit 4af8467e13e05127beff66b046d69755d589a326 @cdujeu cdujeu committed May 27, 2016
Showing with 16 additions and 7 deletions.
  1. +16 −7 dist/phing/build-pydio.xml
@@ -142,13 +142,10 @@
</phingcall>
<!-- RUN COMPOSER IF NECESSARY -->
- <if>
- <available type="file" file="${INNER_DIRECTORY}/core/composer.json"/>
- <then>
- <exec command="composer install --optimize-autoloader"
- dir="${INNER_DIRECTORY}/core" />
- </then>
- </if>
+ <phingcall target="iterate-plugins">
+ <property name="plugins_dir" value="${INNER_DIRECTORY}/plugins"/>
+ <property name="target" value="composer"/>
+ </phingcall>
<!-- BUILD JAVASCRIPT -->
<phingcall target="iterate-plugins">
@@ -551,6 +548,18 @@
</if>
</target>
+ <target name="composer">
+ <if>
+ <available type="file" file="${plugin_abs_dir}/composer.json"/>
+ <then>
+ <exec command="composer install --optimize-autoloader"
+ dir="${plugin_abs_dir}"
+ passthru="true"
+ />
+ </then>
+ </if>
+ </target>
+
<target name="clean" description="Clean all working folders">
<foreach list="${build.source_folder},${git.local_repository},${build.working_folder}/build,${build.working_folder}/ext_plugins,${build.working_folder}/upgrade,${build.working_folder}/dist,${build.working_folder}/deb,${build.working_folder}/rpm" param="filename" absparam="absfilename" target="delete_me">
</foreach>

0 comments on commit 4af8467

Please sign in to comment.