Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
[4.1a] $Source.MyRepo$ > MyRepo
[4.1b] - $Source.MyRepo$\WebProject\** > MyRepo
 
[4.2a] $Source$ > Source
[4.2b] - $Source.MyRepo$ > Source\MyRepo
 
[4.3a] $Source$ > Source
[4.3b] - $Source.MyRepo$\WebProject\** > Source\MyRepo

 

.

[4.1a] and [4.1b] - These two rules execute together. The first rule instructs Continua to copy all contents of

...

the MyRepo

...

 repository into

...

the MyRepo directory in the agent's workspace. However, the exclude rules instructs Continua to ignore and not copy any files

...

in MyRepo

...

 repository which live in

...

the WebProject

...

 directory. For this and any other excludes to work, you must specify a destination directory and it must be the directory in which the include rule has put the files. In this particular example, that directory is simply the one specified in the include rule's destination pattern.

 [4.2a] and [4.2b] - The first rule instructs Continua to copy all contents of all repositories into their respective directory in the agent's workspace. The following exclude rule [4.2b] tells Continua to not copy files in the MyRepo repository to the destination the include rule was going to put it to. For an exclude rule to work correctly when using the $Source$ descriptor, you need to know where the include rule is going to put a repositories' contents. Recall example [3.1] and note how the $Source$ descriptor automatically creates a repositories' directory in the destination specified in the rule. In this case, the MyRepo repository was going to be placed in Source\MyRepo, so when specifying an exclude rule for the MyRepo repository, the destination must be Source\MyRepo

...