Hi

the pre-processor can do this
http://confluence.public.thoughtworks.org/display/CCNET/Configuration+Preprocessor
look at the scope section


<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <cb:define WorkingMainDir="C:\Integration\"/>
  <cb:define WorkingDir="\WorkingDirectory"/>
  <cb:define ArtifactsDir="\Artifacts"/>

  <cb:scope ProjectName="Alpha">
    <project name="$(ProjectName)" queue="Q1" queuePriority="1">
      
<workingDirectory>$(WorkingMainDir)$(ProjectName)$(WorkingDir)</workingDirectory>
      
<artifactDirectory>$(WorkingMainDir)$(ProjectName)$(ArtifactsDir)</artifactDirectory>

    </project>
  </cb:scope>

  <cb:scope ProjectName="Beta">
    <project name="$(ProjectName)" queue="Q1" queuePriority="1">
      
<workingDirectory>$(WorkingMainDir)$(ProjectName)$(WorkingDir)</workingDirectory>
      
<artifactDirectory>$(WorkingMainDir)$(ProjectName)$(ArtifactsDir)</artifactDirectory>

    </project>
  </cb:scope>



</cruisecontrol>


looks like the stuff you need



with kind regards
Ruben Willems


On Fri, Jul 2, 2010 at 8:10 PM, PilotBob <[email protected]> wrote:

> Is is possible to specify the default artifact directory rather than
> needing to specify it for each project.
>
> It currently defaults to the server launch folder/ProjectName/
> Artifacts which is fine.... but I want it to default to
> MySpecifiedGlobalDefaultRootFolder/ProjectName/Artifacts without
> having to specify ArtifactDirectory in each project. any way short of
> changing the code?
>
> It would be nice if this could be specified in the ccnet and/or
> ccservice config files.
>
> Same with the state files.
>
> I basically want to keep the CCNet binary/work files separate from the
> build artifacts and state files without having to modify every
> project. Also, specifying it in the project makes it server specific.
> If I want to quickly change the location of ccnet to another build
> server that path may not exist.
>
> Yes, I know I can use the pre-processor... just seems like a lot of
> work to modify every project.
>
> Thanks,
> BOb
>

Reply via email to