[NAnt-users] Getting the Path of an Included Build File

2009-08-18 Thread jnewton

I would like to create a common include file that several of my builds use.
It would setup a few global directorise and properties. Then my build files
would just use the  element. However, I am trying to use the
project::get-buildfile-path() function inside my include file to get the
current path of that include file. This property will then be used to build
up other paths. 

The problem is that this function returns the path to the build file
including the include file. Since this method doesn't work, is there a
better approach? Another function I should use? 

Thanks
-- 
View this message in context: 
http://www.nabble.com/Getting-the-Path-of-an-Included-Build-File-tp25025552p25025552.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Getting the Path of an Included Build File

2009-08-18 Thread jnewton

The actual problem is that I have some top-level include file that contains
stuff like:




.

I want these properties set when I include them in my build files.  There is
a variety of top-level directories that my build scripts will need to know
about.  Basically these properties need to be set based on the current
directory of the include file, not the build file that includes this file.


-- 
View this message in context: 
http://www.nabble.com/Getting-the-Path-of-an-Included-Build-File-tp25025552p25026889.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Getting the Path of an Included Build File

2009-08-18 Thread jnewton

I am planning on just using a relative path to the main include file. I'm
just trying to avoid specifiying all these properties in all of my top-level
build files. Like I have a structure like:

Trunk
   ADE
  ade.build
   RTE
  rte.build
   Blah
 blah.build

The ADE, RTE, Blah, etc folders are all products that can be built
independently but they all will share a variety of directory paths (i.e.
paths to build tools).

So in my ade.build file for example, I would do something like:
include buildfile="..\..\global.include" />
-- 
View this message in context: 
http://www.nabble.com/Getting-the-Path-of-an-Included-Build-File-tp25025552p25027685.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Test to see if a FilterSet already exists

2010-02-12 Thread jnewton

I'm trying to make some of my nant scripts generic such that clients of the
script will just pass in a filterset id. However, I need to do checks to
make sure the filterset id exists. Is there a way to test for this similar
to how we do if="${property::exists()}"?

Thanks
-- 
View this message in context: 
http://old.nabble.com/Test-to-see-if-a-FilterSet-already-exists-tp27564969p27564969.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Writing Your Own Task that Uses a FilterChain

2010-04-10 Thread jnewton

I'm trying to write my own "write" task that uses a filterchain. I want to be
able to write to a file (i.e. I am creating an xml file) and replace some
strings in the process using the replacestring filter. I am basing my code
off of the CopyTask but I can't seem to figure out how to use the
PhysicalTextReader class. I am trying the following:

PhysicalTextReader ChainedReader = null;
try
{
Writer = this.GetWriter();
Reader = new StringReader(this.Text.Value);
ChainedReader = new PhysicalTextReader(Reader);
Filter FilterReader =  this.Filter.GetBaseFilter(ChainedReader);
while (!false)
{
int Focus = FilterReader.Read();
if (!(Focus > -1))
{
break;
}
Writer.Write((Char)Focus);
}
}

However, I can use the PhysicalTextReader due to its protection level. 

Any thoughts?
-- 
View this message in context: 
http://old.nabble.com/Writing-Your-Own-Task-that-Uses-a-FilterChain-tp28203172p28203172.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


--
Download IntelĀ® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Writing Your Own Task that Uses a FilterChain

2010-04-10 Thread jnewton

Hi Ryan,

Yeah, I get an error saying 
Error   2   'NAnt.Core.Filters.PhysicalTextReader' is inaccessible due to 
its
protection level

This sorta makes sense to me but I'm not sure how to get around it or do it
properly. So I guess what I am really asking is whats the best way to apply
a filterchain to my custom task. Maybe I just missed something.
-- 
View this message in context: 
http://old.nabble.com/Writing-Your-Own-Task-that-Uses-a-FilterChain-tp28203172p28203413.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


--
Download IntelĀ® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Bugs in NAnt Perforce Tasks Dealing with Changelist

2010-07-31 Thread jnewton

I wanted to check and see if there has been any work done on the P4 NAnt
tasks involving a changelist bug that I just found out about. It was
mentioned here 
http://www.mail-archive.com/nantcontrib-develo...@lists.sourceforge.net/msg01538.html
[NAntC-Dev] Bug in Perforce Nant tasks  many years ago.  I didn't see any
bug reports about this but I think this should be fixed. I would like to
have more detailed changelist descriptions but can't since NAnt cuts them
off. 

If need be, I can file a bug report, but as I said I didn't see one. 

Thanks
-- 
View this message in context: 
http://old.nabble.com/Bugs-in-NAnt-Perforce-Tasks-Dealing-with-Changelist-tp29313630p29313630.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users