That seems like a bug.  Invoking cb:Inner-Block creates a new scope,
which should allow redefinition of symbols defined in the outer
scope.  What version of CCNET are you using?


On Sep 27, 11:59 am, Benjamin Baumann <[email protected]> wrote:
> My Bad.
> I didn't understand the value was passed by default.
>
> There still is a little problem with the following code :
>
> <cb:define name="Full-Deploy-Block ">
>     <project name="MyProject">
>         <workingDirectory>..\branches\$(Path)\...</workingDirectory>
>         <cb:svn-block svnpath="business/branches/$(Path)"/>
>         <cb:Inner-Block Path="branches\$(Path)" />
>     </project>
> </cb:define>
>
> <cb:Full-Deploy-Block Path="iphone" />
>
> It does not let me redefine Path in the InnerBlock (if I rename Path it is
> OK). Have I forgotten something? By the way, the CC.net crash is quite
> violent here : no warn, no error but a good old pop-up with Service Closed.
>
> Thanks for your help OBones.
> Benjamin Baumann
>
> 2010/9/24 OBones <[email protected]>
>
>
>
> > Ok.
>
> > But why do you want to specify Target again.
> > Once it is defined for Full-Deploy-Block, it is defined for anything
> > inside and after it. Notice the "after" because you did not define
> > your Full-Deploy-Block to be a scope.
>
> > On 24 sep, 14:47, Benjamin Baumann <[email protected]> wrote:
> > > No they are in the reverse order in the config file. I reverse it to be
> > more
> > > readable in the email.
>
> > > 2010/9/24 OBones <[email protected]>
>
> > > > Are they in this order in your config file?
>
> > > > I would have thought you have to define the block before using it for
> > > > this to work...
>
> > > > On 23 sep, 11:40, Benjamin Baumann <[email protected]> wrote:
> > > > > Hi all,
>
> > > > > I found an annoying bug/problem. I am using ccnet last stable release
> > > > (1.5.
>
> > > > > Here is the case :
>
> > > > > <cb:Full-Deploy-Block Target="DEV" InnerPath="trunk" />
>
> > > > > <cb:define name="Full-Deploy-Block">
> > > > >     <project name="Projet - $(Target)" >
> > > > >         <workingDirectory>xxx</workingDirectory>
> > > > >         <webURL>xxx/$(Target)/ViewProjectReport.aspx</webURL>
> > > > >         <cb:Inner-Block Target="$(Target)" />
> > > > >     </project>
> > > > > </cb:define>
>
> > > > > With this conf, the Inner-Block is given '$(Target)' instead of DEV.
> > I
> > > > find
> > > > > a work around in renaming Target variable in Environment for the
> > > > > Full-Deploy-Block but it's quite annoying. Am I doing something wrong
> > or
> > > > is
> > > > > this a bug?
>
> > > > > With kind rewards,
> > > > > Benjamin Baumann- Hide quoted text -
>
> - Show quoted text -

Reply via email to