448191 Posted September 14, 2008 Share Posted September 14, 2008 I'm hoping someone with more experience with Phing than I have is going to tell that this is available functionality in Phing I sure can't find it in the docs though. What I want to do is this (note the comment): <if> <or> <available file="${project.root}/trunk" type="dir"/> <available file="${project.root}/tags" type="dir" /> <available file="${project.root}/branches" type="dir"/> </or> <then> <input propertyname="svnChoice" validargs="trunk,tags,branches" message="Which would you like to use?"/> <if> <not><equals arg1="${svnChoice}" arg2="trunk" /></not> <then> <echo msg="Scanning for for available tags/branches"/> <!-- Somehow build a flat list of subdirs in ${project.root}/${svnChoice} and bind it to property ${subDirs} --> <input propertyname="build.sourcedir" validargs="${subDirs}" message="Please make a choice from available ${svnChoice}:"/> </then> </if> </then> </if> Link to comment https://forums.phpfreaks.com/topic/124166-phing-building-a-list-of-sub-directories/ Share on other sites More sharing options...
keeB Posted October 4, 2008 Share Posted October 4, 2008 I wonder if you could write your own extension. A quick look at the documentation lead me here: http://phing.info/docs/guide/current/chapters/ExtendingPhing.html#WritingTasks Very interesting software. Link to comment https://forums.phpfreaks.com/topic/124166-phing-building-a-list-of-sub-directories/#findComment-656879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.