> -----Original Message-----
> From: Scott Wilson [mailto:[email protected]]
> Sent: Sunday, 4 April 2010 7:51 AM
> To: [email protected]
> Subject: Re: build-widget includes hidden files
> 
> 
> On 3 Apr 2010, at 22:14, Mark Johnson wrote:
> 
> > On Saturday 03 Apr 2010 21:32:50 Scott Wilson wrote:
> >> On 3 Apr 2010, at 20:38, Mark Johnson wrote:
> >>> On Saturday 03 Apr 2010 19:56:17 Scott Wilson wrote:
> >>>> On 3 Apr 2010, at 16:37, Mark Johnson wrote:
> >>>> I wonder if it all zips up all the .svn metadata when building the
> >>>> included widgets..? Hmm, nope it doesn't appear to.
> >>>>
> >>>> I wonder what the difference is with the git files?
> >>>>
> >>>
> >>> Very strange indeed!
> >>> The ownership and permissions on the .git and .svn folders appear
> to be
> >>> the same...
> >>> There's no hard coding in the build process to specifically ignore
> >>> subversion stuff is there?
> >>
> >> After a little digging... there is a default excludes set in Ant's
> Zip
> >> task:
> >>
> >> There are a set of definitions that are excluded by default from all
> >> directory-based tasks. They are: **/*~
> >>     **/#*#
> >>     **/.#*
> >>     **/%*%
> >>     **/._*
> >>     **/CVS
> >>     **/CVS/**
> >>     **/.cvsignore
> >>     **/SCCS
> >>     **/SCCS/**
> >>     **/vssver.scc
> >>     **/.svn
> >>     **/.svn/**
> >>     **/.DS_Store
> >> So that would explain it!
> >>
> > Indeed I would! Can we add something to the build.xml to exclude .git
> also?
> > (I'm not familiar with ant configuration so I honestly have no idea).
> 
> Yes, I think if we had an exclude attribute to the zip ant task in
> widgets/build.xml that should do it:
> 
>           <zip destfile="${widget.build.dir}/${widget.shortname}.wgt"
>                basedir="${wookie.widgets.dir}/${widget.shortname}"
>                excludes="**/.git **/.git/**"
>           />
> 
> Try this and see if it works.

Hopefully, but bear in mind specifying an excludes line may override (cancel
out) the default exclude definitions you mentioned above ? Mentioned just in
case ...

Gav...

> 
> >
> > Cheers
> > Mark
> >



Reply via email to