Do not include stuff from the dependency location while we are actually installing...
authorGunnar Wrobel <p@rdus.de>
Wed, 25 Aug 2010 11:04:07 +0000 (13:04 +0200)
committerGunnar Wrobel <p@rdus.de>
Wed, 25 Aug 2010 11:04:07 +0000 (13:04 +0200)
framework/Element/data/hudson-element-config.xml.template

index 68a62d6..5ab789d 100644 (file)
   <builders>
     <hudson.tasks.Shell>
       <command>cp -r ${WORKSPACE}/../../%2$s/workspace/%1$s/* ${WORKSPACE}/
+echo &quot;include_path = \&quot;.:${WORKSPACE}/../../%3$s/php\&quot;&quot; &gt; ${WORKSPACE}/php.ini
+rm -rf ${WORKSPACE}/deps
+mkdir ${WORKSPACE}/deps
+php -c php.ini ${WORKSPACE}/../../%3$s/horde-element --install=${WORKSPACE}/deps ${WORKSPACE}/../../%2$s/workspace/%1$s
+php -c php.ini ${WORKSPACE}/../../%3$s/horde-element --ciprebuild=${WORKSPACE} ${WORKSPACE}/../../%2$s/workspace/%1$s
 echo &quot;include_path = \&quot;.:${WORKSPACE}/lib:${WORKSPACE}/deps/pear/php:${WORKSPACE}/../../%3$s/php\&quot;&quot; &gt; ${WORKSPACE}/php.ini
-php -c php.ini ../../%3$s/horde-element --install=${WORKSPACE}/deps ../../%2$s/workspace/%1$s
-php -c php.ini ../../%3$s/horde-element --ciprebuild=${WORKSPACE} ../../%2$s/workspace/%1$s</command>
+    </command>
     </hudson.tasks.Shell>
     <hudson.tasks.Ant>
       <targets></targets>