PCT Propath

Posted by Paul Mowat on 16-May-2016 08:41

Hi All,

Quick question. I'm writing a ant script to compile code with PCT and have numerous tasks that have the same propath but with different databases. 

I can setup dbconnectionsets absolutely fine to reuse in each of the tasks.

Is there a way to do something similar for propath so I can define it once and reference it from each task.

Thanks

Paul

Posted by RJPowell on 16-May-2016 08:50

You can set up a named path outside of your targets like so:

<path id="foo">

   <pathelement location="c:\bar" />

</path>

PCT calls use it with the line:

<propath refid="foo" />

All Replies

Posted by RJPowell on 16-May-2016 08:50

You can set up a named path outside of your targets like so:

<path id="foo">

   <pathelement location="c:\bar" />

</path>

PCT calls use it with the line:

<propath refid="foo" />

Posted by RJPowell on 16-May-2016 09:01

Additionally, you can do the following if you wanted to add any elements to your base path for certain calls:

<propath>

   <path refid="foo" />

   <pathelement location="d:\bar" />

</propath>

Posted by Paul Mowat on 16-May-2016 09:11

Brilliant thanks for that.

This thread is closed