On 2010-09-27, sebb wrote: > On 27 September 2010 11:48, Stefan Bodewig <bode...@apache.org> wrote: >> On 2010-09-27, sebb wrote:
>>> On 27 September 2010 10:07, <bode...@apache.org> wrote: >>>> I don't know why wildcards sometimes don't seem to work >> My best guess currently is - and confirming/fixing it is on my TODO >> list, somewhere - that under certain circumstances the wildcards get >> expanded before the jar has actually been built. > What happens if the wildcard matches more than one file? You get an error but with a different error message. See the expand_outputs method in http://svn.apache.org/repos/asf/gump/trunk/python/gump/core/model/project.py If the pattern doesn't match anything, the error code is set later in a different location and you only see the debug statement. If it matches more than one file the error message would tell you how many it has matched. Hmm, now that I see the code, I think I spot the problem, the last line should be indented one level deeper so it only sets the outputs_expanded property to true if outputs have actually been expanded. I'll try that in my sandbox and commit the change to trunk this evening. It doesn't explain why the method sometimes is invoked with self.built being false, but it should delay the expansion. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscr...@gump.apache.org For additional commands, e-mail: general-h...@gump.apache.org