Hi,
i have a simple short question, but I could not find the answer on
http://confluence.public.thoughtworks.org/display/CCNET/Configuration+Preprocessor

Assume a simple configuration, like this:


        <project name="org_get">
                <sourcecontrol type="svn">
                        <webUrlBuilder type="websvn">
                                        
<url>https://X.org:8085/svn/org_get/</url>
                        </webUrlBuilder>
                        <workingDirectory>E:\org_get</workingDirectory>
                                <username>D</username>
                                <password>E</password>
                        </sourcecontrol>
        </project>


        <project name="org_get_admin">
                <sourcecontrol type="svn">
                        <webUrlBuilder type="websvn">
                                        
<url>https://X.org:8085/svn/org_get_admin/</url>
                        </webUrlBuilder>
                        <workingDirectory>E:\org_get_admin</workingDirectory>
                                <username>D</username>
                                <password>E</password>
                        </sourcecontrol>
        </project>

As you see, there is a lot of repition. I would like to take out the
SVN part for all projects by using the

<cb:define name="SVN">
                <sourcecontrol type="svn">
                        <webUrlBuilder type="websvn">
                                        
<url>https://X.org:8085/svn/org_get_admin/</url>
                        </webUrlBuilder>
                        <workingDirectory>E:\org_get_admin</workingDirectory>
                                <username>D</username>
                                <password>E</password>
                        </sourcecontrol>
</cb:define>

The obvious problem, inside this are two references which vary for
each project, BUT they point always to the pure project name. So is
there some kind of way to reference to a LOCAL variable, like this:

<cb:define name="SVN">
                <sourcecontrol type="svn">
                        <webUrlBuilder type="websvn">
                                        
<url>https://X.org:8085/svn/org_get_admin/</url>
                        </webUrlBuilder>
                        <workingDirectory>E:\####NAMEOFCURRENTPROJECT###</
workingDirectory>
                                <username>D</username>
                                <password>E</password>
                        </sourcecontrol>
</cb:define>

then, a project would be very nice and short, like

        <project name="org_get_admin">
               <cb:SVN/>
        </project>

Any tips appriated...

Reply via email to