For interest here is the content of my Inner Block

<triggers />
    <cb:state-block/>
    <category>Build and Deploy</category>
    <tasks>
        <!-- Clean -->
        <cb:deletedir-block dir="Compil" />
        <!-- Build -->
        <msbuild>

<executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>

<workingDirectory>F:\Compil\src\net-2.0\MyProject-compil\$(Path)\Framework
2.0</workingDirectory>
            <projectFile>MyProject.sln</projectFile>

<buildArgs>/p:Configuration=Release;OutputPath="..\Compil";nowarn="1591,1573";DebugSymbols=false</buildArgs>
            <targets>Clean;Build</targets>
            <timeout>600</timeout>

<logger>F:\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
        </msbuild>
        <cb:nunit-block
assembly="F:\Compil\src\net-2.0\MyProject-compil\$(Path)\Framework
2.0\Compil\FactoryTester.exe" />
        <!-- Deploy -->
        <msbuild>

<executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>

<workingDirectory>F:\Compil\src\net-2.0\MyProject-compil\$(Path)\Framework
2.0\_deploy</workingDirectory>
            <projectFile>deploy.Targets</projectFile>
            <buildArgs>/p:Proj=MyProject;Cible=$(Cible)</buildArgs>
            <targets>Deploy</targets>
            <timeout>600</timeout>

<logger>F:\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
        </msbuild>
    </tasks>
    <publishers>
        <xmllogger/>
        <statistics />
        <modificationHistory onlyLogWhenChangesFound="true" />
        <cb:email-build-block />
    </publishers>


2010/9/28 OBones <[email protected]>

> AFAIK, it does not create a new scope unless cb:InnerBlock starts with
> a cb:scope element
>
> On 27 sep, 23:52, Jeremy Lew <[email protected]> wrote:
> > 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